Skip to content

Get Nearest Available Time Slots for Team Member

Request

the team member's nearest sessions object has the following fields:

FieldTypeDescription
session_datestringNext date with available sessions
sessionsarrayList of available sessions

The following filters are available:

  • service_ids: Array of service IDs. If you need sessions, when can you book these services
  • datetime: date (in iso8601 format) for which you want to get the next sessions
Security
BearerPartner
Path
location_idnumberrequired

location ID

team_member_idnumberrequired

team member ID

Query
service_ids[]Array of numbers

Service ID. Filter by the list of service identifiers

datetimenumber

date in iso8601 format. Filter by date

Headers
Acceptstringrequired

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

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

application/json

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/public/openapi/book_staff_seances/{location_id}/{team_member_id}?service_ids%5B%5D=0&datetime=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
dataobject

Object with data

Example:
{ "seance_date": "2026-09-21", "seances": [ {}, {}, {} ] }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "seance_date": "2026-09-21", "seances": [] }, "meta": [] }