SnozeDevelopers
API referenceCalendar

Find free slots across calendar sources

Reads the occurrences in the requested window, collapses them into busy blocks, and returns up to eight open slots of `durationMinutes`. Requires `workspace:read`, and honors the same source filtering and two-year range limit as the range listing. A duration that is not a positive whole number of minutes is rejected as a validation error.

POST
/v1/workspaces/{workspaceId}/calendar/availability
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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/workspaces/string/calendar/availability" \  -H "Content-Type: application/json" \  -d '{    "from": "string",    "to": "string",    "durationMinutes": 0  }'
{  "data": {    "busy": [      {        "startsAt": "string",        "endsAt": "string"      }    ],    "suggestions": [      {        "startsAt": "string",        "endsAt": "string"      }    ]  }}