# Get the Delivery Certificate (PDF)

`GET https://api.parasend.com/v1/deliveries/{id}/evidence/document`

Source: https://parasend.com/docs/api/evidence/certificate

Authentication: `Authorization: Bearer <API key>` (a `ps_test_` key in test mode, `ps_live_` in live mode).

The Delivery Certificate (PDF): a readable rendering of the evidence record at `/evidence/record`, with the full event log and the QR code that leads to the record check at parasend.com/verify. When the recipient verified with an ID document check, it holds the document's photo page: handle it as sensitive personal data (it needs `evidence.read`). `sealed=false`, the default, is free and carries an *unsealed* banner: each evidence item is sealed, but the record as a whole was not sealed at your request. The first `sealed=true` request seals it (billable, once) and later ones return the same file. The address the notice went to is shown in full.

## Path parameters

- `id` (string, required): The delivery's ID, starting `dlv_`.

## Query parameters

- `sealed` (boolean, optional): true returns the sealed PDF, sealing it on the first such request (billable, once). false, the default, returns the rendering marked unsealed. Default: `false`.

## Example: Get the Delivery Certificate (PDF)

```bash
curl "https://api.parasend.com/v1/deliveries/dlv_01M6R27T05512SCV3852TPM2XY/evidence/document" \
  -H "Authorization: Bearer $PARASEND_KEY"
```

```js
const res = await fetch('https://api.parasend.com/v1/deliveries/dlv_01M6R27T05512SCV3852TPM2XY/evidence/document', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.PARASEND_KEY}`,
  },
});
const data = await res.json();
```

## Response 200

Evidence PDF (unsealed, or eSealed when sealed=true).

Content type: application/pdf.

Errors: one shape, `{"error": {type, code, message, param, request_id}}`; every code is listed at https://parasend.com/docs/errors.
