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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
limit | integer | No | 20 | Results per page (1-20) |
offset | integer | No | 0 | Pagination offset |
Response
Example
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
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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | - | Friendly name for the URI |
uri | string | Yes | - | FQDN or IP address of your VoIP infrastructure |
authentication_needed | boolean | No | false | Require authentication |
username | string | Conditional | - | Username for auth. Required if authentication_needed=true |
password | string | Conditional | - | Password for auth. Required if authentication_needed=true |
Response
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid request parameters |
| 401 | Authentication failed |
| 422 | Missing required parameters (uri, or username/password when auth enabled) |
Without Authentication
With Authentication
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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | - | New friendly name |
uri | string | No | - | New FQDN or IP address |
authentication_needed | boolean | No | - | Enable/disable authentication |
username | string | No | - | New username (if auth enabled) |
password | string | No | - | New password (if auth enabled) |
Response
Example
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
Usage with Inbound Trunks
After creating origination URIs, attach them to an inbound trunk.Example
Primary vs Fallback URIs
| Type | Purpose |
|---|---|
| Primary URI | Default destination for inbound calls |
| Fallback URI | Used when primary is unreachable or returns error |
- 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
URI Format Examples
| Format | Example |
|---|---|
| IP address | 192.168.1.100 |
| IP with port | 192.168.1.100:5060 |
| FQDN | sip.example.com |
| FQDN with port | sip.example.com:5060 |
| SIP URI | sip:[email protected] |