EventInvite grants a specific user access to an invite-only event. There is at most one invite per user per event (enforced by a unique (eventId, userId) constraint), so re-inviting a user is idempotent. Invites are managed by hosts and always reference a Sublay userId (never a foreign ID).
Invite records are returned by the host-only invitee-list endpoint (Fetch Invitees).
EventInvite
Behavior
- Add —
POST /events/:eventId/inviteswith auserId. Host-only. Idempotent against the unique constraint. When thenotificationsbundle is present, the invitee receives anevent-invitenotification. - Remove —
DELETE /events/:eventId/inviteswith auserId. Host-only. Removing an invite revokes the user’s access to aninvite-only event and deletes their RSVP (decrementing the count). - Visibility tie-in — for an
invite-visibility event, only users with an invite row (plus hosts) can see or RSVP to the event.

