Skip to main content
Fetch Event
Returns a single event by UUID. The server-side visibility predicate is applied: if the event does not exist or the caller cannot see it, the response is 404 (existence is never leaked). Who sees an event: anyone for public, the space’s active members for members, invited users for invite — and in every case only if they can read the event’s space. The space’s active admins and moderators see every event in it, invite events included. Hosts see their events while they are active members of the event’s space; a host who isn’t sees the event only as a regular viewer would. An event whose spaceId points at no space is never returned. The response always includes inline rsvpCounts. Authentication is optional; pass the userRsvp include with an authenticated caller to populate userRsvp.

Path Parameters

string
required
UUID of the event.

Query Parameters

string
Associations to expand, as a comma-separated value (include=user,space) or repeated params. Values:
  • user — the creator’s user profile
  • space — the space the event belongs to
  • files — the event’s files: the cover, then its images and files in the order they were uploaded. Find the cover by coverImageId; one uploaded through v8 comes first
  • userRsvp — the caller’s own RSVP status (needs a viewer; otherwise null)
Matching ignores case. An unknown value returns 400 event/invalid-query.
string
Service key only: the user to read as. The response is exactly what that user’s own access token would get (visibility, userRsvp). Leave it out for the anonymous view: only a public event in no space or in a space anyone can read is returned, and any other answers 404. A user token always acts as its own user and must not send it, and neither may a request with no credentials (400 event/acting-user-not-allowed).

Response

Returns the Event object.

Error Responses

A user token, or a request with no credentials, 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:
Returned for an unknown include value.
See also: useFetchEvent · EventProvider & useEvent