Exchange code for token
At the end of a Sequin-managed OAuth flow, Sequin redirects the user back to your app with a code. You can use that code to retrieve their credentials from this endpoint.
The code you received at the end of the OAuth flow.
The Sequin ID of the OAuth app you want to use for this connection. You can find this ID in the Sequin console.
Note that this is not the client_id
corresponding to the OAuth app.
The client_secret
corresponding to the OAuth app you want to use for this connection. This is the client_secret
the API provider gave you when you registered your OAuth app.
The user’s credentials. You can pass this full object directly to the create credential endpoint or the create sync endpoint.
See credential properties for a list of possible properties for each provider.
The state you passed Sequin at the start of the flow.
Was this page helpful?