Skip to main content
POST
Add Invite
Creates an EventInvite for a user. Host-only (service/master keys bypass the check). The invite is keyed on a Sublay userId (never a foreign ID) and is idempotent against the unique (eventId, userId) constraint — re-inviting an already-invited user is a no-op success. For an invite-visibility event, the invited user can now see and RSVP to the event. When the notifications bundle is present, the invitee receives an event-invite notification (best-effort).

Path Parameters

eventId
string
required
UUID of the event.

Body Parameters

userId
string
required
The user to invite.

Response

Returns the updated Event.

Error Responses

See also: useAddInvite