Acquire a phone number for your organization. Credits are charged immediately.
curl --request POST \
--url https://api.callingbox.io/v1/numbers/purchase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14155551234"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"e164": "+15551234567",
"friendly_name": "<string>",
"country_code": "US",
"number_type": "local",
"status": "active",
"monthly_cost_cents": 100,
"purchased_at": "2023-11-07T05:31:56Z"
}API key starting with sk_
Phone number to purchase in E.164 format
"+14155551234"
Number purchased successfully
Unique phone number identifier
Phone number in E.164 format
"+15551234567"
Optional display label
ISO country code
"US"
Number type: local or toll_free
"local"
Number status
"active"
Monthly cost in cents
100
When the number was purchased
curl --request POST \
--url https://api.callingbox.io/v1/numbers/purchase \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14155551234"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"e164": "+15551234567",
"friendly_name": "<string>",
"country_code": "US",
"number_type": "local",
"status": "active",
"monthly_cost_cents": 100,
"purchased_at": "2023-11-07T05:31:56Z"
}