
# 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.

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

Requires the `content` scope.

## Usage

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

## Query parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| upcoming | boolean | No | `true` returns only events that have not started yet. Default: all events. Spelled `true` or `false`; anything else is a 422. |
| type | string | No | Filter to events carrying this event type slug. |
| limit | integer | No | Max events to return (default and cap: 1000). |
| offset | integer | No | Pagination offset. |

## Response

```json
{
  "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`.