---
title: "Fetch a data file"
method: GET
path: "/letters/{id}/data"
tags: ["data"]
---

# Fetch a data file

`GET /letters/{id}/data`

## Overview

Use this endpoint to get letter data, including downloading the letter's print-ready PDF file.

Rate limiting applies. On excess requests, you may receive **429 Too Many Requests** (example error code(s): `NOTIFY_QUOTA`). Back off and retry later.

## Sandbox test scenarios

You can test the following scenarios in our sandbox environment.

|Scenario|Request ID|Response|
|--------|-------|--------|
|Success  | 2AL5eYSWGzCHlGmzNxuqVusPxDg | Returns 303 (See Other) and URL to an example PDF in the Location header |
|Not found |2WL5eYSWGzCHlGmzNxuqVusPxDg | Returns 404 Not found and error details in the response |

## Other responses

- `303` — See Other
- `404` — unresolved $ref
- `429` — unresolved $ref
- `500` — unresolved $ref
- `502` — unresolved $ref

---

[API](https://skmtc.dev/nhs/apis/nhs-notify-supplier-api.md) · [All operations](https://skmtc.dev/nhs/apis/nhs-notify-supplier-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nhs/nhs-notify-supplier-api/revisions/6738a29de764/schema)
