Initiate an OAuth connection to an external provider.
cURL
curl --request POST \ --url https://api.cuadra.ai/v1/connections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "connectorSlug": "<string>", "redirectUrl": "<string>", "scopes": [ "<string>" ] } '
{ "id": "<string>", "authorizationUrl": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "status": "pending" }
JWT token from Stytch B2B authentication (magic link, SSO, or M2M)
Request to initiate OAuth connection.
Connector type: google_drive
URL to redirect after OAuth
Optional custom OAuth scopes
Successful Response
Response when initiating OAuth flow.
Redirect user to this URL
State token expiration
Was this page helpful?