List events

List a site’s events. Unlike the schedule the published site shows, this returns hidden events too, and returns past events as well as upcoming ones unless you ask otherwise.

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

Requires the content scope.

Usage

curl "https://sitepaste.com/api/v1/public/sites/default/events?type=breathwork&upcoming=true" \
  -H "Authorization: Bearer $TOKEN"

Query parameters

ParameterTypeRequiredDescription
upcomingbooleanNotrue returns only events that have not started yet. Default: all events. Spelled true or false; anything else is a 422.
typestringNoFilter to events carrying this event type slug.
limitintegerNoMax events to return (default and cap: 1000).
offsetintegerNoPagination offset.

Response

{
  "events": [
    {
      "id": "4ghjanhpo9sy",
      "title": "Morning Breathwork",
      "eventTypeSlugs": ["breathwork"],
      "startsAt": "2026-09-01T16:00:00Z",
      "timezone": "America/Los_Angeles",
      "price": "$25",
      "bookingUrl": "https://example.com/book",
      "hidden": false,
      "createdAt": "2026-08-01T12:00:00Z",
      "updatedAt": "2026-08-01T12:00:00Z"
    }
  ],
  "total": 37,
  "limit": 1000,
  "offset": 0
}

total counts every event the filters match, not only the ones returned.

To show an event’s date and time, format startsAt in the event’s timezone.