Docs

List pools

https://api.apifonica.com/v2/accounts/{accountSid}/pools

List all created pools.

Filtering parameters:

Parameter
Description
name
Pool name, partial match (e.g. "pool" will match "my-test-pool" and "Pool123")
limit
Number of returned entries per page. Both default and maximum values are 20
prev
URI to the previous part of the list
next
URI to the next part of the list

Request example:

curl –X GET https://api.apifonica.com/v2/accounts/{accountSID}/pools \
-u {accountSID}:{authToken}

Response example:

{
    "limit": 20,
    "prev": null,
    "next": null,
    "pools": [
        {
            "sid": "{poolSid}",
            "account_sid": "{accountSid}",
            "name": "My Pool",
            "mode": "xml",
            "call_inbound_mode": "xml",
            "call_outbound_mode": "sip_phone",
            "call_app_sid": "{applicationSid}",
            "controller": "http://mydomain.com/myapp.php",
            "method": "POST",
            "events": "all",
            "numbers": [
                "123456787",
                "123456788",
                "123456789"
            ],
            "created": "Thu, 04 Jun 2020 11:42:04 +0000",
            "updated": "Thu, 04 Jun 2020 11:42:04 +0000"
        },
        .
        .
    ]
}

Odwiedzając naszą stronę, zgadzasz się na to, abyśmy wykorzystywali pliki cookies. Zachęcamy do przeczytania naszej Polityki cookies, która znajduje się tutaj.