Skip to main content
The IP Access Control Lists API lets you create and manage IP address whitelists for authenticating outbound SIP trunks.

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

ipacl_uuid
string
Unique identifier for the IP ACL.
name
string
Friendly name for the IP ACL.
ip_addresses
array
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

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 IP access control lists).
objects
array
Array of IP access control list objects — see The IP Access Control List Object.

Example

cURL

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

ipacl_uuid
string
Unique identifier for the IP ACL.
name
string
Friendly name for the IP ACL.
ip_addresses
array
List of whitelisted IP addresses.

Example

cURL

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

Response

api_id
string
Unique identifier for the API request.
message
string
Status of the request. Returns IP access control list created successfully. on a successful creation.
ipacl_uuid
string
Unique identifier for the IP ACL.

Error Codes

Example

cURL

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

Response

api_id
string
Unique identifier for the API request.
message
string
Status of the request. Returns IP access control list updated successfully. on a successful update.
ipacl_uuid
string
Unique identifier for the IP ACL.
Updating ip_addresses replaces the entire list. Include all IP addresses you want whitelisted.

Example

cURL

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 Content
Deleting an IP ACL that is attached to an active trunk will break authentication for that trunk.

Example

cURL

Usage with Trunks

After creating an IP ACL, attach it to an outbound trunk.

Example

cURL

IP ACL vs Credentials

You can use either method (or both) for outbound trunk authentication.
  • Trunks - Create and manage SIP trunks
  • Credentials - Alternative authentication via username/password