Skip to content
OperadeDocs

Search documentation

Type to search documentation.

Documentation
Copy page
Open raw Markdown

Get Google Sheet grant metadata

Return bounded sheet and grid metadata without provider file identifiers.

Endpoint

GET/api/v1/workspaces/{workspace_id}/google-sheets/grants/{grant_id}/metadata

Authentication

Operation classAuthenticationMinimum roleAPI key
dashboard-session-apiDashboard session cookie; POST mutations also require X-CX-Request: 1.adminNot allowed

Parameters

NameInTypeRequiredDescription
workspace_idpathstringYes—
grant_idpathstringYes—

Request body

This operation has no request body.

Example

cURL
curl --request GET 'https://operade.ai/api/v1/workspaces/ws_demo/google-sheets/grants/gsgrant_example/metadata' --cookie 'cx_session=YOUR_SESSION_COOKIE'

Responses

StatusDescriptionContent
4XXHandled client errorapplication/json: ErrorResponse
200Successful Responseapplication/json: GoogleSheetMetadataResponse

4XX application/json response schema

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

200 application/json response schema

Field pathTypeReferenceFormatNullableRequiredEnumDescription
$objectGoogleSheetMetadataResponse—NoYes——
grant_idstring——NoYes——
sheetsarray<GoogleSheetTabMetadata>——NoYes——
sheets[]objectGoogleSheetTabMetadata—NoYes——
sheets[].column_countinteger——NoYes——
sheets[].row_countinteger——NoYes——
sheets[].sheet_idinteger——NoYes——
sheets[].titlestring——NoYes——
spreadsheet_namestring——NoYes——

Response example

Response body JSON
{
  "grant_id": "gsgrant_example",
  "spreadsheet_name": "Customers",
  "sheets": [
    {
      "sheet_id": 0,
      "title": "Customers",
      "row_count": 100,
      "column_count": 4
    }
  ]
}

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.
403forbiddenOnly a workspace admin or owner can inspect Google metadata.
404not_foundThe requested spreadsheet grant was not found.
409google_file_unavailableThe selected spreadsheet or connection is unavailable.
502google_response_too_largeThe spreadsheet metadata exceeds the supported bound.
502google_unavailableGoogle Sheets is temporarily unavailable.
503google_integration_not_configuredThe Google Sheets integration is disabled or incomplete.
On this page
  1. Endpoint
  2. Authentication
  3. Parameters
  4. Request body
  5. Example
  6. Responses
  7. 4XX application/json response schema
  8. 200 application/json response schema
  9. Response example
  10. Errors
  11. Related operations