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 +).
curl --request DELETE \
--url https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/{phone_number}/assign \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'{
"api_id": "<string>",
"error": "<string>",
"message": "<string>"
}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.
DELETE https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/{phone_number}/assign
X-Auth-ID - Your account Auth IDX-Auth-Token - Your account Auth TokenContent-Type: application/json%2B instead of the + symbol. For example: %2B912271264217 (not +912271264217). Failure to encode properly may result in a 404 error.DELETE HTTP method on the same URL path as the assignment endpoint. No request body is required.| Field | Type | Required | Description |
|---|---|---|---|
auth_id | string | Yes | Your unique Vobiz account identifier (e.g., MA_XXXXXXXX). Must match your X-Auth-ID header. |
PHONE_NUMBER | string | Yes | Phone number to unassign, URL-encoded. Use %2B instead of + (e.g., %2B912271264217). |
curl -X DELETE "https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/%2B1234567890/assign" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json"
204 No Content with no response body.
HTTP/1.1 204 No Content
Date: Thu, 23 Jan 2026 07:07:24 GMT
Server: Vobiz API Gateway
trunk_group_id will be absent) and by retrieving the trunk to confirm it no longer references this number.
{
"id": "aabbccdd-1234-5678-90ab-cdef12345680",
"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",
"voice_enabled": true,
"tags": [],
"purchased_at": "2026-05-01T06:58:38.796024Z",
"is_blocked": false,
"created_at": "2026-03-31T18:30:00Z",
"updated_at": "2026-05-12T07:07:24.000000Z",
"is_trial_number": false,
"last_billing_date": "2026-05-01T06:58:38.796024Z",
"next_billing_date": "2026-06-01T06:58:38.796024Z",
"minimum_commitment_months": 0,
"aadhaar_verification_required": false,
"aadhaar_verified": false,
"source": "purchased"
}
{
"trunk_id": "aabbccdd-1234-5678-90ab-cdef12345678",
"account_id": "MA_XXXXXXXX",
"name": "Acme Production Trunk",
"trunk_domain": "aabbccdd-1234-5678-90ab-cdef12345678.sip.vobiz.ai",
"trunk_status": "active",
"secure": false,
"trunk_direction": "inbound",
"concurrent_calls_limit": 10,
"cps_limit": 2,
"primary_uri_uuid": "aabbccdd-1234-5678-90ab-cdef12345681",
"description": "",
"inbound_destination": "aabbccdd-1234-5678-90ab-cdef12345681",
"transport": "udp",
"recording": true,
"enable_transcription": true,
"pii_redaction": false,
"webhook_method": "POST",
"recording_webhook_enabled": false,
"created_at": "2026-04-17T10:28:06.112095Z",
"updated_at": "2026-05-12T07:07:24.000000Z"
}
{
"error": "Number not found",
"message": "The phone number could not be found or is not assigned to any trunk."
}
{
"error": "invalid request",
"message": "The phone number format is invalid. Ensure it is URL-encoded correctly."
}
204 No Content response%2B instead of + in the phone numberYour Vobiz account Auth ID
Your Vobiz account Auth Token
Your account Auth ID
"MA_XXXXXX"
The phone number to unassign, URL-encoded (use %2B instead of +).
"%2B912271264217"
Number unassigned
Was this page helpful?
curl --request DELETE \
--url https://api.vobiz.ai/api/v1/account/{auth_id}/numbers/{phone_number}/assign \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'{
"api_id": "<string>",
"error": "<string>",
"message": "<string>"
}