Skip to main content
Fetch Invitees
Returns a paginated list of EventInvite records, each with the invited user populated. Open to the event’s hosts — for an event in a space, while they are active members of it and not banned in it or a space above it — and to the space’s active admins and moderators. Anyone else who can see the event receives 403; a missing event, or one the caller can’t see and doesn’t host, receives 404. A service key acts as the user it names in actingUserId. Results are ordered by invitedAt descending.

Path Parameters

string
required
UUID of the event.

Query Parameters

number
Page number (1-indexed): a whole number, 1 or more. Defaults to 1. Any other value returns 400 event/invalid-query with param: "page".
number
Results per page: a whole number from 1 to 100. Defaults to 10. A larger value returns 400 event/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
Required with a service key: the user this request acts as. It has exactly that user’s powers, so it is refused unless they are a host of the event or an admin or moderator of its space, and it is recorded as theirs. A user token always acts as its own user and must not send it (400 event/acting-user-not-allowed).

Response

Returns a paginated response: { data: EventInvite[], pagination: {...} }.

Error Responses

A service key sent no actingUserId.
actingUserId is not a user id.
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.
The request carried a body. A GET takes no body: send actingUserId and every other field in the query string.
Returned when a service key names an actingUserId that isn’t a user in this project.
The event doesn’t exist, or the caller can’t see it and isn’t one of its hosts.
The caller can see the event but isn’t one of its hosts or an admin or moderator of its space.
The caller is a host, but the event is in a space they aren’t an active member of, or they are banned in it or a space above it. One body for every case.
See also: useFetchInvitees