oceansidejoe
07/22/2025, 5:01 PMComposio Support Agent
07/22/2025, 5:14 PMoceansidejoe
07/22/2025, 6:07 PMoceansidejoe
07/22/2025, 7:08 PMUday
07/22/2025, 7:31 PMcurl -X POST https://backend.composio.dev/api/v3/auth_configs \
-H "x-api-key: <composio-api-key>" \
-H "Content-Type: application/json" \
-d '{
"toolkit": {
"slug": "gmail"
},
"auth_config": {
"type": "use_custom_auth",
"credentials": {
"client_id": "<id>",
"client_secret": "<secret>",
"oauth_redirect_uri": "https://backend.composio.dev/api/v1/auth-apps/add"
},
"authScheme": "OAUTH2"
}
}'
2. Initiating a connection(Pass your existing Auth Config Id):
curl -X POST https://backend.composio.dev/api/v3/connected_accounts \
-H "x-api-key: <cmposio-api-key>" \
-H "Content-Type: application/json" \
-d '{
"auth_config": {
"id": "ac_xxx"
},
"connection": {
"callback_url": "<ADD Your Callback Url here>", //add it here
"user_id": "test-callback"
}
}'Composio Support Agent
07/22/2025, 7:32 PM