The IP Access Control Lists API lets you create and manage IP address whitelists for authenticating outbound SIP trunks.Documentation Index
Fetch the complete documentation index at: https://plivo.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
API Endpoint
The IP Access Control List Object
An IP Access Control List (IP ACL) contains a set of whitelisted IP addresses that can send SIP traffic to your outbound trunk.Attributes
Unique identifier for the IP ACL.
Friendly name for the IP ACL.
List of whitelisted IP addresses.
Example Object
List All IP Access Control Lists
Get all IP ACLs for your account.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/
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 IP Access Control List
Get details of a specific IP ACL.HTTP Request
GET https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/{ipacl_uuid}/
Response
Example
Create an IP Access Control List
Create a new IP whitelist for SIP trunk authentication.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/
Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | - | Friendly name for the IP ACL |
ip_addresses | array | Yes | - | Array of IP addresses to whitelist |
Response
Error Codes
| Code | Description |
|---|---|
| 400 | Invalid request parameters |
| 401 | Authentication failed |
| 422 | Missing required parameters (ip_addresses) |
Example
Update an IP Access Control List
Modify an existing IP ACL’s name or IP addresses.HTTP Request
POST https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/{ipacl_uuid}/
Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | - | New friendly name |
ip_addresses | array | No | - | New list of IP addresses (replaces existing) |
Response
Updating
ip_addresses replaces the entire list. Include all IP addresses you want whitelisted.Example
Delete an IP Access Control List
Permanently delete an IP ACL.HTTP Request
DELETE https://api.plivo.com/v1/Account/{auth_id}/Zentrunk/IPAccessControlList/{ipacl_uuid}/
Response
HTTP 204 No ContentExample
Usage with Trunks
After creating an IP ACL, attach it to an outbound trunk.Example
IP ACL vs Credentials
| Method | Use Case |
|---|---|
| IP ACL | When your PBX has static IP addresses. Simpler setup, no password management. |
| Credentials | When your PBX has dynamic IPs or you need additional security. Uses SIP digest authentication. |
Related
- Trunks - Create and manage SIP trunks
- Credentials - Alternative authentication via username/password