> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/account/list-customer-accounts.md).

# List Customer Accounts

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/account/list/customers>
{% endhint %}

Get a list of all of your sub accounts and types

## HTTP Post Variables Supported

<table data-header-hidden><thead><tr><th width="123.9090576171875"></th><th width="108.54547119140625"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr><tr><td>user_id</td><td>no</td><td>int, the user_id of customer</td></tr></tbody></table>

{% tabs %}
{% tab title="Curl Post" %}

```php
curl https://v1.api19.com/account/list/customers \
 -d 'key=api_token' \
 -d 'user_id=3033333'
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/account/list/customers?key=apikey&mbox=1111
```

{% endtab %}

{% tab title="JSON Response" %}

```json
{
  "status": "ok",
  "data": [
    {
      "user_id": "333222",
      "login": "test",
      "company": "test",
      "name": "test",
      "phone": "",
      "address": "",
      "city": "",
      "state": "",
      "zip": "",
      "country": "",
      "email": "test",
      "status": "active",
      "rates": "302730",
      "subdomain": "myuid.voicelogin.net",
      "billing_terms": "postpaid",
      "billing_creditline": "0",
      "sms_daily_limit": "10000",
      "sms_incoming_url": "none",
      "sms_delivery_by": "post",
      "sms_e164": "no",
      "usf_exempt": "no"
    }
  ]

```

{% endtab %}
{% endtabs %}
