List booking services
Returns the company's active booking services with their form fields and weekly availability windows, along with the lead time and the days the company has closed. This is the first call when rendering a booking flow of your own; follow it with the availability endpoint for the day the client picks.
Returns the company's active booking services with their form fields and weekly availability windows, along with the lead time and the days the company has closed. This is the first call when rendering a booking flow of your own; follow it with the availability endpoint for the day the client picks.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Response Body
application/json
curl -X GET "https://example.com/bookings/services"{ "blackoutDates": [ "string" ], "leadTimeMinutes": 0, "services": [ { "availability": [ { "assignedUserId": "string", "dayOfWeek": "FRIDAY", "endTime": "string", "id": "string", "startTime": "string", "timeZone": "string" } ], "bufferAfterMinutes": 0, "bufferBeforeMinutes": 0, "description": "string", "duration": 0, "formFields": [ { "id": "string", "isRequired": true, "label": "string", "type": "string" } ], "id": "string", "name": "string", "timeZone": "string" } ], "slug": "string"}List bookings GET
Lists the company's bookings, latest start first, 25 to a page. Narrow it with `from` and `to`, a `serviceId`, the `assignedUserId` of the company user assigned to them or a `status`. Without the `bookings.read.all` permission the list holds only bookings assigned to the caller; an API key sees every booking.
List a service's working days GET
Returns the weekdays the service has at least one availability window on, so a date picker can grey out the rest. A service from another company returns 404.