Skip to main content
POST
Finish connecting provider accounts after the authorization redirect

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Body

application/json

Request body completing integration authorization after the provider redirects the user back. Sent from an authenticated session so the provider and organization come from the single-use state record rather than from callback parameters or browser-local storage.

state
string
required

The nonce returned when authorization was started. Single-use and short-lived.

code
string

Provider authorization code, proving which user authorized this connection. Required by OAuth providers (GitHub, Jira, Confluence, Loom), which refuse a completion without one. A built-in integration's sign-in page also returns a single-use code, verified before the connection activates, so a completion without it fails.

selection
string

Which account the operator chose on the provider's own page, in the opaque form that provider returned. Providers with an account chooser may require it; GitHub returns an installation id. A selector only: the server verifies the choice against the accounts the authorizing user can reach and refuses one they cannot.

Response

The completed integration authorization. Connections contains the accounts established by this callback; when the provider needs the operator to choose an account or action first, connections is empty and options contains those provider-defined continuations.

The completed integration authorization. Connections contains the accounts established by this callback; when the provider needs the operator to choose an account or action first, connections is empty and options contains those provider-defined continuations.

connections
object[] | null
required

Connections created by this callback. Empty when the provider needs an option selected first.

provider
string
required

Provider whose authorization is being completed.

options
object[]

Provider-defined accounts or actions the operator can choose to continue authorization.