SnozeDevelopers
API referenceCalendar

List calendar occurrences in a date range

Expands recurring events into individual occurrences between `from` and `to` across the caller's accessible sources, refreshing database-backed events first, and returns them with per-source sync health. Requires `workspace:read`. Narrow the result with `sourceIds`, `statuses` (both comma-separated), and a `search` substring on the title; ranges must be positive and no longer than two years or the request is rejected as a validation error.

GET
/v1/workspaces/{workspaceId}/calendar/range
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string

Query Parameters

from*string
to*string
sourceIds?string|null
statuses?string|null
search?string|null

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/calendar/range?from=string&to=string"
{  "data": {    "from": "string",    "to": "string",    "occurrences": [      {        "id": "string",        "eventId": "string",        "originalStart": "string",        "allDay": true,        "startsAt": "string",        "endsAt": "string",        "startDate": "string",        "endDate": "string",        "cancelled": true,        "event": {          "id": "string",          "workspaceId": "string",          "sourceId": "string",          "sourceKind": "native",          "calendarId": "string",          "recordSourceId": "string",          "recordId": "string",          "databaseId": "string",          "title": "string",          "description": "string",          "location": "string",          "allDay": true,          "startsAt": "string",          "endsAt": "string",          "startDate": "string",          "endDate": "string",          "timeZone": "string",          "recurrenceRule": "string",          "recurrenceExceptions": [            "string"          ],          "status": "confirmed",          "visibility": "default",          "syncState": "current",          "revision": 0,          "attendees": [            {              "id": "string",              "userId": "string",              "email": "string",              "displayName": "string",              "responseStatus": "needs_action",              "optional": true,              "organizer": true            }          ],          "links": [            {              "id": "string",              "kind": "string",              "label": "string",              "url": "string"            }          ],          "createdAt": "string",          "updatedAt": "string"        }      }    ],    "sourceHealth": [      {        "sourceId": "string",        "syncState": "current",        "lastSyncedAt": "string"      }    ]  }}