Skip to content

Get a team member's schedule

Request

Returns the configured working schedule of a Team Member for a date range — the days and working intervals set by the business. This is not availability: free bookable slots come from GET /locations/{location_id}/availability.

Visibility follows the acting user's rights in the Digital schedule: a member outside the user's allowed team members (own appointments or own position) answers 404 resource_not_found, and days before the user's history access limit (N days back from today) are omitted from days; date_from and date_to stay as requested.

Security
OAuth2(Required scopes: team_members:read) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

team_member_idintegerrequired

Identifier of the Team Member.

Query
date_fromstring, (date)required

First date of the range (inclusive), YYYY-MM-DD.

date_tostring, (date)required

Last date of the range (inclusive), YYYY-MM-DD. Must not be earlier than date_from; the range covers at most 92 calendar days inclusive, i.e. date_to is at most 91 days after date_from (any three calendar months); otherwise 422 validation_failed with errors[0].pointer = date_to, source = query and code = invalid_value.

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/team_members/{team_member_id}/schedule?date_from=2019-08-24&date_to=2019-08-24' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Every visible day of the requested range with its working intervals; a day off has an empty intervals array, a day closed by the history access limit is absent.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
objectstringrequired
Value:"team_member_schedule"
team_member_idintegerrequired
date_fromstring, (date)required
date_tostring, (date)required
daysArray of objects(ScheduleDay)required
Response
{ "object": "team_member_schedule", "team_member_id": 321, "date_from": "2026-07-24", "date_to": "2026-07-26", "days": [ { … }, { … }, { … } ] }