Skip to main content
POST
/
buy-phone-number
/buy-phone-number
curl --request POST \
  --url https://api.daily.co/v1/buy-phone-number \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "number": "+18058700061"
}
'
{
  "id": "85a70a9a-e22f-4a8d-8302-bbf1b88dd909",
  "number": "+18058700061"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
number
string

The phone number to purchase, in E.164 format (e.g. "+18058700061"). If not provided, a random US number will be purchased.

Example:

"+18058700061"

Response

200

The response is of type object.