cURL
curl --request POST \ --url https://api.klavis.ai/mcp-server/oauth-url \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "serverName": "Affinity", "instanceId": "<string>", "clientId": "<string>", "scope": "<string>", "redirectUrl": "<string>" }'
{ "oauthUrl": "<string>" }
Gets the OAuth authorization URL for a specific MCP server and instance. Returns the complete OAuth URL with the instance ID as a query parameter.
Your Klavis AI API key.
Successful Response
The response is of type object.
object