---
title: "Get structured document data"
method: GET
path: "/documents/{id}/data"
tags: ["Documents"]
---

# Get structured document data

`GET /documents/{id}/data`

## Request

- Base URL: `https://api.bankstatemently.com/v1`
- URL: `https://api.bankstatemently.com/v1/documents/{id}/data`
- Auth: API key in header `X-API-Key`

Retrieve structured document data including accounts and transactions. Only available when document status is `completed`. Transactions are paginated. Rate limit: 60 requests per minute.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `raw` boolean
- `limit` integer
- `offset` integer

## Response `200`

Structured document data. Primary shape: document.statements[].products[].accounts[].transactions[]. Legacy flat accounts[] and transactions[] retained for backward compatibility.

## Other responses

- `401`: Authentication failed, API key revoked, or API key expired.
- `404`: Document not found.
- `409`: Document processing not yet completed.
- `429`: Too many requests. Wait the number of seconds indicated by the `Retry-After` header.
- `500`: An unexpected server error occurred.

---

[API](https://skmtc.dev/bankstatemently/apis/bankstatemently-api.md) · [All operations](https://skmtc.dev/bankstatemently/apis/bankstatemently-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bankstatemently/apis/bankstatemently-api/revisions/4c3b7fb26edf?raw)
