events module covers the full events surface: creating and editing events (with inline cover/gallery image upload), the RSVP lifecycle, host and invite management, and the guest list. It maps directly to the Events API.
Because the JS SDK authenticates as an end user (bearer token), you never pass an actor userId — the server derives who is acting from the token. The only userId arguments are targets: the host or invitee on the host/invite functions.
Requires the events bundle. Space-scoping needs the spaces bundle; images need files-images; notifications need notifications.
createEvent
Creates an event. The logged-in user becomes the creator and first host. Passcover and/or gallery to upload images inline (the request is sent as multipart/form-data).
online requires url; physical requires address or location; hybrid requires both.Single cover image plus its processing options. Requires the
files-images bundle.Gallery image set (up to 10) plus shared processing options. Requires the
files-images bundle.Promise<Event>
fetchEvent
Fetches a single event by ID. Visibility anduserRsvp are resolved from the logged-in user’s token.
Promise<Event>
fetchManyEvents
Lists events with visibility enforced, plus filtering, sorting, geo, and free-text search. ThemyRsvp filter and userRsvp enrichment use the logged-in user.
Promise<PaginatedResponse<Event>>
updateEvent
Edits an event’s mutable fields. Host-only.hostIds, status, and spaceId are not editable here.
The JS SDK
updateEvent accepts a flat JSON body. To curate images on update
(replace the cover, append gallery photos, or remove images via
removeImageIds), use the React SDK’s useUpdateEvent
which supports inline multipart upload, or the underlying
Update Event API directly.Promise<Event>
cancelEvent
Cancels an event (setsstatus: "cancelled"). Host-only. The event stays fetchable but rejects new RSVPs.
Promise<Event>
deleteEvent
Deletes an event (soft or hard per the project’seventDeletion settings). Host-only.
Promise<void>
setRsvp
Sets or changes the logged-in user’s RSVP. Transitions intogoing are capacity-checked.
Promise<Event> (with refreshed rsvpCounts)
withdrawRsvp
Removes the logged-in user’s RSVP. Idempotent.Promise<Event>
addHost
Grants a user host privileges. Host-only. TheuserId is the target host.
Promise<Event>
removeHost
Revokes a user’s host privileges. Host-only. Rejected if it would leave the event with no hosts.Promise<Event>
addInvite
Invites a user to the event. Host-only. Idempotent. TheuserId is the target invitee.
Promise<Event>
removeInvite
Removes a user’s invite, revoking their access and dropping their RSVP. Host-only.Promise<Event>
fetchInvitees
Host-only invitee (guest) list. Returns paginated EventInvite records with the invited user populated.Promise<PaginatedResponse<EventInvite>>
fetchEventRsvps
Named RSVP (guest) list. Returns paginated EventRsvp records with the user populated. Visible to hosts always, to any viewer whenguestListVisible is true. RSVP counts themselves are public via the event’s rsvpCounts.
Promise<PaginatedResponse<EventRsvp>>
