Execute proxy request within a tool router session
Execute any native API call on a toolkit with authentication automatically injected from Composio. This endpoint proxies HTTP requests to third-party APIs using connected account credentials resolved from the session context. Provide the toolkit slug, API endpoint, and HTTP method — Composio handles authentication injection, abstracting away credential management. Supports all HTTP methods, custom headers/query parameters, and binary request/response bodies.
Path parameters
The unique identifier of the tool router session. Required for public API endpoints, optional for internal endpoints where it is injected by middleware.
Tool router session ID (required for public API, optional for internal - injected by middleware)
Request body
Example request
{
"toolkit_slug": "gmail",
"endpoint": "/api/v1/resources",
"method": "GET",
"body": {
"name": "New Resource",
"description": "This is a new resource"
},
"parameters": [
{
"name": "x-api-key",
"value": "abc123def456",
"type": "header"
},
{
"name": "filter",
"value": "active",
"type": "query"
}
]
}Response
Successfully executed proxy request and received response
Example response
{
"data": {
"id": "123",
"name": "Resource Name",
"created_at": "2023-01-01T00:00:00Z"
},
"status": 200,
"headers": {
"content-type": "application/json",
"cache-control": "no-cache"
}
}