Skip to content
gist.link ↗

events

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

The events query on the Calendar API.

calendar:query:events

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 {
events(filter: EventFilter!, first: Int, after: String): OccurrenceConnection!
}
Argument Type Required Description
filter EventFilter! Yes —
first Int No —
after String No —

OccurrenceConnection! — 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 Events($filter: EventFilter!, $first: Int, $after: String) { events(filter: $filter, first: $first, after: $after) { totalCount edges { cursor node { start end } } } }",
"variables": {
"filter": {
"timeMin": {},
"timeMax": {}
},
"first": 10,
"after": "cursor"
}
}
JSON