Skip to main content
POST
Call this from your backend after the user lands on your redirect_uri with a code. It returns the new connection’s ID. The code expires 5 minutes after it’s issued and can be used once.

Headers

string
required
Bearer YOUR_API_KEY. Must be a key from the same workspace that issued the code.

Body

string
required
The code query parameter from the redirect.
string
required
The exact redirect_uri used to start the flow.

Response

string
The new connection’s ID. Store it, and send it as BU-Connection-Id on requests.
string | null
The external_id passed when starting the flow, or null.
string
The integration’s identifier, for example github.

Errors

  • 400 with errors.code: the code has expired, was already used, was issued for a different redirect_uri, or belongs to another workspace.
  • 400 with errors.redirect_uri or errors.code: the field is missing.
  • 401: the API key is missing or not recognized.