Exchange a public token Beta
Turn the token the hosted page returns into a durable connection
Beta. This endpoint is live for design partners, with keys that Dopl issues while the developer portal is being built.
POST /v1/connections/exchange
A public token exchanges once, within 30 minutes of the user finishing. Secret key, scope connect.
Authorizations
AuthorizationA project secret key (sk_test_… or sk_live_…) sent as Authorization: Bearer <key>. Server to server only.
Idempotency-KeyOptional and accepted for consistency. This route does not replay responses.
Body
public_tokenThe public_token the hosted page added to your redirect_uri.
| Status | Body |
|---|---|
200 | ConnectionExchangeResponse |
400, 401, 404 | Error |