> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.modernfi.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.modernfi.com/_mcp/server.

# v1.6.4

Happy start of summer from the ModernFi team! See below for our latest API changes.

This release adds account **status filtering**, OAuth-authenticated **PDF statement downloads**, and a refinement to account updates. We recommend reviewing this page closely before beginning development or upgrading to a new API version.

## Updated Endpoints

* **`GET /digital-banking/v1/accounts`** (List Accounts)
  * Added `statuses` query parameter (`AccountStatus` array, optional, repeatable) — filter accounts by status, e.g. `?statuses=OPEN&statuses=SCHEDULED_FOR_CLOSURE`. If omitted, accounts of all statuses are returned.

* **`GET /digital-banking/v1/files/{file_id}`** (Get File)
  * Added `response_type` query parameter (`FileResponseType`, optional, default `presigned_url`). The default returns a JSON pre-signed download URL exactly as before. Pass `response_type=file` to stream the file back directly as raw bytes, with the `Content-Type` derived from the file (e.g. `application/pdf` or `text/csv`). This is useful for environments that cannot fetch pre-signed URLs. This powers OAuth-authenticated PDF statement downloads without a separate pre-signed-URL round trip.

* **`PATCH /digital-banking/v1/accounts/{account_id}`** (Update Account)
  * Removed `account_type` — account type can no longer be changed after creation.

## Schema Changes

* **New enums**
  * `AccountStatus` — `OPEN`, `SCHEDULED_FOR_CLOSURE`, `CLOSED`
  * `FileResponseType` — `presigned_url`, `file`