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.
With auto-renew off, the number is never charged again. It keeps working until the end of the period already paid for, and is released within a few hours after that. About 48 hours before, the account owner gets an email saying the number will be released, and another once it is.
Turn it back on any time before that date and the number renews as normal. Once released, the number is gone. Every new purchase starts with auto-renew on, including buying back a number you let go.
More in Buy a number over the API.
The number to switch.
false stops renewal, true turns it back on. Must be a JSON boolean: a string such as "false", a number, or a missing value is refused.
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/auto_renew' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "phone_number": "+15551234567", "auto_renew": false }'
{ "success": true, "phone_number": "+15551234567", "auto_renew": false }
BearerAuthAuthorizationBearer <token>Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
application/jsonphone_number*stringThe number to switch.
auto_renew*booleanfalse stops renewal, true turns it back on. Must be a JSON boolean: a string such as "false", a number, or a missing value is refused.
user_id?integerReseller accounts only: the client to act on. Omit it to act on your own account.
Response body
application/jsonThe switch is set.
application/jsonsuccess?booleanphone_number?stringauto_renew?booleanThe value the number now has.
Was this page helpful?
Release a phone number
Give up a phone number and stop its rental, so it is not charged at the next renewal. Only a number currently allocated to the account can be released.
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.
