Trunks
Unassign Number from Trunk
Remove a phone number’s trunk assignment on Vobiz - the DID returns to your account inventory and inbound routing via the trunk stops immediately.
DELETE
Unassign Number from Trunk
Authentication required:
X-Auth-ID- Your account Auth IDX-Auth-Token- Your account Auth TokenContent-Type: application/json
Note: This endpoint uses the
DELETE HTTP method on the same URL path as the assignment endpoint. No request body is required.URL Parameters
| 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). |
No Request Body Required: The DELETE method does not require a request body. The phone number specified in the URL will be unassigned from its currently associated trunk.
Examples
Response
On successful unassignment, the API returns204 No Content with no response body.
Success Response - 204 No Content
Verifying the Unassignment
After unassignment, you can confirm the change by listing numbers (thetrunk_group_id will be absent) and by retrieving the trunk to confirm it no longer references this number.
Number after unassign (from list-numbers)
Trunk after unassign (from retrieve-trunk)
Error Responses
Error Response - 404 Not Found (Invalid Phone Number)
Error Response - 400 Bad Request (Invalid Format)
Next Steps:
- Reassign to a different trunk using the Assign Number endpoint
- Or, release the number entirely using the Unrent Number endpoint
- Verify the unassignment by listing your trunk details
- Update your application logic to handle the routing change
Authorizations
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Path Parameters
Your account Auth ID
Example:
"MA_XXXXXX"
The phone number to unassign, URL-encoded (use %2B instead of +).
Example:
"%2B912271264217"
Response
Number unassigned