Skip to main content
Register an MCP server once, then create separate connections for the API keys or OAuth accounts you want to use. See MCP Servers for Studio setup.

Authentication

Send requests to https://agent-prod.studio.lyzr.ai with your Lyzr API key in the x-api-key header. Send JSON request bodies with Content-Type: application/json.

Connection endpoints

See request body examples for API-key and OAuth connections.

Select a connection for inference

Pass provider_overrides to Chat With Agent or Stream Chat With Agent. The map key is the MCP server ID; the value is the credential_id of a usable connection owned by the caller:
This field applies only to the current request. The MCP tool must use caller credentials (persist_auth: false); tools using creator credentials ignore the override. An invalid explicit connection returns HTTP 401 with detail.reason_code: "personal_connection_required" rather than falling back to another account.