Skip to main content
POST
/
api
/
v1
/
connected_accounts
/
link
Create a new auth link session
curl --request POST \
  --url https://flowra.dev/api/v1/connected_accounts/link \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "authConfigId": "auth_config_123",
  "callbackUrl": "https://myapp.com/callback",
  "connectionData": "<unknown>"
}
'
{
  "redirectUrl": "https://auth.composio.dev/oauth/authorize?client_id=123&redirectUri=https://myapp.com/callback",
  "linkToken": "link_token_123456789",
  "expiresAt": "2024-12-31T23:59:59Z",
  "connectedAccountId": "con_123456789"
}

Authorizations

x-api-key
string
header
required

Project API key. Create and manage keys in the dashboard under Project → API Keys. Send as header: x-api-key:

Body

application/json

Connected account link creation data

Response

201 - application/json

Successfully created auth link