Docs

Incoming lines subscription

https://api.apifonica.com/v2/accounts/{accountSID}/subscriptions

Overview

The list of active subscriptions on incoming lines for account is obtained by GET request to /accounts/{accountSID}/subscriptions.

REQUEST EXAMPLE

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

RESPONSE EXAMPLE

{
    "limit": 20,
    "prev": null,
    "next": "https://api.apifonica.com/v2/accounts/{accountSID}/subscriptions?next=21",
    "subscriptions": [
        {
            "subscription_sid": "{subscriptionSID}",
            "account_sid": "{account_SID}",
            "unit_count": 15,
            "subscription_type": "Incoming Lines",
            "created": "Fri, 25 May 2018 12:59:25 +0000",
            "updated": null,
            "next_fee_date": "Fri, 25 May 2018 00:00:00 +0000"
        }, ...
    ]
}