Attach phone number to agent
Attach a phone number to an existing agent. Without user_id, use any number and agent your key can manage. With user_id, the number and the agent must both belong to that client.
ID of the phone number to attach.
ID of the agent to attach the phone number to.
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/attach' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "phone_number_id": 23, "agent_id": 158910, "user_id": 1234 }'
{ "phone_number_id": 23, "message": "Phone Number +15551234567 Attach Successfully." }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonphone_number_id*integerID of the phone number to attach.
agent_id*integerID of the agent to attach the phone number to.
user_id?integerReseller accounts only: the client to act on. Omit it to act on your own account.
Response body
application/jsonPhone number attached.
application/jsonphone_number_id?integermessage?stringWas this page helpful?
Switch auto-renew on a phone number
Turn auto-renew off or back on for a number bought from the number shop. With auto-renew off, the number is not charged again: it keeps working until the end of the period already paid for and is then released. Turn it back on before that date and it renews as normal. Sending the value the number already has changes nothing and still succeeds.
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.
