Skip to main content

Overview

useFetchInvitees returns a callable that fetches the paginated invitee (guest) list for an event. 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 (otherwise 403 event/not-space-member) — and to the space’s active admins and moderators. Anyone else who can see the event receives 403 event/forbidden, and anyone who can’t see it 404. Each item is an EventInvite with the invited user populated.

Usage Example

Parameters

string
required
The event ID.
number
Page number (1-indexed). Defaults to 1.
number
Results per page: a whole number from 1 to 100. Defaults to 10. A larger value is rejected with 400 event/invalid-query, never lowered to 100.

Returns

Returns a Promise<PaginatedResponse<EventInvite>> — { data, pagination }.

See Also