API Endpoint
The Origination URI Object
An origination URI represents a destination endpoint where Plivo forwards inbound calls on your SIP trunk.Attributes
Unique identifier for the origination URI.
Friendly name for the origination URI.
FQDN or IP address of your VoIP infrastructure.
Whether Plivo should authenticate when sending calls.
Username for authentication (if enabled).
Password for authentication (only set on create/update, never returned in responses).
Example Object
List All Origination URIs
Get all origination URIs for your account.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/
Query Parameters
Response
Unique identifier for the API request.
Pagination metadata:
limit (results per page), offset (items skipped), total_count (total matching origination URIs).Array of origination URI objects — see The Origination URI Object.
Example
cURL
Retrieve an Origination URI
Get details of a specific origination URI.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/{uri_uuid}/
Response
Unique identifier for the origination URI.
Friendly name for the origination URI.
FQDN or IP address of your VoIP infrastructure.
Whether Plivo should authenticate when sending calls.
Username for authentication (if enabled).
Example
cURL
Create an Origination URI
Create a new destination endpoint for inbound calls.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/
Request Parameters
Response
Unique identifier for the API request.
Status of the request. Returns
Origination URI created successfully. on a successful creation.Unique identifier for the origination URI.
Error Codes
Without Authentication
cURL
With Authentication
cURL
Update an Origination URI
Modify an existing origination URI’s properties.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/{uri_uuid}/
Request Parameters
Response
Unique identifier for the API request.
Status of the request. Returns
origination uri updated successfully. on a successful update.Unique identifier for the origination URI.
Example
cURL
Delete an Origination URI
Permanently delete an origination URI.HTTP Request
DELETE https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/URI/{uri_uuid}/
Response
HTTP 204 No ContentExample
cURL
Usage with Inbound Trunks
After creating origination URIs, attach them to an inbound trunk.Example
cURL
Primary vs Fallback URIs
Configure both for high availability:
- Create two origination URIs pointing to different servers
- Assign one as
primary_uri_uuidand the other asfallback_uri_uuid - If primary fails, Plivo automatically routes to fallback