/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.
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
Invalid session ID format.
A valid Coldy API key is required.
The caller cannot manage email accounts in this organization.
The session does not exist, is no longer retained, or belongs to another API caller.
OAuth session rate limit exceeded.
Google Workspace OAuth is temporarily unavailable.