# Download the evidence package

> GET /v1/records/{id}/evidence builds the evidence package of one record, a ZIP archive, and returns a signed download URL or, on request, the archive.

Source: https://esigncomply.com/docs/api/records/download-the-evidence-package

Last updated November 26, 2026

In the Esign Comply API, `GET /v1/records/{id}/evidence` builds the evidence package of one record, a ZIP archive, and returns a signed download URL or, on request, the archive. Use it to export everything needed to verify a record offline, or to keep your own copy.

`GET /v1/records/{id}/evidence` · API version `2026-11-21`

## Authentication

Send a secret key in the `Authorization` header: `Bearer $ESIGNCOMPLY_API_KEY`. The key needs `full_access` or `read_only` permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under [Authentication](https://esigncomply.com/docs/api.md#authentication).

## Request example

### cURL

```bash
curl https://esigncomply.com/v1/records/rec_Z4m8/evidence \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
```

### Node SDK

```ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.records.evidence("rec_Z4m8");
```

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with `...`.

## What it does

The evidence package is a ZIP archive with the canonical record, the seal, the receipt, the timestamp token, the inclusion proof, the exact stored bytes of each document, the evidence report, the public keys and verification instructions. It verifies offline with [`esigncomply-verify`](https://esigncomply.com/docs/sdk/verify.md).

By default the response is JSON with a signed download URL that is valid for 10 minutes. Packages can be larger than an API response may be.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | Yes | ID of the record. |

### Query parameters

| Parameter | Description |
|---|---|
| `inline` | `true` returns the archive itself (`Content-Type: application/zip`) when it is under 4 MB. Larger packages still return the JSON with a URL. |
| `supplements` | `false` leaves out the `customer_supplied/` folder. |

Download and verify:

```bash
curl -L "$PACKAGE_URL" -o rec_Z4m8.zip
npx esigncomply-verify rec_Z4m8.zip
```

Headers: `Esign-Comply-Version` (optional, a dated API version). See [API conventions](https://esigncomply.com/docs/api.md).

## Response

`200 OK` with an EvidencePackage object.

```json
{
  "object": "evidence_package",
  "record_id": "rec_Z4m8",
  "url": "https://storage.example/storage/v1/object/sign/exports/dom_4Kx9/test/packages/rec_Z4m8-pxkmykLXy415sNcn.zip?token=eyJhbG...&download=rec_Z4m8.zip",
  "expires_in": 600,
  "size": 72841,
  "files": [
    {
      "path": "annotations.json",
      "sha256": "sha256:4f53cda1...",
      "size": 2
    },
    {
      "path": "customer_supplied/manifest.json",
      "sha256": "sha256:4f53cda1...",
      "size": 2
    },
    {
      "path": "customer_supplied/README.txt",
      "sha256": "sha256:2805437d...",
      "size": 114
    }
  ],
  "format": "esc-evidence-package/1"
}
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `object` | string |  |
| `record_id` | string |  |
| `url` | string |  |
| `expires_in` | integer |  |
| `size` | integer |  |
| `files` | array |  |
| `format` | string |  |

## Errors

| Code | HTTP | When |
|---|---|---|
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No object with that ID exists in this domain and environment. |
| [`quota_exceeded`](https://esigncomply.com/docs/api/errors.md#quota_exceeded) | 402 | For a record locked under the earlier Starter quota rule. Records sealed now are not locked. |
| [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission) | 403 | For a `recording_access` key. |

Like every call made with a secret key, it can also return [`missing_api_key`](https://esigncomply.com/docs/api/errors.md#missing_api_key), [`invalid_api_key`](https://esigncomply.com/docs/api/errors.md#invalid_api_key), [`domain_not_verified`](https://esigncomply.com/docs/api/errors.md#domain_not_verified), [`region_mismatch`](https://esigncomply.com/docs/api/errors.md#region_mismatch), [`rate_limit_exceeded`](https://esigncomply.com/docs/api/errors.md#rate_limit_exceeded) and [`internal_error`](https://esigncomply.com/docs/api/errors.md#internal_error).

Every error has the same body: `error.type`, `error.code`, `error.message`, `error.doc_url` and `error.request_id`. See [Errors](https://esigncomply.com/docs/api/errors.md).

## Questions about GET /v1/records/{id}/evidence

### Which credential does GET /v1/records/{id}/evidence need?

A secret key with full_access or read_only permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.

### Does GET /v1/records/{id}/evidence work with a test key?

Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.

### Does GET /v1/records/{id}/evidence count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

### Is GET /v1/records/{id}/evidence idempotent?

It is a read, so it is safe to repeat. It takes no Idempotency-Key header.

### What is the rate limit for GET /v1/records/{id}/evidence?

The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

### Does the Node SDK have a method for GET /v1/records/{id}/evidence?

Yes: esc.records.evidence() in the esigncomply package. It resolves to { data, error } and does not throw.

## Related

- [Records](https://esigncomply.com/docs/api/records.md): the overview of the resource and all of its operations.
- [Retrieve the receipt of a record](https://esigncomply.com/docs/api/records/retrieve-the-receipt-of-a-record.md): `GET /v1/records/{id}/receipt`
- [Add an annotation to a record](https://esigncomply.com/docs/api/records/add-an-annotation-to-a-record.md): `POST /v1/records/{id}/annotations`
- [Submit a deferred acceptance](https://esigncomply.com/docs/api/records/submit-a-deferred-acceptance.md): `POST /v1/records/deferred`
- [List records](https://esigncomply.com/docs/api/records/list-records.md): `GET /v1/records`
- [Server confirmation](https://esigncomply.com/docs/guides/server-confirmation.md)
- [Evidence](https://esigncomply.com/docs/concepts/evidence.md)
- [Errors](https://esigncomply.com/docs/api/errors.md): every error code, with what to do.
- [API conventions](https://esigncomply.com/docs/api.md): authentication, idempotency, rate limits and versioning.
