---
title: "May We Dial This Number"
method: POST
path: "/api/voice/tickets/{ticket_id}/dial-check"
tags: ["voice"]
---

# May We Dial This Number

`POST /api/voice/tickets/{ticket_id}/dial-check`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/voice/tickets/{ticket_id}/dial-check`
- Auth: none declared

Asked by the softphone BEFORE it dials a number for a ticket (#3508).

The browser places its own leg, so the only refusal it could otherwise
get is a spoken one on the call. This asks `customer_dial.
number_to_dial` the same question the dial itself will ask, so a screen
can show the agent both numbers and the reason (the pop-up that does is
not built: it waits on a design, OPEN_ITEMS 2026-10-04; until then
`apps/web/src/features/voice/voice.ts` -> `checkDialNumber` is its typed
client and nothing on a screen calls it). It reads the rule; the one write is the event that records the answer
(`voice.may_we_dial_this_number`, ruling 2026-11-01-every-action-is-telemetered).

## Path parameters

- `ticket_id` string, uuid, required

## Request body

- DialNumberRequest: A number somebody is about to ring for a ticket. Empty means the number the ticket's own "Call them back" button would ring.
  - `number` string, nullable

## Response `200`

Successful Response

- DialCheckResponse: Whether `customer_dial.number_to_dial` allows this number for this ticket. `refusal` is `CustomerDialRefused.as_wire()` when it does not.
  - `allowed` boolean, required
  - `rule` string, nullable
  - `refusal` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
