List the audit history of a contact.
GET/api/v1/contacts/{contact_id}/audit-historyaudits:read
Changes to one contact (a person of an organisation), newest first: what the Contact details dialog's Audit button shows. Needs View Entity Audit History and View Contacts (View Organisations for an organisation's own row). The order is fixed. 422 unsupported_for_tenant when the company database records no audit trail.
| Scope | audits:read |
| Asynchronous | No |
| MCP tool | list_contact_audit_history |
| Portal permissions | view_entity_audit_history |
| Paging | keyset |
| Default order | -occurred_at, -stream_position |
| Sort fields | occurred_at, stream_position |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
contact_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, unsupported_for_tenant, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
items | array of AuditEntry | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
AuditChange
| Field | Type | Required | Description |
|---|---|---|---|
field | string | Required | |
label | string | Required | |
new | string or null | Required | |
old | string or null | Required |
AuditEntry
| Field | Type | Required | Description |
|---|---|---|---|
actor | UserRef | Required | |
audit_entry_id | string | Required | The audit row's own key. |
changes | array of AuditChange | Required | |
name | string or null | Required | |
occurred_at | string (date-time) | Required | |
operation | string | Required | insert, update or delete. |
row | object | Required | The stored row of a register change, keyed by the register's field names; null otherwise. |
source | string | Required | The record the change was made to (Document, Folder Assignment, …). |
stream_position | string | Required | The 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_number | string or null | Required | The database transaction that made the change, when recorded. |
UserRef
| Field | Type | Required | Description |
|---|---|---|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required |