Private preview of the new site. Not live.

schedule.openSlots

Times the shop marked open for its voice agent to book (upcoming only), and which are booked. Any worker in the shop can read it.

WhoAgents can call this
RESTGET /v1/schedule/open-slots
MCP toolschedule_openSlots
Writesno
AreaScheduling and visits

When to use it

Read schedule.settings first: it has the shop's time zone, working hours, arrival window and buffer. Use schedule.findTime to get open times that fit the shop's hours, each worker's hours and time off, and visits already booked with the buffer around them, then book with visits.create.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
shop_idstring (uuid)yes

Example

GET https://doingwork.work/v1/schedule/open-slots?shop_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
dataarrayyes
data[].slot_idstring (uuid)yes
data[].starts_atstring (date-time)yes
data[].ends_atstring (date-time)yes
data[].bookedbooleanyes
data[].request_id['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']no
{
  "data": [
    {
      "slot_id": "00000000-0000-4000-8000-000000000000",
      "starts_at": "...",
      "ends_at": "...",
      "booked": true
    }
  ]
}

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.