Skip to main content
POST
Create Event
Creates an event. The authenticated user becomes the creator (userId) and is automatically added to hostIds. Supports inline cover and gallery image upload via multipart/form-data. The required location fields depend on type: online needs a url; physical needs an address or location; hybrid needs both a url and an address/location. Requires authentication. Space-scoped events (spaceId) require the spaces bundle and active membership of the space. Image upload requires the files-images bundle.

Body Parameters

string
required
Event title. 1–300 characters.
string
required
ISO datetime when the event starts. RSVPs close at this moment.
string
required
"online", "physical", or "hybrid". Controls which location fields are required.
string
Optional description.
string
Optional ISO datetime when the event ends.
string
Optional IANA timezone string, e.g. "America/New_York".
string
Join/stream URL. Required for online and hybrid events.
string
Optional venue name.
string
Street address. Required (alone or with location) for physical and hybrid events.
{ latitude: number; longitude: number }
Geographic coordinates. Stored as a GeoJSON point and used for proximity search. On multipart requests, send as a JSON string.
string
Optional UUID of a space to scope the event to. Requires the spaces bundle and active membership. Mandatory when visibility is "members".
string
"public", "members", or "invite". Defaults to "public". "members" requires a spaceId.
number
Maximum number of going RSVPs. Positive integer. Omit for unlimited.
boolean
Whether a "maybe" RSVP is allowed. Defaults to true.
boolean
Whether non-hosts can view the named guest list. Defaults to true.
string[]
Additional host user IDs. The creator is always added automatically. On multipart requests, send as a JSON string.
object
Arbitrary key-value data. Up to 1 MB.
string
Service/master key only. Create the event on behalf of this user (who becomes the creator and first host).
file
Optional single cover image. Multipart file field. Requires cover.options when provided.
string
JSON-stringified image-processing options for the cover (the same discriminated union used by Upload Image).
Optional gallery images (up to 10). Multipart file field. Requires gallery.options when provided.
JSON-stringified image-processing options applied to every gallery image.

Response

Returns 201 with the created Event object, including inline rsvpCounts and (with images) the files association.

Error Responses

See also: useCreateEvent · node-sdk · js-sdk