# List subAccounts

<mark style="color:purple;">`GET`</mark> `/sub-accounts`

Use this method to get all the subAccounts of your account.

#### **Path Parameters**

| Name | Type   | Description       | Required / Optional |
| ---- | ------ | ----------------- | ------------------- |
| id   | Number | ID of the account | Optional            |

#### **Headers**

| Name          | Value           |
| ------------- | --------------- |
| Authorization | `Basic <token>` |

#### **Response**

{% tabs %}
{% tab title="200 : OK subAccounts details" %}

```json
[
  {
  "id": number,
  "name": "string",
  "account": {
      "id": string,
      "name": string
    }
  }
]
```

{% endtab %}

{% tab title="401 : Unauthorized" %}

```json
Unauthorized
```

{% endtab %}
{% endtabs %}
