Skip to main content

List the audit history of a document.

GET/api/v1/documents/{document_id}/audit-historyaudits:read

Changes to the document and its folder, location and recipient assignments, newest first. Needs View Entity Audit History and a document the caller can read. The order is fixed.

Scopeaudits:read
AsynchronousNo
MCP toollist_document_audit_history
Portal permissionsview_entity_audit_history
Pagingkeyset
Default order-occurred_at, -stream_position
Sort fieldsoccurred_at, stream_position

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, unsupported_for_tenant, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of AuditEntryRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

AuditChange​

FieldTypeRequiredDescription
fieldstringRequired
labelstringRequired
newstring or nullRequired
oldstring or nullRequired

AuditEntry​

FieldTypeRequiredDescription
actorUserRefRequired
audit_entry_idstringRequiredThe audit row's own key.
changesarray of AuditChangeRequired
namestring or nullRequired
occurred_atstring (date-time)Required
operationstringRequiredinsert, update or delete.
rowobjectRequiredThe stored row of a register change, keyed by the register's field names; null otherwise.
sourcestringRequiredThe record the change was made to (Document, Folder Assignment, …).
stream_positionstringRequiredThe entry's place in the history, an opaque text that sorts as the list does: the tie-break for entries at the same occurred_at, and the list's unique sort key.
transaction_numberstring or nullRequiredThe database transaction that made the change, when recorded.

UserRef​

FieldTypeRequiredDescription
display_namestringRequired
kindstring: user, system, integration or stringRequired
user_idstring or nullRequired