> For the complete documentation index, see [llms.txt](https://developers.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.docstudio.com/api-documentation/api-methods/audit-trail-record/export-envelope-audit-trail-pdf-file.md).

# Export Envelope Audit Trail PDF File

### Method

| Method        | GET                             |
| ------------- | ------------------------------- |
| URL           | `/api/v1/audittrail/pdf/{uuid}` |
| Authorization | `Bearer {token}`                |
| Content-Type  | `application/json`              |

Use this endpoint when you need a downloadable PDF version of the audit trail. Export the PDF to archive the envelope history, share it outside the API, or keep a human-readable compliance record.

### Path parameters

| Parameter | Type     | Required | Description   |
| --------- | -------- | -------- | ------------- |
| `uuid`    | `string` | Yes      | Envelope UUID |

### How it works

1. Pass the envelope UUID in the request path.
2. Send a `GET` request.
3. Download the generated PDF file from the response body.

### Response format

The response body contains a PDF file, not a JSON object.

Use [Get Envelope Audit Trail](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/audit-trail-record/get-envelope-audit-trail) when you need the audit trail data in API form.

### Response status codes

| Code | Description          |
| ---- | -------------------- |
| 200  | Success              |
| 401  | Not authorized       |
| 403  | No access to mailbox |
| 404  | Envelope not found   |

### Related topics

* [Create Audit Trail Record](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/audit-trail-record/create-audit-trail-record)
* [Get Envelope Audit Trail](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/audit-trail-record/get-envelope-audit-trail)
