Skip to content
gist.link ↗

workbooks

Query Sheets API — POST https://sheets.api.gist.link/graphql

The workbooks query on the Sheets API.

sheets:query:workbooks

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

type Query {
workbooks(filter: WorkbookFilter, sort: SortInput, first: Int, after: String): WorkbookConnection!
}
Argument Type Required Description
filter WorkbookFilter No —
sort SortInput No —
first Int No —
after String No —

WorkbookConnection! — see the Sheets types reference.

Terminal window
curl https://sheets.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Workbooks($filter: WorkbookFilter, $sort: SortInput, $first: Int, $after: String) { workbooks(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id title description locale timezone revision archivedAt recoveryNodeId } } } }",
"variables": {
"filter": {
"archived": true
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON