# statements.download

Get a short-lived private link to a statement file by id. format original (the default): the unchanged original, an uploaded or Wise statement PDF or photo (pass inline: true to open it in the browser) or a CSV or Wise sync export. format pdf: a PDF of it, the original when it is one, otherwise a PDF Oatmilk renders from Wise's statement data, the CSV's lines or the photo, labelled as prepared by Oatmilk and kept for later downloads. Only statement files can be opened this way. Read-only.

`GET | POST /api/v1/accounting/statements.download`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_statements_download`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string (ID) | Yes | The record's ID. |
| `inline` | boolean |  |  |
| `format` | enum |  | One of: `original`, `pdf`. Default `"original"`. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/statements.download \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d'
```

Reference page: https://app.getoatmilk.com/docs/api/statements.download
