> 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/create-audit-trail-record.md).

# Create Audit Trail Record

### Method

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

Use this endpoint to create an audit trail record for an envelope. Pass the envelope UUID in the request path.

### Path parameters

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

### How it works

1. Send a `PUT` request for the target envelope.
2. Create the audit trail record for that envelope.
3. Use the related audit trail endpoints to read or export it.

### Response status codes

| Code | Description           |
| ---- | --------------------- |
| 200  | Success               |
| 400  | Bad request           |
| 401  | Not authorized        |
| 403  | No access to mailbox  |
| 404  | Envelope not found    |
| 422  | Invalid request value |

### Related topics

* [Get Envelope Audit Trail](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/audit-trail-record/get-envelope-audit-trail)
* [Export Envelope Audit Trail PDF File](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/audit-trail-record/export-envelope-audit-trail-pdf-file)
