---
title: "Archive a letter from Letterbox to the root or to a specific folder in Storage."
method: PATCH
path: "/epost/v2/letters/{letter-id}/archive"
tags: ["ePost Digital Letterbox"]
---

# Archive a letter from Letterbox to the root or to a specific folder in Storage.

`PATCH /epost/v2/letters/{letter-id}/archive`

## Request

- Base URL: `https://api.klara.ch`
- URL: `https://api.klara.ch/epost/v2/letters/{letter-id}/archive`
- Auth: one of:
  - API key in header `X-API-KEY`
  - HTTP bearer

If the letter is already archived and in the Storage, the exception will be thrown.

## Path parameters

- `letter-id` string, required

## Query parameters

- `destination-directory-id` string

## Response `204`

Store letter successfully.

## Other responses

- `401`: No Authorization header found or invalid token<br/><br/>Failures detected by a downstream service carry that service's own <code>code</code>, which this reference does not enumerate, so the <code>code</code> field may hold a value not documented here. Treat an unrecognised code as a generic failure of the status it arrives with, and do not branch on a code this reference does not list.
- `404`: Resource not found<br/><br/>Failures detected by a downstream service carry that service's own <code>code</code>, which this reference does not enumerate, so the <code>code</code> field may hold a value not documented here. Treat an unrecognised code as a generic failure of the status it arrives with, and do not branch on a code this reference does not list.
- `500`: Something went wrong on our side while processing the request. Please kindly contact our support.<br/><br/>Failures detected by a downstream service carry that service's own <code>code</code>, which this reference does not enumerate, so the <code>code</code> field may hold a value not documented here. Treat an unrecognised code as a generic failure of the status it arrives with, and do not branch on a code this reference does not list.

---

[API](https://skmtc.dev/klara/apis/klara-public-api.md) · [All operations](https://skmtc.dev/klara/apis/klara-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/klara/apis/klara-public-api/revisions/490b1a879fc2?raw)
