providerId changes.
There are three 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. Email-code providers (Content Rewards) connect only in the app. 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.
The list includes a few providers the dashboard hides, such as
github, square, lightspeed, resend, tiktok-shop and tiktok. Prefer the ones the dashboard shows; see Integrations.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 and email-code providers reject this call, so always branch on authKind from step 1.
providerId and a webhookUrl to paste into the provider’s dashboard when the provider sends webhooks.