Attach to an existing tool router session (v3.1)
Fetch an existing tool router session by ID.
Path parameters
The unique identifier of the tool router session
The unique identifier of the tool router session
Request body
Example request
{
"experimental": {
"custom_toolkits": [
{
"slug": "ecommerce",
"name": "E-Commerce API",
"description": "Internal e-commerce API for order management and fulfillment",
"tools": [
{
"slug": "GET_CUSTOMER_ORDERS",
"name": "Get Customer Orders",
"description": "Fetch recent orders for a customer by their email address",
"input_schema": {
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "Customer email"
}
},
"required": [
"email"
]
}
}
]
}
],
"custom_tools": [
{
"slug": "GET_IMPORTANT_EMAILS",
"name": "Get Important Emails",
"description": "Fetch emails marked as important from the last 24 hours",
"input_schema": {
"type": "object",
"properties": {
"limit": {
"type": "number",
"description": "Max results to return"
}
}
},
"extends_toolkit": "gmail"
}
]
}
}Response
Session successfully attached. Returns the session payload.
Example response
{
"session_id": "trs_1a2b3c4d5e6f",
"mcp": {
"url": "https://app.composio.dev/tool_router/v3/trs_1a2b3c4d5e6f/mcp"
},
"warnings": [
{
"code": "PRELOAD_TOOLS_HIGH_CONTEXT_USAGE",
"message": "Session preloads 25 tools; each preloaded tool adds to the agent context window. Consider keeping the list at or under ~20 tools."
}
]
}Changes
Changed in 5 of the 61 revisions of this API.29
- ○
removed the non-success response with the status
403response-non-success-status-removed
- ○
- ○
the endpoint scheme security
CookieAuthwas removed from the APIapi-security-removed
- ○
the endpoint scheme security
UserApiKeyAuthwas removed from the APIapi-security-removed
- ○
- ▲
the
config/connected_accounts/additionalProperties/response's property type/format changed fromstring/connectedAccountIdtoarray/for status200response-property-type-changed
- ○
added the new optional request property
experimental/custom_toolkits/items/preloadnew-optional-request-property
- ○
added the new optional request property
experimental/custom_toolkits/items/tools/items/preloadnew-optional-request-property
- ○
added the new optional request property
experimental/custom_tools/items/preloadnew-optional-request-property
- ▲
- ▲
response property
config/preload/toolslist-of-types was widened by adding typesstringto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
added the required property
config/executeto the response with the200statusresponse-required-property-added
- ○
added the required property
config/searchto the response with the200statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○