Skip to content

Create an IP access control list

POST
/v1/Accounts/{auth_id}/SipTrunk/IPAcl
curl --request POST \
--url https://api.siprtc.io/v1/Accounts/example/SipTrunk/IPAcl \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "cidr": [ "203.0.113.10" ], "customer_auth_id": "AC000000000000000001", "ip_acl_name": "Office IPs" }'

Creates an IP access control list: a named group of source IP addresses allowed to send calls to a trunk’s termination URI. The name must be unique on the account and an account can have at most 5 lists. cidr adds existing IP address records of the account to the new list by address; create the addresses first with POST /SipTrunk/IPAclIPAddrs. Vendor accounts can act for a direct child account with customer_auth_id.

auth_id
required
string

Auth ID of your account.

The list to create.

Media type application/json
object
cidr

Addresses of existing IP address records on the account to add to the new list. Addresses that have no record are ignored.

Array<string>

Example

[
"203.0.113.10"
]
customer_auth_id

Vendor accounts only: create the list for this direct child account.

string

Example

AC000000000000000001
ip_acl_name
required

Name of the list, unique among the account’s IP access control lists.

string

Example

Office IPs

The new IP access control list.

Media type application/json
object
auth_id

Auth ID of the account that owns the list.

string
created_at

When the record was created (RFC 3339).

string
created_by

Auth ID of the account that created the record.

string
ip_acl_id

IP access control list ID (UUID).

string
ip_acl_name

Name of the list.

string
ip_addresses

IP addresses in the list. Filled by GET only.

Array<object>
object
cidr

The IPv4 address.

string
id

IP address record ID.

string
ipaddrs_count

Number of IP addresses (0 in these responses; see ip_addresses).

integer
modified_by

Auth ID of the account that last changed the record.

string
status

Status of the list.

string
Allowed values: active inactive
updated_at

When the record was last changed (RFC 3339).

string

Example

{
"auth_id": "AC000000000000000000",
"created_at": "2026-01-15T10:30:00Z",
"created_by": "AC000000000000000000",
"ip_acl_id": "0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01",
"ip_acl_name": "Office IPs",
"ip_addresses": [
{
"cidr": "203.0.113.10",
"id": "5f4e3d2c-1b0a-4987-8f6e-5d4c3b2a1901"
}
],
"ipaddrs_count": 0,
"modified_by": "AC000000000000000000",
"status": "active",
"updated_at": "2026-01-16T08:00:00Z"
}

The body could not be read, ip_acl_name is missing, or the gateway did not supply your company (message “company id is empty”).

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

Missing or wrong Basic-auth credentials (returned by the API gateway).

Media type application/json
string

Example generated

example

Customer_auth_id is not a direct child account of a vendor you belong to, or its parent is not a vendor.

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}

The list was not created: the limit is reached, the name is taken, or an account lookup failed.

Media type application/json
object
message

Human-readable explanation of the outcome.

string
status

Outcome of the request: “success” or “failed”.

string
Allowed values: success failed

Example

{
"message": "Invalid auth ID",
"status": "success"
}