Before you begin
- An organization-administrator key. A key issued to a regular member can read the audit logs as well, but only ever sees the actions that member performed. Organization-wide history needs an administrator.
Step 1: List the activity of a period
Bound the period you care about and read what happened in it, newest first:Request
Response
activityType with activityTarget say what happened and to what kind of entity, and subjectId names the entity itself — the account above, a document, a group. actor with actorType say who did it. occurredAt says when. ipAddress and userAgent say where from, as far as the request revealed it; the IP address is shown to organization administrators only.
Records appear on their own: every action writes its own, the calls your integration makes included. What you cannot do is touch them afterwards — there is no endpoint that edits or removes a record, which is what makes the log worth reading in the first place.
This is the organization-wide history. The story of a single document, told in transactions and recipients rather than raw activity, is its own audit trail — see Collect the evidence of a signed document.
Step 2: Follow the cursor to the next page
An audit log outgrows one page quickly, so walk it with the cursor:Request
Response
system and carries no actor, no requestId and no connection information, so treat all of these as optional when you consume the log.
The cursor travels alone and remembers the filters of the first page, as on every collection that issues a cursor — Page through collections covers the mechanics. Do not pause for long in the middle of a walk: an audit-log cursor expires after a period of inactivity, and a stale one is refused with 400.
Step 3: Narrow the search to one kind of action
Filters keep a search down to what you came for:Request
Response
activityType values match records of either kind. You can also filter by actor — the userId or email address of a user, or the email address of someone without a Circularo account — and turn the ordering around with order.
Step 4: Follow one document through its life
subjectId collects everything recorded about a single entity:
Request
Response
Step 5: Collect the records of one request
One call can leave several records, and they share arequestId:
Request
Response
requestId of an error envelope and what support asks for, so it ties a call in your own logs to what it did here.
Complete example
Pulling everything that happened since the last run — the shape of a nightly export into your own audit system. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.Next steps
- Prove what happened to one document, for a court or a counterparty — Collect the evidence of a signed document.
- Be told about document events instead of asking for them — React to events with webhooks.