POST
/
link
/
oauth2
/
token
code
string
required

The code you received at the end of the OAuth flow.

client_id
string
required

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.

client_secret
string
required

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.

credential
object

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.

state
string

The state you passed Sequin at the start of the flow.