Skip to main content
GET
/
:projectId
/
api
/
v7
/
events
/
:eventId
Fetch Event
curl --request GET \
  --url https://api.sublay.io/api/v6/:projectId/api/v7/events/:eventId
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

eventId
string
required
UUID of the event.

Query Parameters

include
string
Comma-separated associations to expand: "user", "space", "files", "userRsvp".
userId
string
The requester id, used for visibility resolution and userRsvp enrichment. Inferred from the token for normal callers; service/master keys may pass it explicitly.

Response

Returns the Event object.

Error Responses

{ "error": "Event not found", "code": "event/not-found" }
See also: useFetchEvent · EventProvider & useEvent