Skip to main content
GET

Get available slots for a location

Scope:crm:booking-services.read
https://api.holded.com/api/v2/booking-locations/{locationId}/slots

Returns available time slots for a specific service at a location on a given day. The response also includes the booking form fields (under `form`) that must be collected from the user before calling Create a booking.

Parameters

Path parameters

locationIdstringrequired

Location ID (24-char hex ObjectId)

Query parameters

service_idstringrequired

Service identifier

daystring<date>required

Date in YYYY-MM-DD format

Request

python
import requests

url = "https://api.holded.com/api/v2/booking-locations/{locationId}/slots?service_id=value&day=2024-01-15"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
{
  "items": [
    {
      "from": "2024-01-15T10:30:00+01:00",
      "to": "2024-01-15T11:30:00+01:00",
      "duration": 3600
    }
  ],
  "form": [
    {
      "key": "name",
      "label": "Name",
      "type": "text",
      "required": true
    }
  ]
}

Success responses

200List of available slotsapplication/json
object
items[]object[]
fromstring<date-time>

Slot start in ISO 8601 format with timezone offset. Pass this value directly as `date_time` when creating a booking.

tostring<date-time>

Slot end in ISO 8601 format with timezone offset

durationinteger

Slot duration in seconds

form[]object[]

Booking form fields that must be collected from the user and passed as custom_fields when creating the booking.

keystring

Field key to use in custom_fields

labelstring

Human-readable field label

typestring

Field type

Enum:textnumberdateemailselectradiocheckbox
requiredboolean

Whether the field is required

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Location not foundapplication/json
429Rate limit exceededapplication/json