Docs

Create pool

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

Create a pool of numbers with identical configuration.

Parameter
Required
Default Value
Description
name
true

Pool name, any string up to 50 characters

call_outbound_mode
false
sip_phone

Number mode for outbound calls, can be "sip_phone" or "xml"

call_inbound_mode
false
xml

Number mode for inbound calls, can be "sip_phone" or "xml"

call_app_sid
false
default_call_app_sid

Call application sid

numbers
false
[]

Pool numbers

Request example:

curl –X POST https://api.apifonica.com/v2/accounts/{accountSID}/pools \
-H 'Content-Type: application/json' \
-d '{
        "name": "My Pool",
        "call_app_sid": "{applicationSid}",
        "numbers": [
            "123456787",
            "123456788",
            "123456789"
        ]
    }' \
-u {accountSID}:{authToken}

Response example:

{
    "uri": "/v2/accounts/{accountSid}/pools/{poolSid}",
    "status_code": 201,
    "status_message": "CREATED"
}

By visiting the Apifonica website you agree with our use of cookies. Read our Cookie Policy here.