Delete a tool router sessionv3.1

DELETE
/api/v3.1/tool_router/session/{session_id}

Deletes a tool router session. The session immediately stops being retrievable and executable — subsequent requests against it (including its MCP URL) return 404 — and any compute sandboxes attached to the session are shut down. The record is retained internally for audit purposes. Deleting an already-deleted session returns 404.

Authorization

ApiKeyAuth
x-api-key<token>

Project API key authentication

In: header

Path Parameters

session_idstringRequired

The unique identifier of the tool router session

Format: toolRouterSessionId

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v3.1/tool_router/session/trs_1a2b3c4d5e6f"
{  "session_id": "trs_1a2b3c4d5e6f",  "deleted": true}