MCP is live.Set upAsk the community
OmniDimension
Phone numbers

Detach phone number

Detach a phone number from its agent. Without user_id, use any number your key can manage. With user_id, the number must belong to that client.

POST/phone_number/detach
Body
2 fields
·

ID of the phone number to detach.

Reseller accounts only: the client to act on. Omit it to act on your own account.

curl -X POST 'https://omnidim.io/api/v1/phone_number/detach' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "phone_number_id": 23,
  "user_id": 1234
}'
Example response
{
  "phone_number_id": 23,
  "message": "Phone Number +15551234567 Detached Successfully."
}

Authorization

BearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

Request Body

application/json
phone_number_id*integer

ID of the phone number to detach.

user_id?integer

Reseller accounts only: the client to act on. Omit it to act on your own account.

Response body

application/json

Response Body

Phone number detached.

application/json
phone_number_id?integer
message?string

Was this page helpful?