myNotifications
Requires an authenticated session.
Lists the signed-in user's own notifications, newest first, one page at a time. A page holds at most 50.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query MyNotifications {
myNotifications {
nextCursor
items {
id
title
type
createdAt
body
entityId
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MyNotifications {\n myNotifications {\n nextCursor\n items {\n id\n title\n type\n createdAt\n body\n entityId\n }\n }\n}"
}
EOF
Response:
{
"data": {
"myNotifications": {
"nextCursor": "string",
"items": [
{
"id": "id",
"title": "string",
"type": "string",
"createdAt": "2025-01-15T00:00:00Z",
"body": "string",
"entityId": "string"
}
]
}
}
}
myNotifications(
cursor: String
take: Int = 20
): UserNotificationPage!
Arguments
myNotifications.cursor ● String scalar
The cursor from the previous page. Omit it for the first page.
myNotifications.take ● Int scalar
How many notifications to return. Defaults to 20 and is capped at 50.
Type
UserNotificationPage object
A page of notifications.