Skip to main content
The Origination URIs API lets you create and manage destination endpoints (your PBX/infrastructure) where Plivo sends inbound calls.

API Endpoint


The Origination URI Object

An origination URI represents a destination endpoint where Plivo forwards inbound calls on your SIP trunk.

Attributes

uri_uuid
string
Unique identifier for the origination URI.
name
string
Friendly name for the origination URI.
uri
string
FQDN or IP address of your VoIP infrastructure.
authentication_needed
boolean
Whether Plivo should authenticate when sending calls.
username
string
Username for authentication (if enabled).
password
string
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

api_id
string
Unique identifier for the API request.
meta
object
Pagination metadata: limit (results per page), offset (items skipped), total_count (total matching origination URIs).
objects
array
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

uri_uuid
string
Unique identifier for the origination URI.
name
string
Friendly name for the origination URI.
uri
string
FQDN or IP address of your VoIP infrastructure.
authentication_needed
boolean
Whether Plivo should authenticate when sending calls.
username
string
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

api_id
string
Unique identifier for the API request.
message
string
Status of the request. Returns Origination URI created successfully. on a successful creation.
uri_uuid
string
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

api_id
string
Unique identifier for the API request.
message
string
Status of the request. Returns origination uri updated successfully. on a successful update.
uri_uuid
string
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 Content
Deleting an origination URI that is attached to an active trunk as primary or fallback will cause inbound calls to fail.

Example

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:
  1. Create two origination URIs pointing to different servers
  2. Assign one as primary_uri_uuid and the other as fallback_uri_uuid
  3. If primary fails, Plivo automatically routes to fallback

URI Format Examples


  • Trunks - Create and manage SIP trunks
  • Calls - View SIP trunk call records