Skip to main content
Fetch Notifications
Returns a paginated list of app notifications for the currently authenticated user, ordered newest first. Notifications are scoped to the calling user — a user cannot read another user’s notifications. A notification about content in a space is created only for a recipient who can read that space when it’s sent, so the list never holds one they couldn’t read at the time (see Who receives notifications about space content). Notifications already in the list stay there if the user later loses access. Event notifications follow the event: event-updated and event-cancelled go only to users with a going or maybe RSVP who can still see the event, and event-invite only to a user who can be invited to it.
This endpoint requires an authenticated user. Include a valid Authorization: Bearer <accessToken> header, or use a service key and name the user in actingUserId.

Query Parameters

number
default:"1"
Page number (1-indexed): a whole number, 1 or more. Defaults to 1. Any other value returns 400 app-notification/invalid-query with param: "page".
number
default:"5"
Notifications per page: a whole number from 1 to 100. Defaults to 5. A larger value returns 400 app-notification/invalid-query with param: "limit" (it is never lowered to 100), as does 0, a negative number or a value that isn’t a whole number. See Pagination.
string
Service key only, and required with one: the user this request acts as. Their notifications are listed. A user token always acts as its own user and must not send it (400 app-notification/acting-user-not-allowed).

Response

Returns a paginated envelope containing an array of notification objects.
array
List of app notification objects.
object
Pagination metadata.

Error Responses

No Authorization header was sent. The body is text/plain, not JSON:
The header was sent but the token failed verification. Refresh the access token and retry. The body is text/plain, not JSON:
A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:

See Also