Skip to content
gist.link ↗

myNotifications

Query Teams API — POST https://teams.api.gist.link/graphql

The caller’s own notifications, cursor-paginated. Authenticated.

teams:query:myNotifications

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

type Query {
myNotifications(first: Int, after: String, unreadOnly: Boolean): NotificationConnection!
}
Argument Type Required Description
first Int No —
after String No —
unreadOnly Boolean No —

NotificationConnection! — see the Teams types reference.

Terminal window
curl https://teams.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query MyNotifications($first: Int, $after: String, $unreadOnly: Boolean) { myNotifications(first: $first, after: $after, unreadOnly: $unreadOnly) { totalCount edges { cursor node { id kind created_at } } } }",
"variables": {
"first": 10,
"after": "cursor",
"unreadOnly": true
}
}
JSON