Create a link session for a toolkit in a tool router session
Changed onInitiates an authentication link session for a specific toolkit within a tool router session. Returns a link token and redirect URL that users can use to complete the OAuth flow.
Request
- Base URLhttps://backend.composio.dev
- URLhttps://backend.composio.dev/api/v3.1/tool_router/session/{session_id}/link
- AuthAPI key in header x-api-key
Path parameters
The session ID returned when creating the session
The unique identifier of the tool router session
Request body
Example request
{
"toolkit": "github",
"callback_url": "https://myapp.com/callback"
}Response
Successfully created link session. Returns link token, redirect URL, and connected account ID.
Example response
{
"link_token": "lt_abc123xyz",
"redirect_url": "https://app.composio.dev/link/lt_abc123xyz",
"connected_account_id": "ca_abc123xyz"
}Changes
- info
api operation id
postV3_1ToolRouterSessionBySessionIdLinkremoved and replaced withpostToolRouterSessionBySessionIdLink - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
the endpoint scheme security
CookieAuthwas removed from the API - info
the endpoint scheme security
UserApiKeyAuthwas removed from the API
- info