Skip to content
gist.link ↗

notifications

Query Dashboard API — POST https://dashboard.api.gist.link/graphql

The current user’s notifications, newest first. Any authenticated user.

dashboard:query:notifications

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

type Query {
notifications(limit: Int, unreadOnly: Boolean): [Notification!]!
}
Argument Type Required Description
limit Int No —
unreadOnly Boolean No —

[Notification!]! — see the Dashboard types reference.

Terminal window
curl https://dashboard.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Notifications($limit: Int, $unreadOnly: Boolean) { notifications(limit: $limit, unreadOnly: $unreadOnly) { uuid title created_at } }",
"variables": {
"limit": 10,
"unreadOnly": true
}
}
JSON