oauth
oauth
Google Oauth Callback
Universal OAuth callback endpoint for Google services (Calendar, Gmail).
Google redirects here after user authorizes (or denies) access. This endpoint:
- Determines service type by checking Redis state prefixes
- Exchanges the code for tokens
- Creates/updates the channel_account
- Saves OAuth tokens
- Redirects to frontend with success/error status
Args: code: Authorization code from Google state: State token for CSRF protection error: Error code if user denied access error_description: Human-readable error description
Returns: Redirect to frontend integrations page with status
get/api/oauth/google/callback
Request
- Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
- URL: https://api.dialogbrain.com/api/oauth/google/callback
- Auth: none declared
Query parameters
codestring nullable
statestring nullable
errorstring nullable
error_descriptionstring nullable
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 5 revisions of this API.