---
title: "Get document audit trail"
method: GET
path: "/documents/document-audit-trail"
tags: ["Document AI — DMS"]
---

# Get document audit trail

`GET /documents/document-audit-trail`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/documents/document-audit-trail`
- Auth: HTTP bearer

Get compliance audit trail — who changed what, when. Filter by document (pofid or documents_id), user, action. For compliance audits (GoBD, GDPR/DSGVO).

## Query parameters

- `pofid` string
- `documents_id` union
  - string
  - number
- `user_id` union
  - string
  - number
- `action` string
- `limit` number
- `offset` number

## Response `200`

Success

- object
  - `_billing` object
    - `credits` object
      - `total_monthly` integer
      - `remaining_monthly` integer
      - `credit_source` string
      - `api_handler` string
      - `tier_info` object
        - `tier` string
        - `name` string
        - `initial_credits` integer
        - `price_monthly` integer
        - `price_overage_per_credit` integer
      - `notice` string
      - `renewal_days` integer
      - `subscription_status` string
    - `job` object
      - `api_job_name` string
      - `app` string
      - `action` string
      - `default_credits` integer
      - `token` string
      - `credits_billed` integer
      - `pricing` object
        - `credits_per_unit` integer
        - `unit` string
        - `unit_count` integer
        - `addons` string
    - `requests` object
      - `limits` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `current` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `remaining` object
        - `second` integer
        - `minute` integer
        - `hour` integer
        - `day` integer
      - `next_possible_request_seconds` integer
    - `remaining_credits` integer
    - `total_monthly` integer
    - `account_id` integer
    - `plan` object
      - `tier` string
      - `name` string
    - `credits_billed` integer
  - `available_actions` unknown[]
    - unknown
  - `has_more` boolean
  - `limit` integer
  - `offset` integer
  - `processing_time` string
  - `revisions` object[]
    - `revision_id` integer
    - `documents_id` integer
    - `pofid` string
    - `file_name` string
    - `workspace_id` integer
    - `action` string
    - `field_key` string
    - `field_label` string
    - `old_value` string
    - `new_value` string
    - `changed_by` object
      - `account_id` integer
      - `user_id` integer
      - `username` string
      - `display_name` string
      - `avatar` string
    - `ip_address` string
    - `changed_at` string
  - `status` string
  - `total` integer

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
