> For the complete documentation index, see [llms.txt](https://docs.aquanow.io/aquanow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aquanow.io/aquanow/api-endpoints-or-v1.0/accounts-api/company-profile-configuration/accounts-settings.md).

# Accounts settings

## Gets/retrieves accounts configuration within a company profile

<mark style="color:blue;">`GET`</mark> `https://api.aquanow.io/users/v1/companyProfile/accounts`

See response example for the information expected to be retrieved.

<table><thead><tr><th>Name</th><th width="209">Type</th><th>Description</th></tr></thead><tbody><tr><td>accountId</td><td>String</td><td>Fetches the account provided. If no accountId provided, fetches all accountIds within a company profile</td></tr></tbody></table>

#### Headers

| Name                                          | Type   | Description                                                                                                                                                        |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| x-api-key<mark style="color:red;">\*</mark>   | String | <p><code>{{x-api-key}}</code></p><p>API Auth Key</p>                                                                                                               |
| x-signature<mark style="color:red;">\*</mark> | String | <p><code>49c6260c194f4d7ed5cb917dc70b9821673246b2abc1cf28f05df6a75fd24181e00f8e57b321d15ae45db58b3bffe27a</code></p><p>Signature created using your API secret</p> |
| x-nonce<mark style="color:red;">\*</mark>     | Number | <p><code>1657731573930</code></p><p>Timestamp in millisecond</p>                                                                                                   |

{% tabs %}
{% tab title="200: OK Get company profile accounts" %}
Returns an array of  [CompanyProfileAccountsObject](/aquanow/data-objects-and-statuses/accounts-objects.md#companyprofileaccountsobject)&#x20;

```json
{
  "data": {
    "accounts": [
      {
        "accountName": "accountName",
        "accountType": "credit",
        "allowBalanceTransfers": true,
        "accountId": "accountId",
        "creditLimitUsd": 1000,
        "enableCryptoSourceAddressWhitelist": false,
        "postTradeSettlements": {}
      },
      {
        "accountName": "accountName2",
        "accountType": "credit",
        "allowBalanceTransfers": true,
        "accountId": "accountId2",
        "creditLimitUsd": 10000,
        "enableCryptoSourceAddressWhitelist": false,
        "postTradeSettlements": {}
      }
    ]
  }
}
```

{% endtab %}

{% tab title="200: OK Get company profile accounts with accountId" %}

Returns an array of  [CompanyProfileAccountsObject](/aquanow/data-objects-and-statuses/accounts-objects.md#companyprofileaccountsobject)&#x20;

```json
{
  "data": {
    "accounts": [
      {
        "accountName": "accountName",
        "accountType": "credit",
        "allowBalanceTransfers": true,
        "accountId": "accountId",
        "creditLimitUsd": 1000,
        "enableCryptoSourceAddressWhitelist": false,
        "postTradeSettlements": {}
      }
    ]
  }
}
```

{% endtab %}

{% tab title="500:  Could not find any accounts under user" %}

```json
{
    "message": "Could not find any accounts under user: company_user"
}
```

{% endtab %}
{% endtabs %}
