Buy a phone number
Buy a number from Twilio or Telnyx. THIS SPENDS CREDITS AND REAL MONEY.
Charged on PURCHASE, not on first use: the handler holds credits, buys the number from the carrier, stores it, registers it with the voice platform and only then converts the hold to a charge. A number bought and never dialled has still cost.
Not idempotent by number - buy the same number twice and the second call is a 409 rather than a second charge, but a retry after a timeout you cannot see the outcome of may have already succeeded. Send an Idempotency-Key header; every POST on this API honours it.
402 means insufficient credits and is the one failure worth handling distinctly - the number was not bought and nothing was charged.
Request
- Base URL: https://be.graph8.com/api/v1
- URL: https://be.graph8.com/api/v1/phone-numbers/purchase
- Auth: HTTP bearer
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.