Skip to content

CRM OAuth callback

GET /oauth-callback

Completes connector OAuth, stores the resulting CRM credentials, and issues an App Connect CRM-session JWT. Browser callbacks may verify RingCentral identity using the access-token header. Legacy browser callbacks without that header use connector credentials and cannot bind a RingCentral account. MCP callbacks claim a pending server-side authorization session and return plain text instead of a browser token.

Operation ID: getOauthCallback
Authorization: None

Parameters

Name Location Type Required Description
X-RC-Access-Token header string No RingCentral access token used to verify account and extension identity for browser callbacks. Managed OAuth configuration and account binding require verified identity.
state query string No Opaque connector OAuth state. The server and connector use it to restore platform, user, redirect, and anti-forgery context.
code query string No One-time authorization code returned by the CRM OAuth provider.
callbackUri query string No Full browser callback URI containing the CRM provider result. Legacy clients can send provider fields separately when this value is not encoded.
hostname query string No Optional tenant-specific CRM hostname retained through the OAuth flow.
tokenUrl query string No Optional connector-specific OAuth token endpoint retained through the authorization flow.
apiUrl query string No Optional connector-specific CRM API base URL retained through the authorization flow.
proxyId query string No Proxy connector identifier retained through the OAuth exchange.
rcAccountId query string No Optional account ID for compatibility. When the callback has verified RingCentral identity, a supplied ID must match that identity.
rcExtensionId query string No Optional extension ID for compatibility. When the callback has verified RingCentral identity, a supplied ID must match that identity.
userEmail query string · email No Optional RingCentral user email forwarded to connectors that need it during OAuth completion.
username query string No Optional connector login name used by connectors such as Bullhorn during OAuth completion.

Responses

Status Description Body
200 Successful route-specific JSON response. Consult the operation description for ownership and semantics. GenericSuccessResponse
400 Bad request, missing authentication, or connector error. ErrorResponse, string
401 The supplied RingCentral access token could not be verified. —
403 The supplied RingCentral identity does not match, or the MCP OAuth session is invalid, expired, or already claimed. —