Skip to main content
GET

Overview

Check whether a user has connected a specific OAuth provider and can make proxy requests. Use this to determine if you need to prompt the user to authenticate before making proxy requests.

Path Parameters

provider
string
required
OAuth provider name. Currently supported: google

Headers

X-API-Key
string
required
Your MCP Rank API key
Authorization
string
required
Bearer token. Format: Bearer {mcp_identity_access_token}

Response

provider
string
The provider name
connected
boolean
Whether the user has connected this provider
status
string
Connection status. Possible values:
  • active - Connection is working
  • needs_reauth - User needs to re-authenticate (e.g., token expired and couldn’t refresh)
  • null - Not connected
can_access
boolean
Whether proxy requests can be made. true only if connected is true and status is active.

Use Cases

Pre-flight check before proxy requests

Show connection status in UI

Error Responses