List All Phone Numbers on Your Account

/list

Full Url

https://apiv1.teleapi.net/user/dids/list

Arguments:

  • token (string, required)
  • number_type (local, tollfree, fax, offnet or international, optional)

Info: Get a list of the phone numbers that you own. This includes those that are owned by your resellers and customers

Example Success

{
    "code": 200,
    "status": "success",
    "data": [
        {
            "id": 42,
            "user_id": 22,
            "user_name": "bobby",
            "user_type": "reseller",
            "country_code": 1,
            "npa": 555,
            "nxx": 555,
            "xxxx": 5555,
            "number": 5555555555,
            "ratecenter": "BLARG",
            "state": "CO",
            "number_type": "fax",
            "call_flow_id": null,
            "channel_group_id": null,
            "voicemail_inbox_id": null,
            "sms_enabled": 0
        },
        {
            "id": 66,
            "user_id": 21,
            "user_name": "robert",
            "user_type": "master",
            "country_code": 1,
            "npa": 555,
            "nxx": 555,
            "xxxx": 5554,
            "number": 5555555555,
            "ratecenter": "BLARG",
            "state": "CO",
            "number_type": "local",
            "call_flow_id": 234,
            "channel_group_id": null,
            "voicemail_inbox_id": 654,
            "sms_enabled": 1
        }
    ]
}

Example Error

{
    "code": 400,
    "status": "error",
    "data": "Missing variable: token"
}

results matching ""

    No results matching ""