# Download a certificate as PDF

> GET /v1/certificates/{id}/pdf downloads an issued certificate as a PDF attachment that carries the same fields as the JSON: parameters, examples and errors.

Source: https://esigncomply.com/docs/api/certificates/download-a-certificate-as-pdf

Last updated November 26, 2026

In the Esign Comply API, `GET /v1/certificates/{id}/pdf` downloads an issued certificate as a PDF attachment that carries the same fields as the JSON. Use it when you need the certificate as a document to hand over, at no charge for any download.

`GET /v1/certificates/{id}/pdf` · 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/certificates/crt_7Hd2/pdf \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -o crt_7Hd2.pdf
```

### Node SDK

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

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

const { data, error } = await esc.certificates.pdf("crt_7Hd2");
```

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

Returns `application/pdf` as an attachment named `<id>.pdf`. The PDF is in English and carries the same fields as the JSON. Test certificates carry the "TEST" watermark. Downloads are never charged.

## Parameters

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

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

## Response

`200 OK` with the file as `application/pdf`.

The example call answered `200` with 68,290 bytes of `application/pdf`.

## Errors

| Code | HTTP | When |
|---|---|---|
| [`invalid_request`](https://esigncomply.com/docs/api/errors.md#invalid_request) | 400 | The certificate is not `issued` yet, or its content was removed with its record. |
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No object with that ID exists in this domain and environment. |

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), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`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/certificates/{id}/pdf

### Which credential does GET /v1/certificates/{id}/pdf 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/certificates/{id}/pdf 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/certificates/{id}/pdf 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/certificates/{id}/pdf 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/certificates/{id}/pdf?

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/certificates/{id}/pdf?

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

## Related

- [Certificates](https://esigncomply.com/docs/api/certificates.md): the overview of the resource and all of its operations.
- [Create a certificate share link](https://esigncomply.com/docs/api/certificates/create-a-certificate-share-link.md): `POST /v1/certificates/{id}/share`
- [Revoke certificate share links](https://esigncomply.com/docs/api/certificates/revoke-certificate-share-links.md): `DELETE /v1/certificates/{id}/share`
- [Open a shared certificate](https://esigncomply.com/docs/api/certificates/open-a-shared-certificate.md): `POST /v1/certificate-shares/{id}`
- [Issue a certificate for one record](https://esigncomply.com/docs/api/certificates/issue-a-certificate-for-one-record.md): `POST /v1/records/{id}/certificates`
- [Certificates](https://esigncomply.com/docs/guides/certificates.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.
