Skip to main content
GET
/
:projectId
/
api
/
v7
/
events
/
:eventId
/
invites
Fetch Invitees
curl --request GET \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId/invites
Returns a paginated list of EventInvite records, each with the invited user populated. Host-only — a non-host receives 403, and a non-existent event receives 404 (service/master keys bypass the host check). Results are ordered by invitedAt descending.

Path Parameters

eventId
string
required
UUID of the event.

Query Parameters

page
number
Page number (1-indexed). Defaults to 1.
limit
number
Results per page. Capped at 100. Defaults to 10.

Response

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

Error Responses

{ "error": "Event not found", "code": "event/not-found" }
{ "error": "Only a host of this event may view its invite list.", "code": "event/forbidden" }
See also: useFetchInvitees