POST
/
v1
/
outbound
/
purchase
curl --request POST \
  --url https://api.bland.ai/v1/outbound/purchase \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "area_code": "<string>"
}'
{
  "phone_number": "+18582814611"
}

Headers

authorization
string
required

Your API key for authentication.

Body

area_code
string
default: "415"

Choose a three-digit area code for your phone number. If set as a parameter, a number will only be purchased by exact match if available.

Response

phone_number
string

The created phone number, will be in the following format: +1XXXXXXXXXX

Example: +18582814611

{
  "phone_number": "+18582814611"
}