Account Audit Logs
Papershift keeps an audit trail of changes made to account-level configuration (e.g. fields and field groups). Every time a field or field group is created, updated or deleted, an account audit log entry is stored with the value before and after the change.
Changes made by Papershift itself (e.g. rights added to system roles in an
account) are stored without a user. These entries have actor_id and
actor_email set to null.
Valid Attributes
Section titled “Valid Attributes”| Attribute | Description | Specifics |
|---|---|---|
| actor_id | The ID of the user who performed the change. | null when Papershift performed the change |
| actor_email | The email of the user who performed the change at that time. | Denormalized, does not change. null when Papershift performed the change |
| action_type | The type of change that occurred. | One of: created, updated, deleted, success, failure |
| resource_type | The type of the changed resource. | One of: field, field_group, role, session, account_membership, team_member, team_membership, audit_relevant_fields, audit_relevant_document_labels, account_audit_log_export |
| resource_id | The ID of the changed resource. | The resource may no longer exist |
| value | The value before and after the change. | { "before": ..., "after": ... }, with an optional name display label. name is omitted when unused. On a field rename it is the previous name. before is null on created, after is null on deleted |
| created_at | When the change was recorded. |
Relationships
| Relationship | Description |
|---|---|
| actor | The user who performed the change (if still resolvable) |
Example response:
{ "data": [ { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "account_audit_log", "attributes": { "actor_id": "c2d3e4f5-6789-0abc-def1-234567890abc", "action_type": "updated", "resource_type": "field", "resource_id": "d4e5f6a7-8901-2bcd-ef12-34567890abcd", "value": { "name": "Street", "before": { "name": "Street" }, "after": { "name": "Street and Number" } }, "created_at": "2026-01-15T10:00:00.000Z" } }, { ... } ]}This endpoint returns the audit log of the current account. Entries are not
sorted by default; use sort=-created_at to get the most recent entries first.
HTTP Request
Section titled “HTTP Request”GET /api/v1/account_audit_logs
Example response:
{ "data": { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "account_audit_log", "attributes": { "actor_id": "c2d3e4f5-6789-0abc-def1-234567890abc", "action_type": "updated", "resource_type": "field", "resource_id": "d4e5f6a7-8901-2bcd-ef12-34567890abcd", "value": { "name": "Street", "before": { "name": "Street" }, "after": { "name": "Street and Number" } }, "created_at": "2026-01-15T10:00:00.000Z" } }}This endpoint returns a single account audit log entry.
HTTP Request
Section titled “HTTP Request”GET /api/v1/account_audit_logs/:account_audit_log_id
URL Parameters
Section titled “URL Parameters”| Parameter | Description |
|---|---|
| account_audit_log_id | The ID of the account audit log to return |
Export
Section titled “Export”Example request:
POST /api/v1/account_audit_logs/export?sort=-created_at&filter[resource_type]=in:field,role
Example response (excerpt):
Content-Type: text/csv; charset=utf-8Content-Disposition: attachment; filename="account_audit_log_2026-01-15.csv"
Actor,Actor email,Resource,Resource name,Date,Action,DetailsJane Doe,[email protected],Field,Field - Street,2026-01-15T10:00:00Z,Update,"Before:name: StreetNew:name: Street and Number"This endpoint returns the audit log of the current account as a CSV file. It
accepts the same filter and sort query parameters as the list endpoint, so
the file contains exactly the entries that match the filters, without
pagination. Without sort, entries are not sorted; use sort=-created_at to
get the most recent entries first.
The CSV contains the same information as the audit log in the settings: actor name and email, resource type and name, date (ISO 8601, UTC), action and a text version of the change details. Column headers, resource types, actions and labels are translated into the language of the requesting user. The file is UTF-8 with BOM, uses a comma delimiter and CRLF line endings. Role rights in the details are written with their right keys.
The request requires the account_audit.read right, the same as the list
endpoint.
Every export creates an account audit log entry with resource_type
account_audit_log_export and action_type created. Its value contains the
filters of the request.
HTTP Request
Section titled “HTTP Request”POST /api/v1/account_audit_logs/export
Query Parameters
Section titled “Query Parameters”| Parameter | Description |
|---|---|
| filter | Filters the exported entries, e.g. filter[action_type]=in:created,deleted |
| sort | Sorts the exported entries. Use -created_at for newest first. |