---
title: "Get Audit Trail"
description: "Returns every recorded event on a document in time order, such as sent, viewed, signed and voided, with the person who acted. Entries form a hash chain, so each `currentHash` builds on the previous entry's hash and tampering would break the chain."
url: "https://docs.turbodocx.com/docs/API/get-audit-trail"
---

# Get Audit Trail

> Returns every recorded event on a document in time order, such as sent, viewed, signed and voided, with the person who acted. Entries form a hash chain, so each `currentHash` builds on the previous entry's hash and tampering would break the chain.

`GET https://api.turbodocx.com/turbosign/documents/{documentId}/audit-trail`

```bash
curl -X GET "https://api.turbodocx.com/turbosign/documents/{documentId}/audit-trail" \
  -H "Authorization: Bearer $TURBODOCX_API_KEY" \
  -H "x-rapiddocx-org-id: $TURBODOCX_ORG_ID"
```

  Request



### Path parameters

- `documentId` (string, required): The signature document ID.

### Responses

#### 200

The document and its audit entries.

```json
{
  "data": {
    "document": {
      "id": "4a20eca5-7944-430c-97d5-fcce4be24296",
      "name": "Service Agreement"
    },
    "auditTrail": [
      {
        "id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e",
        "documentId": "4a20eca5-7944-430c-97d5-fcce4be24296",
        "actionType": "document_sent",
        "timestamp": "2026-01-15T10:35:00.000Z",
        "previousHash": null,
        "currentHash": "a1b2c3d4e5f6...",
        "createdOn": "2026-01-15T10:35:00.000Z",
        "details": {
          "ipAddress": "203.0.113.10"
        },
        "user": {
          "name": "Jane Sender",
          "email": "sender@example.com"
        },
        "userId": "f5e6d7c8-9a0b-4c1d-8e3f-4a5b6c7d8e9f"
      },
      {
        "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
        "documentId": "4a20eca5-7944-430c-97d5-fcce4be24296",
        "actionType": "document_signed",
        "timestamp": "2026-01-16T14:02:00.000Z",
        "previousHash": "a1b2c3d4e5f6...",
        "currentHash": "b2c3d4e5f6a7...",
        "createdOn": "2026-01-16T14:02:00.000Z",
        "details": {
          "ipAddress": "198.51.100.7"
        },
        "recipient": {
          "name": "John Smith",
          "email": "john.smith@example.com"
        },
        "recipientId": "5f673f37-9912-4e72-85aa-8f3649760f6b"
      }
    ]
  }
}
```

#### 401

Missing or invalid API key, or the organization ID header is missing or is not an organization the key belongs to. The response has no body.

#### 404

The document does not exist, was deleted, or belongs to another organization.

```json
{
  "error": "Document not found"
}
```

#### 500

An unexpected server error.

```json
{
  "error": "Failed to get audit trail"
}
```
