GET /accounts/oauth-sessions/{session_id}

Authentication

Send your organization API key as a Bearer credential.

Authorization: Bearer YOUR_API_KEY

Path parameters

session_id string required

Response

application/json

Current status of the Google Workspace OAuth session.

session_id string required
provider string required

Allowed values: google

status string required

Allowed values: pending, connected, failed, expired

expires_at string required

When the one-time Google consent link expires, in UTC. Create a new session if this deadline passes before the Google callback.

account_id number

Returned when status is connected. Reconnecting preserves the existing Coldy account ID.

Example: 123
email string

Present for connected sessions.

error_code string

Present for failed sessions.

Allowed values: consent_denied, workspace_required, mail_access_not_granted, refresh_token_missing, mailbox_mismatch, account_not_found, account_in_use, access_revoked, connection_failed