Gatana Documentation
RoutesMcp serversServerslugCredentialsAuthorize url

/mcp-servers/{serverSlug}/credentials/authorize-url

Get out-of-band OAuth authorize URL for the MCP server. This URL can be opened in a any browser on any device to authorize.

GET
/mcp-servers/{serverSlug}/credentials/authorize-url
AuthorizationBearer <token>

In: header

Path Parameters

serverSlugstring
Length1 <= length

Query Parameters

scope?string
Value in"server" | "user"
redirect?string
Value in"true" | "false"
returnTo?string
Value in"details" | "settings" | "thank-you-page"

Response Body

application/json

curl -X GET "https://YOUR_ORG_ID.gatana.ai/api/v1/mcp-servers/string/credentials/authorize-url"
{
  "method": "none",
  "url": "string",
  "deviceCodeJwt": {
    "sub": "string",
    "serverSlug": "string",
    "tenantId": "string",
    "credentialScope": "server",
    "credentialOwnerId": 0,
    "verification_uri": "string",
    "verification_uri_complete": "string",
    "device_code": "string",
    "user_code": "string",
    "expires_at": 0,
    "interval": 0
  }
}