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). 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 (null when the viewer can’t see that space; see Space visibility)
  • files — the cover and gallery file objects
  • 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 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