List IP addresses
const url = 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/IPAclIPAddrs?status=active&page=1&limit=30';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siprtc.io/v1/Accounts/example/SipTrunk/IPAclIPAddrs?status=active&page=1&limit=30' \ --header 'Authorization: Basic <credentials>'Returns your IP address records, newest first, 30 per page by default, each with the IP access control lists it belongs to. cidr matches any part of the address and listid returns only addresses in that list. For a vendor account without customer_id the result holds the addresses of all its direct child accounts (not the vendor’s own), each with customer_info; with customer_id it holds that child’s addresses.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Auth ID of your account.
Query Parameters
Section titled “ Query Parameters ”Return addresses containing this text.
Return only addresses in this IP access control list.
Return only this status. Default (or any / all): active and inactive.
Vendor accounts only: list the addresses of this direct child account.
Page number, starting at 1.
Page size.
Responses
Section titled “ Responses ”One page of IP addresses.
object
The request URL the page links are built from.
Page number that was returned (1-based).
IP addresses on this page, newest first.
object
Auth ID of the account that owns the address.
The IPv4 address.
When the record was created (RFC 3339).
Auth ID of the account that created the record.
Owner details; filled only when a vendor lists its child accounts’ addresses.
object
Auth ID of the owning child account.
Email address on the owning account.
First name on the owning account.
Last name on the owning account.
IP address record ID (UUID).
JSON-encoded array of the IP access control list IDs it belongs to, as stored.
The IP access control lists it belongs to, resolved to ID and name.
object
IP access control list ID.
IP access control list name.
Auth ID of the account that last changed the record.
Status of the address.
When the record was last changed (RFC 3339).
Number of the last page.
Link to the next page; omitted on the last page.
Page size that was applied.
Link to the previous page; omitted on the first page.
Total number of matching records across all pages.
Example
{ "base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=1", "current_page": 1, "ipacllist": [ { "auth_id": "AC000000000000000000", "cidr": "203.0.113.10", "created_at": "2026-01-15T10:30:00Z", "created_by": "AC000000000000000000", "customer_info": { "auth_id": "AC000000000000000001", "email": "jane.doe@example.com", "firstName": "Jane", "lastName": "Doe" }, "id": "5f4e3d2c-1b0a-4987-8f6e-5d4c3b2a1901", "ip_acl_list_id": "[\"0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01\"]", "ip_acl_list_ids": [ { "id": "0b8e7f4a-3c2d-4e1f-8a9b-7c6d5e4f3a01", "name": "Office IPs" } ], "modified_by": "AC000000000000000000", "status": "active", "updated_at": "2026-01-16T08:00:00Z" } ], "last_page": 1, "next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000000/SipTrunk?page=2", "per_page": 30, "prev_url": "", "total_results": 2}The gateway did not supply your company (message “company id is empty”).
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}Missing or wrong Basic-auth credentials (returned by the API gateway).
Example generated
exampleCustomer_id is not a direct child of your account.
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}The addresses could not be read.
object
Human-readable explanation of the outcome.
Outcome of the request: “success” or “failed”.
Example
{ "message": "Invalid auth ID", "status": "success"}