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.
| Who | Agents can call this |
| REST | POST /v1/phone/emergency |
| MCP tool | phone_setEmergency |
| Writes | yes, send an Idempotency-Key |
| Area | Shop |
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
| Field | Type | Required |
|---|---|---|
shop_id | string (uuid) | yes |
on | boolean | no |
words | array | no |
transfer | boolean | no |
text_alert | boolean | no |
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
| Code | Status | What to do |
|---|---|---|
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |