Skip to content

Get a List of Time Slots Available for Booking

Request

The sessions available for booking object has the following fields:

FieldTypeDescription
timestringSession time (17:30 for example)
session_lengthnumberSession duration in seconds
datetimedatetimeDate and time of the session in ISO8601 format (must be passed when creating the appointment)

The following filters are available:

  • service_ids: Array of service IDs. If you need sessions, when can you book these services
Security
BearerPartner
Path
location_idnumberrequired

location ID

datestringrequired

date in iso8601 format. Filter by booking date (eg '2026-09-30')

team_member_idnumberrequired

team member ID. Filter by team member ID Default: 0

Example:0
Query
service_ids[]string

Service ID. Filter by the list of service identifiers

exclude_record_idnumber

ID of an existing Appointment that is being rescheduled. When set, the search also accepts Services that are no longer available for online booking, so the Appointment can be moved even if its Service was switched offline. The Appointment's current time still counts as busy.

Example:exclude_record_id=0
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/public/openapi/book_times/{location_id}/{team_member_id}/{date}?service_ids%5B%5D=string&exclude_record_id=0' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

Array of objects with data

Example:
[ { "time": "12:00", "seance_length": 3600, "datetime": "2026-09-21T23:00:00.000-05:00" }, { "time": "13:00", "seance_length": 3600, "datetime": "2026-09-21T23:00:00.000-05:00" }, { "time": "14:00", "seance_length": 3600, "datetime": "2026-09-21T23:00:00.000-05:00" }, { "time": "15:00", "seance_length": 3600, "datetime": "2026-09-21T23:00:00.000-05:00" }, { "time": "16:00", "seance_length": 3600, "datetime": "2026-09-21T23:00:00.000-05:00" } ]
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": [ { … }, { … }, { … }, { … }, { … } ], "meta": [] }