Create a new connected account
Initiates a new connection to an external service for a user. For OAuth-based toolkits, this returns a redirect URL to complete authentication. For API key-based toolkits, provide the credentials directly in the request body. Use the user_id field to associate the connection with a specific user in your system.
Deprecated for Composio-managed OAuth: For Composio-managed auth configs on OAuth1, OAuth2, or DCR_OAUTH schemes, this endpoint is being retired and will start returning 400 BadRequest on 2026-05-08 for new organizations and 2026-07-03 for all remaining organizations. Migrate those calls to POST /api/v3/connected_accounts/link. Custom auth configs and non-OAuth schemes (API key, bearer, basic) continue to be supported here. Responses on the retiring path carry a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) for client-side detection.
Request body
Response
Successfully created connected account
Changes
Changed in 11 of the 61 revisions of this API.8414
- ●
removed the optional property
deprecatedfrom the response with the201statusresponse-optional-property-removed
- ●
- ▲
removed
subschema #3subschema #4from theconnection/state/oneOf[subschema #14]/valrequest propertyoneOflistrequest-property-one-of-removed
- ▲
added
subschema #3subschema #4to theconnectionData/oneOf[subschema #14]/valresponse propertyoneOflist for the response status201response-property-one-of-added
- ○
added
subschema #3subschema #4to theconnection/state/oneOf[subschema #14]/valrequest propertyoneOflistrequest-property-one-of-added
- ○
removed
subschema #3subschema #4from theconnectionData/oneOf[subschema #14]/valresponse propertyoneOflist for the response status201response-property-one-of-removed
- ▲
- ○
the endpoint scheme security
CookieAuthwas removed from the APIapi-security-removed
- ○
the endpoint scheme security
UserApiKeyAuthwas removed from the APIapi-security-removed
- ○
- ▲
the response property
deprecatedbecame optional for the status201response-property-became-optional
- ▲
- ○
the response property
deprecatedbecame required for the status201response-property-became-required
- ○
- ▲
the response property
deprecatedbecame optional for the status201response-property-became-optional
- ▲
- ▲
removed the required property
account_typefrom the response with the201statusresponse-required-property-removed
- ●
removed the request property
connection/account_typerequest-property-removed
- ●
removed the request property
connection/acl_config_for_sharedrequest-property-removed
- ○
added the new optional request property
connection/experimentalnew-optional-request-property
- ○
added the optional property
experimentalto the response with the201statusresponse-optional-property-added
- ▲
- ▲
removed
subschema #3subschema #4from theconnection/state/oneOf[subschema #2]/valrequest propertyoneOflistrequest-property-one-of-removed
- ▲
added
subschema #3subschema #4to theconnectionData/oneOf[subschema #2]/valresponse propertyoneOflist for the response status201response-property-one-of-added
- ○
added the new optional request property
connection/acl_config_for_sharednew-optional-request-property
- ○
added
subschema #3subschema #4to theconnection/state/oneOf[subschema #2]/valrequest propertyoneOflistrequest-property-one-of-added
- ○
removed
subschema #3subschema #4from theconnectionData/oneOf[subschema #2]/valresponse propertyoneOflist for the response status201response-property-one-of-removed
- ▲
- ○
added the new optional request property
connection/account_typenew-optional-request-property
- ○
added the required property
account_typeto the response with the201statusresponse-required-property-added
- ○
- ▲
added
subschema #7to theconnectionData/oneOf[subschema #2]/valresponse propertyoneOflist for the response status201response-property-one-of-added
- ●
added the new
REVOKEDenum value to thestatusresponse property for the response status201response-property-enum-value-added
- ○
added
subschema #7to theconnection/state/oneOf[subschema #2]/valrequest propertyoneOflistrequest-property-one-of-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲