---
title: "Get all letters for a user"
method: GET
path: "/letters/{userId}"
tags: ["Letters"]
---

# Get all letters for a user

`GET /letters/{userId}`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/letters/{userId}`
- Auth: HTTP bearer

Returns all letters belonging to the specified user across all cases.

## Response `200`

List of letters for the user.

- LetterResource[]
  - `userId` string, uuid, required: Unique identifier of the user who owns the letter.
  - `caseReferenceNumber` string, required: Reference number of the case to which the letter belongs.
  - `letterId` string, uuid, required: Unique identifier of the letter.
  - `letterType` string, required: Code that identifies which letter template was used.
  - `letterData` LetterData, required: Dynamic key-value pairs used to populate the letter template. Required fields will vary depending on letterType.

## Other responses

- `401`: Access token is missing or invalid
- `403`: The JWT doesn't permit access to this endpoint
- `404`: The specified resource was not found
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/ministryofjustice/apis/letter-service-api.md) - [All operations](https://skmtc.dev/ministryofjustice/apis/letter-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ministryofjustice/apis/letter-service-api/revisions/d6cf10a339b3?raw)
