Before you begin
- Permission to run reports. Reports need a permission of their own, beyond the one an ordinary document call needs.
- A key that belongs to an account inside an organization. A report is always organization-wide, so an account that sits in no organization is refused with
403whatever else it may be allowed to do. The rows below are a colleague’s agreements, read with an administrator’s key.
Step 1: Run the report
Ask for the documents you care about, and the report comes back as an ordinary paged collection:Request
Response
createdAfter and createdBefore, a category, a metadata definition, a creator, an owner, a transaction status. Every filter you add has to match.
A report reports on documents, so a document that has never been sent anywhere is a row like any other: status: not-started, no recipients, and counts of zero.
Paging works as everywhere else, offset for a page or two and the cursor for a full walk, described in Page through collections.
Step 2: Read one transaction in detail
Every row already holds the full detail; the overview above only left most of it out. Filtering down to a single row shows what a row really carries:Request
Response
durationMs between the two, which is zero here because the owner signed their own agreement the moment it was ready. And the recipients, one entry per participation, with what each was asked to do and what they did.
isSelfSigned explains the single participation: this agreement was never sent to anybody, the owner signed it themselves, and that still counts as a completed transaction with one completed recipient.
Step 3: Find what is still outstanding
Filtering by transaction status narrows the report to the transactions that are still running:Request
Response
pendingRecipientCount counts the people the transaction is waiting for right now, and the recipients say who they are. In a sequential transaction only the current turn is pending; whoever comes later is queued and has not been told anything yet, which is why their receivedAt is still null. expiresAt is the deadline the first recipient was given, hasOpened says whether they have even looked, and lastRemindedAt when they were last nudged — enough to decide who needs a reminder.
Two more recipient statuses appear in reports of transactions that have moved further: completed for somebody who has acted, and superseded for a member of a group whose action a colleague already covered.
A transaction that ended as a whole — cancelled, rejected or expired — says so in the row’s
status, not in each recipient. The recipients keep the status their own participation reached.Complete example
Summarizing last month’s agreements, as a Node.js script. Error handling is minimal for brevity — in production, inspect the error envelope of non-2xx responses.Next steps
- Read the same activity as aggregated numbers instead of rows — Read a dashboard’s data.
- Take the documents themselves out, not just the figures — Export documents as archives.
- Follow who did what across the whole organization — Search the audit logs.