Skip to content
gist.link ↗

availableSlots

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

The availableSlots query on the Calendar API.

calendar:query:availableSlots

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 {
availableSlots(slug: String!, from: DateTime!, to: DateTime!): [Slot!]!
}
Argument Type Required Description
slug String! Yes —
from DateTime! Yes —
to DateTime! Yes —

[Slot!]! — 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 AvailableSlots($slug: String!, $from: DateTime!, $to: DateTime!) { availableSlots(slug: $slug, from: $from, to: $to) { start end } }",
"variables": {
"slug": "example",
"from": {},
"to": {}
}
}
JSON