Ask to buy a number
post/phone/purchases
Ask to buy a number. Nothing is bought: this records the price and waits for a person to confirm it.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
voice:write- Mcp
rivier_phone_purchase_request- Graphql
Mutation.voicePhonePurchaseRequest- Sdk
voice.phonePurchase.request- Cli
voice phone purchase request
Request bodyapplication/json, required
- numberstringrequiredPattern: ^+\d{6,15}$.
- countrystringrequiredAt most 2 characters.
- typestringOne of: local, mobile, toll-free.
- labelstringrequiredAt most 120 characters.
Responses
- 201application/jsonSuccess
- idstringrequired
- numberstringrequired
- countrystringrequired
- typestringrequired
- labelstringrequired
- quoteMicrosnumber or nullrequired
- currencystringrequired
- requirementslist of objectrequired
- kindstringrequired
- titlestringrequired
- blocksPurchasebooleanrequired
- statestringrequiredOne of: pending, confirmed, bought, declined, expired, failed.
- requestedBystringrequired
- decidedBystring or nullrequired
- numberIdstring or nullrequired
- notestringrequired
- createdAtstringrequired
- expiresAtstringrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring