---
title: "Get deleted letters and its remaining days to be permanently deleted."
method: GET
path: "/epost/v2/letters/deleted"
tags: ["ePost Digital Letterbox"]
---

# Get deleted letters and its remaining days to be permanently deleted.

`GET /epost/v2/letters/deleted`

## Request

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

## Query parameters

- `limit` integer
- `offset` integer
- `sender-participant-id` string

## Response `200`

Retrieve deleted letters successfully.

- Letter[]
  - `id` string: Id of the letter.
  - `letterTitle` string: This is the letter title.
  - `fileName` string: This is the name of the reference file of the letter.
  - `senderParticipantId` string: The participant id of the sender.
  - `senderUserId` string: The sender user id of the letter.
  - `senderCaseId` string: The sender case id of the letter.
  - `senderEndToEndId` string: The sender end to end id of the letter.
  - `documentTypes` string[]: Types of the letter's document.
  - `letterContentReference` string: This is the reference link that user can use to get to content of the letter.
  - `letterType` 'CLASSIC_LETTER' | 'SMART_LETTER' | 'SMART_LETTER_ANSWER' | 'SIMPLE_SHORT_MESSAGE' | 'INCAMAIL' | 'SECURESEND': The letter type.
  - `receivedDateTime` string: The date and time (yyyy-MM-dd'T'HH:mm:ssZ) that the letter was received.
  - `documentMessage` string: The message content of the simple short message
  - `description` string: Free-text description shown alongside the letter in eArchive. Sourced from the description supplied at upload time.
  - `readStatus` 'READ' | 'UNREAD': The read status of the document.
  - `remainingDayToDelete` integer: The remaining days before permanently delete
  - `registeredStatus` string: The current registration status
  - `eLetterRegistered` boolean: Letter is registered or not

## 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.
- `403`: The current user is not allowed to access this company data<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.
- `429`: API rate limit exceeded<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)
