Create an OAuth connect URL for a native custom-agent MCP connection
Creates a browser OAuth login URL for one native custom-agent MCP connection. Use after saving the MCP row when the server authMode is oauth.
POST
/agents/{id}/native/mcp-connections/{connectionId}/oauth-connect-urlAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredconnectionIdstringrequiredRequest body
requiredapplication/jsonoauthClientIdobjectOAuth client id for advanced OAuth setup.
oauthClientSecretobjectOAuth client secret for advanced OAuth setup. Write-only.
returnUrlobjectBrowser URL to return to after OAuth completes.
Responses
201
401
Unauthorized - Invalid or missing authentication token
403
Forbidden - Insufficient API scopes or permissions