Purchase Phone Number
Provisions a new phone number for a sub-account.
https://api.vantaxai.com/v1/phone-numbersSearch for an available number by `area_code` or a broader `number_pattern`, then provision it to the given sub-account. Provide exactly one of `area_code` or `number_pattern`. The provisioned number can be assigned to an Agent immediately after purchase.
Provisions a real, billable number
Headers
AuthorizationstringrequiredBearer authentication with your secret API key.
example: Bearer vx_live_3fa9c2…
Content-TypestringrequiredMust be application/json for requests with a body.
example: application/json
Body Parameters
sub_account_idstringrequiredSub-account that will own and be billed for the number.
example: sub_8a1f4c2e
countrystringrequiredISO 3166-1 alpha-2 country code to search within. Defaults to "US".
example: US
area_codestringoptionalPreferred area code to search for an available number. Provide this or `number_pattern`.
example: 415
number_patternstringoptionalDigit pattern to match available numbers, using `*` as a wildcard. Provide this or `area_code`.
example: +1415555****