API ReferenceTool Router
Create a link session for a toolkit in a tool router session
Initiates 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.
Authorization
ApiKeyAuth x-api-key<token>
API key authentication
In: header
Path Parameters
session_id*string
The unique identifier of the tool router session
Format
toolRouterSessionIdRequest Body
application/json
toolkit*string
The unique slug identifier of the toolkit to connect
Length
1 <= lengthcallback_url?string
URL where users will be redirected after completing auth
Format
uriResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://backend.composio.dev/api/v3/tool_router/session/trs_LX9uJKBinWWr/link" \ -H "Content-Type: application/json" \ -d '{ "toolkit": "github" }'{
"link_token": "lt_abc123xyz",
"redirect_url": "https://app.composio.dev/link/lt_abc123xyz",
"connected_account_id": "ca_abc123xyz"
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}{
"error": {
"message": "string",
"code": 0,
"slug": "string",
"status": 0,
"request_id": "string",
"suggested_fix": "string",
"errors": [
"string"
]
}
}