---
title: "Append an audit-trail entry to a matter"
method: POST
path: "/counsel/audit-trail"
tags: ["counsel"]
---

# Append an audit-trail entry to a matter

`POST /counsel/audit-trail`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/counsel/audit-trail`
- Auth: HTTP bearer

## Request body

- object
  - `matterId` string, required
  - `user` string, required
  - `role` string, required
  - `action` 'viewed' | 'edited' | 'exported' | 'redacted' | 'accessed-wall' | 'escalated' | 'deadline-updated' | 'privilege-changed', required
  - `detail` string, required
  - `ip` string

## Response `201`

Audit entry created

- CounselAuditEntry
  - `id` string
  - `matterId` string
  - `timestamp` string, date-time
  - `user` string
  - `role` string
  - `action` 'viewed' | 'edited' | 'exported' | 'redacted' | 'accessed-wall' | 'escalated' | 'deadline-updated' | 'privilege-changed'
  - `detail` string
  - `ip` string

## Other responses

- `404`: Not Found

## Changes

- **2026-04-18** `69dc43a7baac`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/counsel/audit-trail/post.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
