Bookings

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.

GET
/bookings/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.

Authorization

x-api-key
x-api-key<token>

Company API key, created under Settings > API Keys.

In: header

Header Parameters

x-company-id?string

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.

Match^[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"}