Skip to content
gist.link ↗

bookings

Query Calendar API — POST https://calendar.api.gist.link/graphql

The bookings query on the Calendar API.

calendar:query:bookings

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

type Query {
bookings(filter: BookingFilter, sort: SortInput, first: Int, after: String): BookingConnection!
}
Argument Type Required Description
filter BookingFilter No —
sort SortInput No —
first Int No —
after String No —

BookingConnection! — see the Calendar types reference.

Terminal window
curl https://calendar.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Bookings($filter: BookingFilter, $sort: SortInput, $first: Int, $after: String) { bookings(filter: $filter, sort: $sort, first: $first, after: $after) { totalCount edges { cursor node { id name email status } } } }",
"variables": {
"filter": {
"bookingPageId": "01a01234-abcd-7000-9000-0123456789ab",
"status": "CONFIRMED",
"upcomingOnly": true
},
"sort": {
"field": "example",
"direction": "ASC"
},
"first": 10,
"after": "cursor"
}
}
JSON