Create a new tool router session

Creates a new session for the tool router lab feature. This endpoint initializes a new session with specified toolkits and their authentication configurations. The session provides an isolated environment for testing and managing tool routing logic with scoped MCP server access.

Headers

x-api-keystringRequired

Request

This endpoint expects an object.
user_idstringRequired
Unique user identifier for the session owner
configobjectOptional
Session configuration including enabled toolkits and their auth configs

Response

Session successfully created. Returns the session ID and MCP server URL for the created session.
session_idstring
Generated session identifier
chat_session_mcp_urlstringformat: "uri"
MCP server endpoint URL for this specific session

Errors