Creates a new origination URI.
POST
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/
namestring |
Friendly name for the origination URI. |
uristring |
FQDN or IP address of the VoIP infrastructure. |
authentication_neededboolean |
Indicates whether authentication is required to access the VoIP infrastructure. |
usernamestring |
Username to authenticate inbound traffic. Required if authentication_needed is set to true. |
passwordstring |
Password to authenticate inbound traffic. Required if authentication_needed is set to true. |
If successful, returns “Origination URI created successfully.” in the message field along with a uri_uuid.
{
"api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
"message": "Origination URI created successfully.",
"uri_uuid": "f19c4773-4ae6-4b75-92ea-9cf3ea4227d6"
}
1
2
3
4
curl -i --user AUTH_ID:AUTH_TOKEN \
-H "Content-Type: application/json" \
-d '{"name": "testuri", "uri": "test@plivo.com", "authentication_needed": true, "username": "testuser", "password": "testpass12324!"}' \
https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/