API Endpoint
The Origination URI Object
An origination URI represents a destination endpoint where Plivo forwards inbound calls on your SIP trunk.Attributes
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
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
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
Status of the request. Returns
Origination URI created successfully. on a successful creation.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
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