Skip to main content
GET
Work activity trail (work changes + split changes)
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

GET /audit/work//activity Returns the audit rows for a work AND for its writer links (CWRWorkWriter, i.e. split changes) in one request, newest first. Why this is not two calls to /audit/entity/...: a CWRWorkWriter audit row is keyed by its own link id, and a caller can only enumerate the link ids that currently exist on the work. A removed writer’s link is gone, so fanning out by link id would silently omit precisely the rows a split replacement produced — the record of what was taken away. This endpoint resolves link rows from the workId captured inside each audit row’s own snapshot (beforeData for UPDATE/DELETE, afterData for CREATE/UPDATE), never by joining the live table, which is what keeps removals visible. entityType is preserved per row rather than flattened, so a client can label and filter “work edited” versus “shares edited” without inspecting diff keys. Authorization:
  • Required role: admin or higher (same gate as the entity trail)
Method: GET

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

workId
string<uuid>
required

The work's id. Must be a uuid — a malformed value is rejected with 400 rather than run as a query that could only ever return an empty list, which would read as "no activity".

Query Parameters

page
integer
default:1
size
integer
default:50

Response

Paginated audit rows. Same envelope and key as /audit/entity/{entityType}/{entityId}.

AuditLogs
object[]
totalItems
integer
totalPages
integer
currentPage
integer