---
title: "Get Nearest Available Time Slots for Team Member"
method: GET
path: "/book_staff_seances/{location_id}/{team_member_id}"
tags: ["Online Booking"]
---

# Get Nearest Available Time Slots for Team Member

`GET /book_staff_seances/{location_id}/{team_member_id}`

## Request

- Base URL: `https://api.alteg.io/api/v1`
- URL: `https://api.alteg.io/api/v1/book_staff_seances/{location_id}/{team_member_id}`
- Auth: HTTP bearer

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

| Field | Type | Description |
| ------------- | ------------- | ------------- |
| session_date | string | Next date with available sessions |
| sessions | array | List 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

## Path parameters

- `location_id` number, required
- `team_member_id` number, required

## Query parameters

- `service_ids[]` number[]
- `datetime` number

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Response `200`

OK

- BookStaffSeancesCompanyidStaffidDataTypes: Get a list of the nearest available sessions
  - `success` boolean: Execution success status (true)
  - `data` object: Object with data
    - `seance_date` string, date: Upcoming date with available sessions
    - `seances` object[]: List of available sessions
      - `time` string: Session time (HH:MM format)
      - `seance_length` number: Session duration in seconds
      - `sum_length` number: Total duration including all selected services in seconds
      - `datetime` string, date-time: Session date and time in ISO 8601 format
  - `meta` object[]: Metadata (empty array)

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/alteg/apis/online-booking.md) - [All operations](https://skmtc.dev/alteg/apis/online-booking/llms.txt) - [OpenAPI document](https://skmtc.dev/alteg/apis/online-booking/revisions/5219afc665ea?raw)
