Skip to main content

Overview

useFetchEventRsvps returns a callable that fetches the paginated named RSVP (guest) list. Each item is an EventRsvp with the user populated. The named list is visible to any viewer when the event’s guestListVisible is true; when it’s false, only to hosts who are active members of the event’s space and not banned in it or a space above it (any host, for an event with no space) and the space’s active admins and moderators (otherwise 403). Aggregate counts are always available on the event’s rsvpCounts.

Usage Example

Parameters

string
required
The event ID.
RsvpStatus | RsvpStatus[]
Statuses to filter by: "going", "maybe" or "not-going", e.g. ["going", "maybe"]. Values match exactly. Omit for all.
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<EventRsvp>> — { data, pagination }.

See Also