Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

Complete Google Sheets OAuth

Consume provider OAuth state and redirect to a clean internal Integrations URL.

Endpoint

GET/api/v1/oauth/google-sheets/callback

Authentication

Operation classAuthenticationMinimum roleAPI key
dashboard-session-apiDashboard session cookie and single-use OAuth state.sessionNot allowed

Parameters

NameInTypeRequiredDescription
statequerystringNo—
codequerystringNo—
picked_file_idsquerystringNo—
errorquerystring or nullNo—

Request body

This operation has no request body.

Example

cURL
curl --request GET 'https://operade.ai/api/v1/oauth/google-sheets/callback?state=PROVIDER_STATE&code=PROVIDER_CODE&picked_file_ids=PROVIDER_FILE' --cookie 'cx_session=YOUR_SESSION_COOKIE'

Responses

StatusDescriptionContent
4XXHandled client errorapplication/json: ErrorResponse
303Redirect to a clean internal Integrations URL after OAuth succeeds or fails.No body

4XX application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectErrorResponse—NoYes——
errorobjectErrorItem—NoYes——
error.codestring——NoYes——
error.detailsobject——NoNo——
error.messagestring——NoYes——

Response example

HTTP
HTTP 303
This response has no body.

Errors

Reviewed common and route-declared errors are summarized here; the list is not exhaustive. Start with the distributed error index to find each code's canonical domain page.

StatusCodeDescription
401unauthenticatedAuthentication is missing, invalid, or revoked.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. Example
  6. Responses
  7. 4XX application/json response schema
  8. Response example
  9. Errors
  10. Related operations