Vobiz Phone Numbers API
Manage phone numbers on your account
Operations 9
DELETE
/api/v1/account/{auth_id}/numbers/{e164}/assign-subaccount
Unassign DID (15-day cool-off enforced)
#
Manage phone numbers on your account
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/vobiz-ai:vobiz-ai-phone-numbers-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Vobiz Phone Numbers API
description: 'The Vobiz API lets you make calls, manage phone numbers, configure SIP trunks,
and access account data programmatically.
**Base URL:** `https://api.vobiz.ai`
**Authentication:** All requests require `X-Auth-ID` and `X-Auth-Token` headers.
Obtain these from your Vobiz Console.
**Versioning and deprecation:** The API is versioned in the URL (`/api/v1/`). Breaking changes go through a published deprecation lifecycle: the change is announced and marked `deprecated` in this spec, deprecated endpoints carry `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) response headers, and a deprecated field or endpoint stays available for a minimum of 90 days between the sunset announcement and removal. See the versioning and deprecation policy.'
version: '1.0'
contact:
email: support@vobiz.ai
url: https://www.vobiz.ai
servers:
- url: https://api.vobiz.ai
description: Production
security:
- AuthID: []
AuthToken: []
tags:
- name: Phone Numbers
description: Manage phone numbers on your account
paths:
/api/v1/Account/{auth_id}/numbers:
get:
operationId: list-numbers
summary: List phone numbers
description: List all phone numbers on your account.
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: limit
in: query
schema:
type: integer
default: 20
- name: offset
in: query
schema:
type: integer
default: 0
responses:
'200':
description: List of phone numbers
content:
application/json:
example:
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
provider: ''
setup_fee: 100
monthly_fee: 300
currency: INR
application_id: '20577609616603585'
voice_enabled: true
tags: []
purchased_at: '2026-03-25T06:58:38.796024Z'
is_blocked: false
created_at: '2026-03-25T18:30:00Z'
updated_at: '2026-03-25T06:58:54.752187Z'
is_trial_number: false
last_billing_date: '2026-03-25T06:58:38.796024Z'
next_billing_date: '2026-04-25T06:58:38.796024Z'
minimum_commitment_months: 0
aadhaar_verification_required: false
aadhaar_verified: false
source: purchased
- id: 11223344-5566-7788-99aa-bbccddeeff00
account_id: MA_XXXXXXXX
e164: '+912271263984'
country: IN
region: Mumbai
capabilities:
voice: true
sms: false
mms: false
fax: false
status: active
provider: ''
setup_fee: 100
monthly_fee: 200
currency: INR
application_id: '31985999331899218'
voice_enabled: true
tags: []
purchased_at: '2026-03-25T10:25:30.672202Z'
is_blocked: false
created_at: '2026-03-25T09:30:04.541115Z'
updated_at: '2026-03-25T10:29:35.330503Z'
is_trial_number: false
last_billing_date: '2026-03-25T10:25:30.672202Z'
next_billing_date: '2026-04-25T10:25:30.672202Z'
minimum_commitment_months: 0
aadhaar_verification_required: false
aadhaar_verified: false
source: purchased
page: 1
per_page: 25
total: 24
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
id:
type: string
account_id:
type: string
e164:
type: string
country:
type: string
region:
type: string
capabilities:
type: object
properties:
voice:
type: boolean
sms:
type: boolean
mms:
type: boolean
fax:
type: boolean
required:
- voice
- sms
- mms
- fax
status:
type: string
provider:
type: string
setup_fee:
type: integer
monthly_fee:
type: integer
currency:
type: string
application_id:
type: string
voice_enabled:
type: boolean
tags:
type: array
items:
type: string
purchased_at:
type: string
is_blocked:
type: boolean
created_at:
type: string
updated_at:
type: string
is_trial_number:
type: boolean
last_billing_date:
type: string
next_billing_date:
type: string
minimum_commitment_months:
type: integer
aadhaar_verification_required:
type: boolean
aadhaar_verified:
type: boolean
source:
type: string
released_at:
type: string
trunk_group_id:
type: string
required:
- id
- account_id
- e164
- country
- region
- capabilities
- status
- provider
- setup_fee
- monthly_fee
- currency
- voice_enabled
- tags
- purchased_at
- is_blocked
- created_at
- updated_at
- is_trial_number
- minimum_commitment_months
- aadhaar_verification_required
- aadhaar_verified
- source
page:
type: integer
per_page:
type: integer
total:
type: integer
required:
- items
- page
- per_page
- total
/api/v1/Account/{auth_id}/numbers/{e164}:
delete:
operationId: unrent-number
summary: Unrent a number
description: Release a phone number from your account.
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: e164
in: path
required: true
description: Phone number in E.164 format (without the +)
schema:
type: string
example: '919876543210'
responses:
'204':
description: Number released
/api/v1/Account/{auth_id}/inventory/numbers:
get:
operationId: list-inventory-numbers
summary: List Inventory Numbers
description: 'Browse available phone numbers in inventory that are not assigned to
any account. Only numbers with `status=''active''` and `auth_id=NULL`
are returned. These numbers are ready to be purchased.'
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: country
in: query
description: Filter by country code (e.g., "US", "IN").
schema:
type: string
example: IN
- name: search
in: query
description: Substring match against the E.164 number (e.g., "80" matches "+918065...").
schema:
type: string
- name: page
in: query
schema:
type: integer
default: 1
- name: per_page
in: query
schema:
type: integer
default: 25
maximum: 100
responses:
'200':
description: Inventory numbers
content:
application/json:
example:
items:
- id: 550e8400-e29b-41d4-a716-446655440000
e164: '+14155551234'
country: US
region: CA
status: active
setup_fee: 0
monthly_fee: 1
currency: INR
created_at: '2025-01-15T10:00:00Z'
updated_at: '2025-01-15T10:00:00Z'
page: 1
per_page: 25
total: 500
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
id:
type: string
account_id:
type: string
e164:
type: string
country:
type: string
capabilities:
type: object
properties:
voice:
type: boolean
sms:
type: boolean
mms:
type: boolean
fax:
type: boolean
required:
- voice
- sms
- mms
- fax
status:
type: string
provider:
type: string
setup_fee:
type: integer
monthly_fee:
type: integer
currency:
type: string
voice_enabled:
type: boolean
tags: {}
is_blocked:
type: boolean
created_at:
type: string
updated_at:
type: string
is_trial_number:
type: boolean
minimum_commitment_months:
type: integer
aadhaar_verification_required:
type: boolean
aadhaar_verified:
type: boolean
region:
type: string
required:
- id
- account_id
- e164
- country
- capabilities
- status
- provider
- setup_fee
- monthly_fee
- currency
- voice_enabled
- tags
- is_blocked
- created_at
- updated_at
- is_trial_number
- minimum_commitment_months
- aadhaar_verification_required
- aadhaar_verified
page:
type: integer
per_page:
type: integer
total:
type: integer
required:
- items
- page
- per_page
- total
/api/v1/Account/{auth_id}/numbers/purchase-from-inventory:
post:
operationId: purchase-from-inventory
summary: Purchase from Inventory
description: '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.'
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- e164
properties:
e164:
type: string
description: Phone number to purchase in E.164 format.
example: '+919876543210'
currency:
type: string
description: Currency for transaction. Defaults to the number's currency or "USD".
example: USD
example:
e164: '+919876543210'
currency: USD
responses:
'200':
description: Number purchased
content:
application/json:
example:
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
'404':
description: Number not found in inventory
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Failed to purchase number
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/Account/{auth_id}/numbers/{phone_number}/assign:
post:
operationId: assign-number-to-trunk
summary: Assign Number to Trunk
description: 'Assign a phone number to a specific SIP trunk. Once assigned, all
inbound calls to that phone number will be routed through the
designated trunk. The phone number must be URL-encoded; use `%2B`
instead of `+` (e.g., `%2B912271264217`).'
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: phone_number
in: path
required: true
description: The phone number to assign, URL-encoded (use %2B instead of +).
schema:
type: string
example: '%2B912271264217'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- trunk_group_id
properties:
trunk_group_id:
type: string
format: uuid
description: The UUID of the trunk to assign this number to.
example: e3e55a78-1234-5678-90ab-cdef12345678
example:
trunk_group_id: e3e55a78-1234-5678-90ab-cdef12345678
responses:
'204':
description: Number assigned to trunk
'400':
description: Invalid request (e.g., already assigned)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Number not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: unassign-number-from-trunk
summary: Unassign Number from Trunk
description: 'Remove the assignment between a phone number and a SIP trunk. After
unassignment, the number remains in your account inventory but will
no longer route inbound calls through the previously assigned trunk.
URL-encode the phone number (use `%2B` instead of `+`).'
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: phone_number
in: path
required: true
description: The phone number to unassign, URL-encoded (use %2B instead of +).
schema:
type: string
example: '%2B912271264217'
responses:
'204':
description: Number unassigned
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Number not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/account/{auth_id}/numbers/{e164}/health:
get:
operationId: get-number-health
summary: Get number health dashboard
description: 'Returns the health & analytics dashboard for one of your numbers: current
status, spam flag, and call metrics over the selected window (total and
answered calls, answer rate, minutes, average duration) plus a per-period
time series of snapshots.'
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: e164
in: path
required: true
description: The number in E.164, URL-encoded (use %2B instead of +).
schema:
type: string
example: '%2B919876543210'
- name: granularity
in: query
required: false
description: Snapshot granularity.
schema:
type: string
enum:
- daily
- hourly
default: daily
- name: days
in: query
required: false
description: Size of the window (in days) for the summary and snapshots.
schema:
type: integer
default: 30
example: 30
responses:
'200':
description: Number health dashboard
content:
application/json:
schema:
type: object
properties:
e164:
type: string
example: '+919876543210'
status:
type: string
example: active
usage_status:
type: string
description: Reputation/usage rating for the number.
example: unrated
is_spam:
type: boolean
example: false
granularity:
type: string
example: daily
summary:
type: object
properties:
period_days:
type: integer
example: 30
total_calls:
type: integer
example: 0
answered_calls:
type: integer
example: 0
answer_rate:
type: number
example: 0
total_minutes:
type: number
example: 0
avg_duration:
type: number
example: 0
snapshots:
type: array
items:
type: object
properties:
id:
type: string
example: bd41d44b-7217-4a78-9261-588fb1b41c25
ts:
type: string
format: date-time
example: '2026-06-04T00:00:00Z'
total_calls:
type: integer
example: 0
answered_calls:
type: integer
example: 0
failed_calls:
type: integer
example: 0
answer_rate:
type: number
example: 0
total_duration:
type: number
example: 0
avg_duration:
type: number
example: 0
total_minutes:
type: number
example: 0
'404':
description: Number not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/account/{auth_id}/numbers/{e164}/assign-subaccount:
post:
operationId: assign-did-to-subaccount
summary: Assign DID to a sub-account
description: Assign a parent-pool DID to a sub-account.
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: e164
in: path
required: true
description: The number in E.164, URL-encoded (use %2B instead of +).
schema:
type: string
example: '%2B919876543210'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- sub_account_id
properties:
sub_account_id:
type: string
example: SA_XXXXXX
responses:
'200':
description: DID assigned to the sub-account
'204':
description: DID assigned to the sub-account
'404':
description: Number or sub-account not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
operationId: unassign-did-from-subaccount
summary: Unassign DID (15-day cool-off enforced)
description: 'Move the DID back to the parent pool.
A **15-day cool-off** is enforced: if the DID had a call within the last
15 days, the request is rejected with `409` and a
`did_cool_off_in_effect` error that includes `cool_off_until` and
`cool_off_remaining_seconds`. Never-used DIDs (`last_call_at` is `NULL`)
move back immediately.
Admins can bypass the cool-off with `?force=true` (see below); the
bypass writes a `did_assignment_audit` row and requires an
admin-role account.'
tags:
- Phone Numbers
parameters:
- $ref: '#/components/parameters/AuthId'
- name: e164
in: path
required: true
description: The number in E.164, URL-encoded (use %2B instead of +).
schema:
type: string
example: '%2B919876543210'
- name: force
in: query
required: false
description: 'Admin-only cool-off bypass. Requires an admin-role account
(enforced at the gateway) and writes a `did_assignment_audit` row.
'
schema:
type: boolean
example: true
responses:
'200':
description: DID moved back to the parent pool
'204':
description: DID moved back to the parent pool
'403':
description: '`force=true` requested without an admin-role account'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Cool-off in effect — the DID had a call within the last 15 days
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: did_cool_off_in_effect
cool_off_until: '2026-06-09T10:00:00Z'
cool_off_remaining_seconds: 1209600
components:
parameters:
AuthId:
name: auth_id
in: path
required: true
description: Your account Auth ID
schema:
type: string
example: MA_XXXXXX
schemas:
Error:
type: object
properties:
api_id:
type: string
error:
type: string
message:
type: string
securitySchemes:
AuthID:
type: apiKey
in: header
name: X-Auth-ID
description: Your Vobiz account Auth ID
AuthToken:
type: apiKey
in: header
name: X-Auth-Token
description: Your Vobiz account Auth Token
externalDocs:
description: API versioning and deprecation policy
url: https://www.vobiz.ai/docs/api-reference/versioning