phone.setEmergency

How the shop's voice agent handles emergency calls. Off by default. on turns it on; words are the shop's own trigger words (suggested_words are only suggestions and are never turned on for you); transfer moves an emergency call to on_call_phone; text_alert texts the on-call worker a summary and the caller's number to call back, and is also sent when a transfer fails. The agent books an emergency only into emergency open slots the shop opened (schedule.addOpenSlots with kind emergency) and promises only the booked window. on_call_phone is a worker's phone and must not be the shop's own number. Owner only.

WhoAgents can call this
RESTPOST /v1/phone/emergency
MCP toolphone_setEmergency
Writesyes, send an Idempotency-Key
AreaShop

When to use it

How the shop's voice agent handles emergency calls. Off by default.

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
shop_idstring (uuid)yes
onbooleanno
wordsarrayno
transferbooleanno
text_alertbooleanno
on_call_phone['string', 'null']no

Example

POST https://doingwork.work/v1/phone/emergency
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000"
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

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