Purchase a phone number from inventory and assign it to your account. Debits your account balance for the setup fee and monthly fee. For sub-accounts (SA_), the parent master account (MA_) is charged.
curl --request POST \
--url https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/purchase-from-inventory \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"e164": "+919876543210"
}
'{
"message": "Number purchased successfully",
"number": {
"id": "aabbccdd-1234-5678-90ab-cdef12345678",
"account_id": "MA_XXXXXXXX",
"e164": "+919876543210",
"country": "IN",
"region": "Karnataka",
"capabilities": {
"voice": true,
"sms": false,
"mms": false,
"fax": false
},
"status": "active",
"provider": "",
"setup_fee": 100,
"monthly_fee": 1,
"currency": "INR",
"voice_enabled": true,
"tags": [],
"purchased_at": "2026-03-25T10:00:00Z",
"is_blocked": false,
"created_at": "2026-03-25T10:00:00Z",
"updated_at": "2026-03-25T10:00:00Z",
"is_trial_number": false,
"minimum_commitment_months": 0,
"aadhaar_verification_required": false,
"aadhaar_verified": false,
"source": "inventory"
},
"items": [
{
"id": "aabbccdd-1234-5678-90ab-cdef12345678",
"account_id": "MA_XXXXXXXX",
"e164": "+919876543210",
"country": "IN",
"region": "Karnataka",
"capabilities": {
"voice": true,
"sms": false,
"mms": false,
"fax": false
},
"status": "active",
"monthly_fee": 1,
"currency": "INR"
}
]
}Purchases a number from inventory and assigns it to your account. The operation debits your account balance for the setup fee and monthly fee.Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
POST /v1/account/{auth_id}/numbers/purchase-from-inventory
X-Auth-ID - Your Auth ID (e.g., {auth_id})X-Auth-Token - Your account Auth TokenContent-Type: application/json| Field | Type | Required | Description |
|---|---|---|---|
e164 | string | Yes | Phone number to purchase in E164 format (e.g., “+919876543210”). |
currency | string | No | Currency for transaction. Defaults to the number’s currency or “USD” if not specified. |
auth_id assigned to your account.
{
"message": "purchased from inventory",
"number": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"auth_id": "{auth_id}",
"e164": "+919876543210",
"country": "IN",
"region": "MH",
"status": "active",
"provider": "manual",
"setup_fee": 0.0,
"monthly_fee": 1.0,
"currency": "USD",
"purchased_at": "2025-01-15T10:00:00Z",
"created_at": "2025-01-15T10:00:00Z",
"updated_at": "2025-01-15T10:00:00Z"
}
}
curl -X POST https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/purchase-from-inventory \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{
"e164": "+919876543210",
"currency": "USD"
}'
{
"error": "not found",
"message": "number not found in inventory"
}
{
"error": "internal server error",
"message": "failed to purchase number from provider"
}
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Your account Auth ID
"MA_XXXXXX"
Number purchased
Was this page helpful?
curl --request POST \
--url https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/purchase-from-inventory \
--header 'Content-Type: application/json' \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>' \
--data '
{
"e164": "+919876543210"
}
'{
"message": "Number purchased successfully",
"number": {
"id": "aabbccdd-1234-5678-90ab-cdef12345678",
"account_id": "MA_XXXXXXXX",
"e164": "+919876543210",
"country": "IN",
"region": "Karnataka",
"capabilities": {
"voice": true,
"sms": false,
"mms": false,
"fax": false
},
"status": "active",
"provider": "",
"setup_fee": 100,
"monthly_fee": 1,
"currency": "INR",
"voice_enabled": true,
"tags": [],
"purchased_at": "2026-03-25T10:00:00Z",
"is_blocked": false,
"created_at": "2026-03-25T10:00:00Z",
"updated_at": "2026-03-25T10:00:00Z",
"is_trial_number": false,
"minimum_commitment_months": 0,
"aadhaar_verification_required": false,
"aadhaar_verified": false,
"source": "inventory"
},
"items": [
{
"id": "aabbccdd-1234-5678-90ab-cdef12345678",
"account_id": "MA_XXXXXXXX",
"e164": "+919876543210",
"country": "IN",
"region": "Karnataka",
"capabilities": {
"voice": true,
"sms": false,
"mms": false,
"fax": false
},
"status": "active",
"monthly_fee": 1,
"currency": "INR"
}
]
}