Turn on incoming calls
Points the number’s voice routing in Plivo at Mirai, so people who call it reach the assigned agent. Assign an agent first. Takes a few seconds; the answer is the number with state: ready.
If the number already has voice routing in Plivo (another application), this stops rather than overwrite it: the number goes to state: error and setup_error says so. Send replace_existing_application: true to replace that routing. Numbers with SMS or MMS switched on are refused; use a voice-only number.
Every attempt, failed or not, raises version by one, so read the number again before you retry. A rented number whose term has ended can’t be turned on.
Authorizations
Your workspace secret key, sk_live_ followed by 32 hex characters. Create one in the console under Developers.
Path Parameters
The phone number's id (phn_…).
Response
Calls are on