Register a number with the voice platform
POST /voice/numbers/provision
Wire an already-owned number into the voice platform.
BUYS NOTHING. Voice calls this operation purchase and it is published
here as provision deliberately: it creates SIP trunks and dispatch rules
for a number you already hold, while POST /phone-numbers/purchase is the
one that spends credits and buys a DID. Two operations both called
“purchase”, one of which takes money and one of which does not, is not a
distinction to leave to a docstring.
IDEMPOTENT: a number already registered comes back as success rather than an error, and an unverified Telnyx number has its caller-ID verification re-queued on the way through.
Reach for this to repair a purchase whose voice half failed, or to adopt a
number bought outside graph8. org_id is taken from the API key.
Authorizations
Parameters
Header Parameters
Request Body required
Register an already-owned number with the voice platform.
Mirrors graph8_livekit.schemas.numbers.Number field-for-field EXCEPT
org_id, which is taken from the API key and can never be sent - see the
router docstring.
number, not phone_number: this is voice’s field name, and the proxy
sends voice’s own wire shape rather than inventing a translation layer
that would have to be kept in step with it.
object
Provision as a dialer number (no LiveKit).
The number to register, E.164. You must already own it.
Which carrier holds the number.
Provision as someone’s personal work phone. Implies dialer.
Responses
200
Successful Response
object
An open envelope for a purchase result, a release, or an A2P job.
Open on purpose. A purchase returns the stored row (whose capability and
provider-metadata keys differ per provider), a workflow start returns a
workflow_id, and the A2P reconcile returns per-number outcomes that grow
as carriers add statuses. Pinning it would silently drop whatever the
provider reported that this contract had not caught up on.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error