Buy multiple phone numbers in one request
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/numbers/buy-bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"phone_number": "+14155550100",
"country_code": "US"
},
{
"phone_number": "+14155550101",
"country_code": "US"
}
],
"compliance_profile_id": "cmpl_01J9Z8ABCDEF"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/numbers/buy-bulk"
payload = {
"items": [
{
"phone_number": "+14155550100",
"country_code": "US"
},
{
"phone_number": "+14155550101",
"country_code": "US"
}
],
"compliance_profile_id": "cmpl_01J9Z8ABCDEF"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{phone_number: '+14155550100', country_code: 'US'},
{phone_number: '+14155550101', country_code: 'US'}
],
compliance_profile_id: 'cmpl_01J9Z8ABCDEF'
})
};
fetch('https://api.orbit.devotel.io/api/v1/numbers/buy-bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/api/v1/numbers/buy-bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'phone_number' => '+14155550100',
'country_code' => 'US'
],
[
'phone_number' => '+14155550101',
'country_code' => 'US'
]
],
'compliance_profile_id' => 'cmpl_01J9Z8ABCDEF'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/numbers/buy-bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"phone_number\": \"+14155550100\",\n \"country_code\": \"US\"\n },\n {\n \"phone_number\": \"+14155550101\",\n \"country_code\": \"US\"\n }\n ],\n \"compliance_profile_id\": \"cmpl_01J9Z8ABCDEF\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.orbit.devotel.io/api/v1/numbers/buy-bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"phone_number\": \"+14155550100\",\n \"country_code\": \"US\"\n },\n {\n \"phone_number\": \"+14155550101\",\n \"country_code\": \"US\"\n }\n ],\n \"compliance_profile_id\": \"cmpl_01J9Z8ABCDEF\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/numbers/buy-bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"phone_number\": \"+14155550100\",\n \"country_code\": \"US\"\n },\n {\n \"phone_number\": \"+14155550101\",\n \"country_code\": \"US\"\n }\n ],\n \"compliance_profile_id\": \"cmpl_01J9Z8ABCDEF\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"order_id": "numOrder_01J9Z8ABCDEF",
"succeeded": [
{
"id": "num_01J9Z8ABCDEF",
"phone_number": "+14155550100"
}
],
"failed": [
{
"phone_number": "+14155550101",
"error": {
"code": "CARRIER_UNAVAILABLE",
"message": "Number no longer available"
}
}
],
"total_cost_cents": 200,
"debited_cents": 100
},
"meta": {
"request_id": "req_01J9Z8ABCDEF",
"timestamp": "2026-08-11T12:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Numbers
Buy multiple phone numbers in one request
Purchase up to 50 already-selected phone numbers in a single call, with an up-front wallet check against the summed per-number cost. Partial success is expected: provisioned numbers are returned in succeeded[] and per-row carrier failures in failed[] (a failed row is never charged), and the response is 200 even when every row fails — inspect succeeded to decide the UI state. The result is also persisted as a pollable order record (GET /numbers/orders/{id}) so partial fulfillment can be audited later. Inbound DID provisioning only (invariant #45 untouched). Requires the numbers:write scope.
POST
/
api
/
v1
/
numbers
/
buy-bulk
Buy multiple phone numbers in one request
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/numbers/buy-bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"phone_number": "+14155550100",
"country_code": "US"
},
{
"phone_number": "+14155550101",
"country_code": "US"
}
],
"compliance_profile_id": "cmpl_01J9Z8ABCDEF"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/numbers/buy-bulk"
payload = {
"items": [
{
"phone_number": "+14155550100",
"country_code": "US"
},
{
"phone_number": "+14155550101",
"country_code": "US"
}
],
"compliance_profile_id": "cmpl_01J9Z8ABCDEF"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{phone_number: '+14155550100', country_code: 'US'},
{phone_number: '+14155550101', country_code: 'US'}
],
compliance_profile_id: 'cmpl_01J9Z8ABCDEF'
})
};
fetch('https://api.orbit.devotel.io/api/v1/numbers/buy-bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/api/v1/numbers/buy-bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'phone_number' => '+14155550100',
'country_code' => 'US'
],
[
'phone_number' => '+14155550101',
'country_code' => 'US'
]
],
'compliance_profile_id' => 'cmpl_01J9Z8ABCDEF'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/numbers/buy-bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"phone_number\": \"+14155550100\",\n \"country_code\": \"US\"\n },\n {\n \"phone_number\": \"+14155550101\",\n \"country_code\": \"US\"\n }\n ],\n \"compliance_profile_id\": \"cmpl_01J9Z8ABCDEF\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.orbit.devotel.io/api/v1/numbers/buy-bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"phone_number\": \"+14155550100\",\n \"country_code\": \"US\"\n },\n {\n \"phone_number\": \"+14155550101\",\n \"country_code\": \"US\"\n }\n ],\n \"compliance_profile_id\": \"cmpl_01J9Z8ABCDEF\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/numbers/buy-bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"phone_number\": \"+14155550100\",\n \"country_code\": \"US\"\n },\n {\n \"phone_number\": \"+14155550101\",\n \"country_code\": \"US\"\n }\n ],\n \"compliance_profile_id\": \"cmpl_01J9Z8ABCDEF\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"order_id": "numOrder_01J9Z8ABCDEF",
"succeeded": [
{
"id": "num_01J9Z8ABCDEF",
"phone_number": "+14155550100"
}
],
"failed": [
{
"phone_number": "+14155550101",
"error": {
"code": "CARRIER_UNAVAILABLE",
"message": "Number no longer available"
}
}
],
"total_cost_cents": 200,
"debited_cents": 100
},
"meta": {
"request_id": "req_01J9Z8ABCDEF",
"timestamp": "2026-08-11T12:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
⌘I