Create an inbound routing rule
POST /voice/inbound-routing/rules
Decide where calls on one number go.
THIS CHANGES WHAT HAPPENS TO REAL CALLERS as soon as it is active. A rule
with a lower priority than an existing one takes precedence over it, so
creating a rule can silently retire the one that was working.
target_type and ring_strategy are closed to voice’s own sets. org_id
is absent from the body and pinned from the key.
Authorizations
Parameters
Header Parameters
Request Body required
A rule deciding where an inbound call on one number goes.
org_id is absent on purpose - pinned from the key by the router.
Rules are evaluated by ascending priority; the first whose
match_conditions hold wins.
object
{"always": true} or a {"schedule": {...}} block with days, start_time/end_time as HH:MM, and an IANA timezone.
object
The number this rule applies to.
Lower wins. Ties are resolved arbitrarily.
Responses
201
Successful Response
object
One voice object - a collection, an agent, a route, a chat.
Open-shaped: voice adds fields to these bodies on its own release cadence and a dropped-or-added key must not be a 500 in this service.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error