Create an event

Create one event. The response is a 201 with the new event’s URI in Location.

POST https://sitepaste.com/api/v1/public/sites/{siteId}/events

Requires the content scope.

To write several events at once, or to create, update, and delete together, use POST /sites/{siteId}/events/batch. To change an event that already exists, use PATCH /sites/{siteId}/events/{eventId}.

Usage

curl -X POST https://sitepaste.com/api/v1/public/sites/default/events \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Morning Breathwork",
    "startsAt": "2026-09-01T09:00",
    "timezone": "America/Los_Angeles",
    "eventTypeSlugs": ["breathwork"],
    "price": "$25",
    "bookingUrl": "https://example.com/book"
  }'

The response’s Location names the new event:

Location: /api/v1/public/sites/default/events/4ghjanhpo9sy

Saving an event does not publish it. Deploy the site with POST /sites/{siteId}/deployments when you are ready for the change to go live.

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Body

The body is one event object.

FieldTypeRequiredDescription
titlestringYesThe event’s name.
startsAtstringYesRFC 3339, or YYYY-MM-DDTHH:MM read in the event’s own timezone.
timezonestringYesIANA timezone name, such as America/Los_Angeles.
descriptionstringNoLonger text for the event.
eventTypeSlugsarrayNoSlugs of event types that must already exist on the site.
pricestringNoDisplayed as written, such as $25.
capacityintegerNoNumber of places.
locationstringNoWhere the event happens.
imageUrlstringNoImage for the event.
bookingUrlstringNoHTTPS only.
hiddenbooleanNoKeeps the event off the published schedule.

The site is named in the path, not the body. See addressing.

events and deleteIds belong to the batch, an id names an event that already exists and belongs to the event’s own URI, and publishing has its own route. A body carrying one of them answers 422 naming the field and where it belongs.

Response

201 Created, with the event in the representation GET /sites/{siteId}/events/{eventId} serves and the event’s URI in Location.

Errors

Field problems return 422 and name the field:

{ "error": "validation failed", "code": "validation_failed", "fields": { "timezone": "invalid timezone" } }

An eventTypeSlugs entry naming a type that does not exist on the site is a 422 as well. See errors.