Skip to content
gist.link ↗

sheetsWorksheetPreview

Query Campaigns API — POST https://campaigns.api.gist.link/graphql

Header + sample rows of one of the current user’s worksheets, with auto-detected email/name columns. ROLE_ADMIN or ROLE_CAMPAIGNS_MANAGER.

campaigns:query:sheetsWorksheetPreview

The calling IAM key must hold this permission (or a wildcard that covers it: campaigns:query:* or campaigns:*) and the access token must have been minted with audience=campaigns. See Permissions.

type Query {
sheetsWorksheetPreview(worksheetId: String!): SheetsWorksheetPreview!
}
Argument Type Required Description
worksheetId String! Yes —

SheetsWorksheetPreview! — see the Campaigns types reference.

Terminal window
curl https://campaigns.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query SheetsWorksheetPreview($worksheetId: String!) { sheetsWorksheetPreview(worksheetId: $worksheetId) { worksheetId workbookTitle worksheetTitle totalDataRows rows } }",
"variables": {
"worksheetId": "example"
}
}
JSON