providerId changes.
There are two connection styles. OAuth providers (Meta, Gmail, Google Business Profile, …) use the connect-session flow below. API-key providers (see API-key integrations) take pasted credentials instead. The List integrations call tells you which style each provider uses via its
authKind.1. Discover what you can connect
Call List integrations to see every provider available to a Project and its current connection status. This is the authoritative source for theproviderId values and each provider’s authKind.
2. Create a connect link
For anyoauth2 provider, mint a one-time connect link with Create a connect session. Pass the providerId from step 1.
connectUrlis the link you give your client. Opening it begins the OAuth consent flow and, on completion, lands them on a Sapt-hosted result page.tokenidentifies this session — use it to poll for completion in step 3.clientInvite: trueextends the link’s lifetime so it survives being emailed or embedded in an onboarding step, rather than expiring in minutes. Omit it for short-lived, same-session connects.
3. Poll for completion
The connect link finishes on Sapt’s side, not yours — so poll Get connect session status with thetoken until it leaves pending.
API-key integrations
Providers whoseauthKind is api_key (for example Stripe or Shopify) don’t use a connect link — you submit their credentials directly with Connect an API-key integration. OAuth providers reject this call, so always branch on authKind from step 1.