> For the complete documentation index, see [llms.txt](https://nexafin.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nexafin.gitbook.io/api/public-api/bank-accounts.md).

# Bank Accounts

<figure><img src="/files/MtaVUXoBBF1KISdinuDg" alt="Bank accounts in Nexafin"><figcaption></figcaption></figure>

### Endpoints

## Get a list of all your bank accounts

<mark style="color:blue;">`GET`</mark> `https://app.nexafin.com/v1/bank-accounts`

#### Query Parameters

| Name    | Type   | Description                                                                |
| ------- | ------ | -------------------------------------------------------------------------- |
| include | string | If you want to receive also the bank information, add `bank` as the value. |

{% tabs %}
{% tab title="200: OK List of Bank Accounts" %}

```javascript
[
    {
	"id": 1,
	"external_id": "4a2e413e-949e-3804-aa6s-0f2ca6a08bcb",
	"bank_id": 3,
	"bank_connection_id": 1,
	"name": "My Checking Account",
	"type": "checking",
	"subtype": null,
	"currency": "EUR",
	"balance": 4399311,
	"hidden": false,
	"last_transaction_created_at": "2026-03-10T12:00:00.000000Z",
	"last_balance_created_at": "2026-03-10T12:00:00.000000Z",
	"deleted_at": null,
	"created_at": "2022-09-04T16:10:06.000000Z",
	"updated_at": "2022-09-04T16:10:06.000000Z"
    },

    // ...
]
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Example request**

```bash
curl -X GET "https://app.nexafin.com/v1/bank-accounts?include=bank" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
```

{% endhint %}

## Create a new manual bank account

<mark style="color:green;">`POST`</mark> `https://app.nexafin.com/v1/bank-accounts`

You can create a new manual account to track your balance and transactions. Unlike connected accounts, manual accounts need to be updated manually.

#### Request Body

| Name                                       | Type    | Description                         |
| ------------------------------------------ | ------- | ----------------------------------- |
| name<mark style="color:red;">\*</mark>     | String  | Bank account name                   |
| currency<mark style="color:red;">\*</mark> | String  | Currency code: EUR, USD, etc.       |
| balance                                    | Integer | Initial balance in cents. Optional. |

{% tabs %}
{% tab title="201: Created Account created" %}

```javascript
{
    "id": 1
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Example request**

```bash
curl -X POST https://app.nexafin.com/v1/bank-accounts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "name": "Cash Savings",
    "currency": "USD",
    "balance": 150000
  }'
```

{% endhint %}

## Update an account

<mark style="color:orange;">`PUT`</mark> `https://app.nexafin.com/v1/bank-accounts/{id}`

#### Path Parameters

| Name | Type    | Description     |
| ---- | ------- | --------------- |
| id   | Integer | Bank account ID |

#### Request Body

| Name    | Type    | Description                                          |
| ------- | ------- | ---------------------------------------------------- |
| name    | String  | New name for bank account                            |
| hidden  | Boolean | Hide or show the account                             |
| type    | String  | Account type (e.g., `checking`, `savings`, `credit`) |
| subtype | String  | Account subtype                                      |

{% tabs %}
{% tab title="204: No Content Bank account edited" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

## Delete an account

<mark style="color:red;">`DELETE`</mark> `https://app.nexafin.com/v1/bank-accounts/{id}`

You can only delete manual accounts.

#### Path Parameters

| Name | Type    | Description     |
| ---- | ------- | --------------- |
| id   | Integer | Bank account ID |

{% tabs %}
{% tab title="204: No Content Account deleted" %}

```javascript
{
    // Response
}
```

{% endtab %}

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

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nexafin.gitbook.io/api/public-api/bank-accounts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
