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
Bearersession
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." }
BearerAuthheader
AuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonphone_number_id*integerID of the phone number to detach.
user_id?integerReseller accounts only: the client to act on. Omit it to act on your own account.
Response body
application/jsonPhone number detached.
application/jsonphone_number_id?integermessage?stringWas this page helpful?
