voice

May We Dial This Number

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).

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)
  • Auth
    none declared

Path parameters

ticket_id, string uuid required

Request body

DialNumberRequest required

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

Successful Response

DialCheckResponse required

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

Changes

No recorded changes to this operation across all 251 revisions of this API.