Purchase a phone number
Buy a phone number from the OmniDimension number shop.
A number can only be sold once, so this endpoint cannot double-sell, with or without a key. The
Idempotency-Key header is for recovering a lost response: send a fresh UUID with each
purchase, and if a request times out, retry with the same key to get your original order back with
replayed: true, or 409 in_progress while it is still running.
Some regions require the account to be identity verified first, and the check is per carrier. Pass
the carrier the search returned, so you
buy from the inventory you actually searched. Verification done in the dashboard counts: it is the
same gate either way.
The whole flow is in Buy a number over the API.
The monthly rental comes out of your wallet. The number is added to your account, ready to attach to an agent.
Headers
Idempotency-KeystringYour own unique key for this purchase, for example a fresh UUID. Strongly recommended: it is what makes a retry safe.
Body
regionenumrequiredRegion the number belongs to.
One of: INUS
phone_numberstringrequiredThe number to buy, as returned by the search operation.
carrierstringrequiredThe carrier to buy from: pass the carrier the search
response named, so you buy from the inventory you searched.
Required where the region has more than one carrier;
omitting it there returns 409 carrier_required.
user_idintegerresellers onlyReseller accounts only: the client to act on. Omit it to act on your own account.
Was this page helpful?
