Create a new tool router session
Creates a new session for the tool router 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.
Authentication
x-api-keystring
API key authentication
Request
This endpoint expects an object.
user_id
The identifier of the user who is initiating the session, ideally a unique identifier from your database like a user ID or email address
toolkits
Toolkit configuration - specify either enabled toolkits (allowlist) or disabled toolkits (denylist). Mutually exclusive.
auth_configs
The auth configs to use for the session. This will override the default behavior and use the given auth config when specific toolkits are being executed
connected_accounts
The connected accounts to use for the session. This will override the default behaviour and use the given connected account when specific toolkits are being executed
connections
Configuration for connection management settings
tools
Configuration for tool overrides and filtering
execution
Configuration for workbench behavior including security restrictions and execution limits
Response
Session successfully created. Returns the session ID and MCP server URL for the created session.
session_id
The identifier of the session
mcp
tool_router_tools
List of available tools in this session
Allowed values:
config
The session configuration including user, toolkits, and overrides