import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.endpoints.list()
print(response)
{
  "api_id": "30a0c8c2-110c-11e4-bd8a-12313f016a39",
  "meta": {
    "limit": 20,
    "next": null,
    "offset": 0,
    "previous": null,
    "total_count": 11
  },
  "objects": [{
      "alias": "callme",
      "application": "/v1/Account/MA2025RK4E639VJFZAGV/Application/33406267401237901/",
      "endpoint_id": "32866729519064",
      "resource_uri": "/v1/Account/MA2025RK4E639VJFZAGV/Endpoint/32866729519064/",
      "sip_contact": "sip:callme140703093224@122.172.71.207:57563;ob",
      "sip_expires": "2022-07-21 19:26:08",
      "sip_registered": "true",
      "sip_uri": "sip:callme140703093944@phone.plivo.com",
      "sip_user_agent": "Telephone 1.1.4",
      "sub_account": null,
      "username": "callme140703093944"
    },
    {
      "alias": "polycom",
      "application": "/v1/Account/MA2025RK4E639VJFZAGV/Application/37961981447734951/",
      "endpoint_id": "17551316589618",
      "resource_uri": "/v1/Account/MA2025RK4E639VJFZAGV/Endpoint/17551316589618/",
      "sip_registered": "false",
      "sip_uri": "sip:polycom140506175228@phone.plivo.com",
      "sub_account": null,
      "username": "polycom140506175448"
    }
  ]
}

Retrieves the details of all endpoints.

API Endpoint
GET
https://api.plivo.com/v1/Account/{auth_id}/Endpoint/

Arguments

No arguments need to be passed.

Returns

A dictionary with an objects property that contains an array of subaccount objects.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.endpoints.list()
print(response)
{
  "api_id": "30a0c8c2-110c-11e4-bd8a-12313f016a39",
  "meta": {
    "limit": 20,
    "next": null,
    "offset": 0,
    "previous": null,
    "total_count": 11
  },
  "objects": [{
      "alias": "callme",
      "application": "/v1/Account/MA2025RK4E639VJFZAGV/Application/33406267401237901/",
      "endpoint_id": "32866729519064",
      "resource_uri": "/v1/Account/MA2025RK4E639VJFZAGV/Endpoint/32866729519064/",
      "sip_contact": "sip:callme140703093224@122.172.71.207:57563;ob",
      "sip_expires": "2022-07-21 19:26:08",
      "sip_registered": "true",
      "sip_uri": "sip:callme140703093944@phone.plivo.com",
      "sip_user_agent": "Telephone 1.1.4",
      "sub_account": null,
      "username": "callme140703093944"
    },
    {
      "alias": "polycom",
      "application": "/v1/Account/MA2025RK4E639VJFZAGV/Application/37961981447734951/",
      "endpoint_id": "17551316589618",
      "resource_uri": "/v1/Account/MA2025RK4E639VJFZAGV/Endpoint/17551316589618/",
      "sip_registered": "false",
      "sip_uri": "sip:polycom140506175228@phone.plivo.com",
      "sub_account": null,
      "username": "polycom140506175448"
    }
  ]
}