---
title: "List preserved packages"
method: GET
path: "/api/v1/rest/conservazione/packages"
tags: ["Legal preservation"]
---

# List preserved packages

`GET /api/v1/rest/conservazione/packages`

## Request

- Base URL: `https://api.custodo.ai`
- URL: `https://api.custodo.ai/api/v1/rest/conservazione/packages`
- Auth: HTTP bearer

The Pacchetti di Archiviazione of the organisation: status («sigillato» = sealed, waiting for the night’s proof; «conservato» = proven; «scartato» = discarded), class, digests, the night that proved them. One package per class, night and source partition: `sourcePartition` is the mailbox id (email_list_accounts) for mail and for the attachments filed from it, null otherwise; a mailbox’s packages are listed only if you can read that mailbox in the Archivio. Every version of a document is preserved in a package of its own: `document_id` (an Archivio document id, documents_search) lists every package holding a version of that document, newest first — empty for a document you cannot open.

**Examples**

- Quali pacchetti sono conservati?
  `GET /api/v1/rest/conservazione/packages`
- Show the packages still waiting for their nightly proof
  `GET /api/v1/rest/conservazione/packages?status=sigillato`
- In quali pacchetti sono conservate le versioni del contratto 0b1c…?
  `GET /api/v1/rest/conservazione/packages?document_id=0b1c2d3e-0000-4000-8000-000000000000`

## Query parameters

- `limit` integer
- `cursor` string
- `status` 'sigillato' | 'conservato' | 'scartato'
- `type_id` string, uuid
- `document_id` string, uuid
- `ledger_date` string

## Headers

- `X-Tenant-Id` string, uuid

## Response `200`

Done. `data` is the tool’s own answer.

- RestResult
  - `ok` true, required
  - `data` unknown, required

## Other responses

- `400`: The arguments did not validate: `error.message` names the field, what it expects and what arrived.
- `401`: No API key, or one that is malformed, unknown, revoked or expired.
- `403`: The call never ran: the module is off for this organisation, the credential lacks the permission or the module, the tier does not cover it, or the tool is destructive and the key was not minted for that.
- `422`: The tool ran and refused, in a sentence of its own (`TOOL_REFUSED`): the message says what to change. Retrying the same call will not help.
- `429`: The API key has spent its minute, or its day. Every request a key makes counts. See `Retry-After`.

---

[API](https://skmtc.dev/custodo/apis/custodo-integrazioni.md) · [All operations](https://skmtc.dev/custodo/apis/custodo-integrazioni/llms.txt) · [OpenAPI document](https://skmtc.dev/custodo/apis/custodo-integrazioni/revisions/16d336d3ec2a?raw)
