Audit log
See who changed what, when and from which channel, filter and export the trail, and read the data before and after each change.
The audit log records every change made in your organisation: the time, the user, the channel it came through, the action, the record it touched and the reason the user gave when the action asked for one. Use it to answer "who changed this invoice?" or to show an auditor the history of a record.
Steps
- Go to Compliance and open the Audit Trail tab.
- Read the columns of a row: Timestamp, Actor, Channel, Action, Entity (the record it touched) and Reason. A reason is recorded for a period unlock, a reversal, an undo, a write-off and a declined approval.
- Narrow the list with the filters: the search box, the From and To dates, Channel, Who, Action and Entity type.
- Click a row to expand it. The expanded row shows the data before and after the change.
- Click Export CSV to download the rows of the current filter.
| Channel | Meaning |
|---|---|
| App | A signed-in user working in Alya Books |
| API | A REST call made with an API key |
| MCP | An AI assistant working through the MCP server |
| System | Scheduled jobs, database triggers and inbound documents |
Who did it: the actor column
Beside the channel, the Actor column names who acted, with a kind badge:
| Actor kind | Shown as | Example |
|---|---|---|
| Person | The member's name | Fatima Al Mansoori |
| API key | The key's name | CargoWise key |
| Assistant | The connected app, for the member who approved it | Claude (for Fatima Al Mansoori) |
| Agent | The agent's name, for the member it ran as, with a link to the run | Accruals proposer (for Fatima Al Mansoori) |
| System | System | A scheduled job or a trigger |
Filter the list with Who (Person, API key, Assistant, Agent or System) to see only what assistants or API keys did. The CSV export carries the actor, its kind, the batch id and the link of the record. Rows written before this column existed fall back to the channel: an MCP row reads Assistant, an API row reads the key's name.
Refused writes
A write that was refused before anything changed is a row too: action refused, the tool or route, the refusal code and the sentence on what to do next, attributed to the connection that asked (an assistant for a member, an API key, a person). Use it to answer "why did the assistant say it could not post that?".
Agent rows. Every change an agent makes carries the actor kind Agent, the agent (agent_id), its run (run_id) and the member it ran as; the Batches tab lists the run's batches and the run itself (Agents → Runs) shows every step. A guardrail or a policy that stopped the agent is a refused row with the blocked reason: agent_guardrail (an agent tried to create or run an agent), send_not_granted (a sending tool without the grant), policy_blocked (a tool outside its list), and the proposals a policy left for review are approval requests with the source Agent. Agents also appear as event sources: agents.run_started, agents.run_finished, agents.run_stopped (loop or budget), agents.kill_switch, agents.created, agents.disabled, agents.policy_saved. See Agents, playbooks and guardrails.
Batches and undo
The Batches tab lists every write that ran through the API, an assistant, an agent, a rule or an import as one batch: the actor, the tool, the number of records touched and the status (Applied, Undone, Partially undone). Open a batch for its items with the values before and after, and click Undo with a reason to revert the whole batch in one call. Rows of the Activity list that belong to a batch carry a Batch chip that opens it. The full flow, including the preview an assistant sees before a write and the REST headers, is in Preview, confirm and undo.
Find who changed an invoice
- On Audit Trail, set Entity type to Invoice and type the invoice number in the search box.
- If the list is long, set From and To around the time you noticed the change.
- The Actor and Channel columns of the matching rows tell you who made the change and whether it came from the app, an API key, an AI assistant or the system.
- Expand the row to see which fields changed and their old and new values.
Every change, row by row
Every record of your organisation that is added, changed or deleted writes a row of its own: the action reads Row added, Row changed or Row deleted, the entity is the table (contacts, invoices, invoice_lines, ledger_entries…) and the before and after show the values; a change shows the changed columns only. The actions of the app's functions keep their own rows beside these, with the reason, so an invoice that was posted shows both the posting and the row changes it caused. Columns that hold keys, tokens or passwords never appear, and the logs the product keeps elsewhere (request, delivery and usage logs, assistant conversations, credential stores) are not mirrored.
Good to know
- Rows are never edited or deleted. Database triggers refuse updates, and only the platform removes rows, when an organisation is deleted.
- The log is kept in the app for the life of the organisation.
- Every row with a record carries a link to it (the Open the record icon); assistants get the same path as
deepLinkand cite it in their answers. - API:
GET /audit-logtakes the same filters plusbatchIdandactorKind, and?format=csvreturns the CSV file. AI assistants use thelist_audit_events,list_change_batches,get_change_batchandundo_change_batchtools.