Restore terminated DID
restore_didRestore one of the authenticated customer's TERMINATED DIDs by id, bringing the number back into service (find terminated numbers with list_dids terminated: true). Only works while the number is still in the terminated state — roughly 35 days after termination it is released to public stock and can no longer be restored (it will not be found). Restoring a still-valid DID is free. But if the DID has already EXPIRED, restoring first RENEWS it and CHARGES the renewal price (USD, like every DIDWW amount) to the account balance — a PAID operation. This paid case is confirmation-gated — warn the user it is a paid renew before confirming. With insufficient balance the restore fails and nothing changes. On success the DID is unblocked and set to auto-renew (billing_cycles_count null); use update_did afterwards to change that. Returns the restored DID with its new expiration date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did_id | Yes | UUID of the terminated DID to restore (from list_dids with terminated: true). | |
| confirmation_token | No | Only needed when the DID has EXPIRED (restoring it is then a PAID renew). Leave empty on the first call — it returns a preview + confirmation_token and charges nothing; re-call with the token to renew and restore. |