Skip to main content

Availability API

GET /availability/get/ requires min_timestamp and max_timestamp Unix timestamps.

Optional comma-separated filters:

  • services
  • providers
curl "https://example.com/wp-json/thebooking/v1/API/availability/get/?min_timestamp=1779148800&max_timestamp=1779753600&services=s_demo" \
-H "Authorization: Bearer $TBK_API_TOKEN"

The response contains canonical slots generated from plans, durations, buffers, capacity, provider conflicts, lead times, and connected calendars.

Use the returned slot identity when calling reservations/add/. Refresh availability after a 403, because another booking or calendar change may have invalidated it.