Export the evidence for one signature record
To export the evidence for one record, call Esign Comply with a key that has the read_only or full_access permission. Read the record, download the evidence report as a PDF and the evidence package as a ZIP, fetch the signed receipt, then verify the package offline with the CLI. A recording_access key cannot export.
Paste the prompt into your AI agent, or follow the steps yourself. The whole flow is in the guide for AI agents.
Last updated
Export the Esign Comply evidence for one record and verify it offline. I give you the record ID, or the signer's ID in our app. Read these first and follow them exactly: - https://esigncomply.com/agents/export-evidence.md (this task, step by step) - https://esigncomply.com/agents.md (every dashboard label and every account call) - https://esigncomply.com/setup.md (the whole setup runbook) What stays with me: I decide who receives the files. A certificate is a separate request: quote its price to me first, and send confirm_charge only after I approved it. What you do: 1. Use a key with the read_only or full_access permission. The application's recording_access key cannot export. Do not widen it: use a separate key and never print it. 2. Read the record with GET /v1/records/{id} and tell me its status. 3. Download the evidence report (GET /v1/records/{id}/report, a PDF) and the evidence package (GET /v1/records/{id}/evidence, a ZIP). 4. Fetch the signed receipt with GET /v1/records/{id}/receipt. 5. Verify the package offline with npx esigncomply verify <file>.zip and give me the result line. Report to me: the record ID, its status, the three files and the record's verify_url. Keep the files out of the repository. The rules our signing and acceptance flows follow are at https://esigncomply.com/rules.md.
19 lines. Scroll inside the panel to read it, or copy the whole prompt with the button above.
What do you need before you export evidence for one record?
- The record ID (
rec_…), or the signer's external ID to find it. - A key with the permission
read_onlyorfull_access, in the environment of the record: a test key reads test records, a live key reads live records. - For a live record, a browser session in the dashboard. The live key created at go-live has
recording_accessand cannot export, and a live key with another permission is created on the API keys page. - Node.js 20.19 or later for the offline check. The check itself needs no key, no account and no network.
How do you export evidence for one record with Esign Comply, step by step?
- 01
Use a key that can export
A
recording_accesskey reads the status and the receipt of a record and nothing more. The report and the package answer it with403 insufficient_permissionand the message "This key has recording_access permission, which does not allow records:evidence." Create a separate key for exports. In a browser:https:/, field "Name", field "Permission" set to "Read only", button "Create test key". The page answers "Key “name” created." and shows the line with the key once. For a live record, switch "Environment" in the sidebar to "Live" first: the button then reads "Create live key". Without a browser, a/esigncomply.com /dashboard /api-keys full_accesskey creates a key of its own environment with the call below, and the answer is a201with the key once, inkey. A test key cannot create a live key.Without a browsercurl -s "$ESIGNCOMPLY_API_URL/api-keys" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" -H "Content-Type: application/json" \ -d '{ "name": "Evidence export", "permission": "read_only" }' - 02
Find the record
Search by the signer's external ID. The list is newest first and each entry carries
id,status,signed_atandpurpose. Other filters areemail,document_id,version_id,created_afterandcreated_before. In a browser:https:/, narrow the table with the fields "Search", "Seal state", "Level", "Pack", "Purpose", "From" and "To", then button "Filter"./esigncomply.com /dashboard /records curl -s "$ESIGNCOMPLY_API_URL/records?signer_external_id=user_7c1d&limit=5" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
- 03
Read the record
The full record holds the signer, the documents with their hashes, the ordered ceremony events, the notice as it was captured, the conformance results and the seal.
statusisrecordedonce the receipt is signed,timestampedonce the outside timestamp is attached, andanchoredonce it is included in a signed checkpoint and a public anchor.verify_urlis the public verification page. In a browser, open the record by its ID: the page shows the timeline, what the signer saw, the conformance findings and the integrity checks.curl -s "$ESIGNCOMPLY_API_URL/records/rec_Z4m8" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
- 04
Download the evidence report
The report is a PDF generated from the sealed record, served as an attachment named
rec_Z4m8-evidence-report.pdf. It is included for every record on every plan and is never charged per download. The report of a test record is watermarked "TEST". In a browser: link "Download evidence report" on the record's page.curl -s "$ESIGNCOMPLY_API_URL/records/rec_Z4m8/report" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \ -o rec_Z4m8-evidence-report.pdf
- 05
Download the evidence package
The package is a ZIP with the canonical record, the seal, the receipt, the timestamp token, the inclusion proof, the exact stored bytes of each document, the evidence report, the public keys and verification instructions. The first call below answers with JSON:
urlis a signed download address that is valid for 10 minutes (expires_inis600), withsizeand the list offiles. The second call returns the archive itself when it is under 4 MB. In a browser: link "Evidence package" on the record's page.curl -s "$ESIGNCOMPLY_API_URL/records/rec_Z4m8/evidence" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" curl -s "$ESIGNCOMPLY_API_URL/records/rec_Z4m8/evidence?inline=true" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \ -o rec_Z4m8.zip
- 06
Fetch the signed receipt
The receipt is a compact signed token (JWS,
ES256). The answer holdsreceipt, the key ID inkid, and the decodedpayload: the record ID inrid, the domain indom, the record hash inhash, the ledger position inseq, andliveastrueorfalse. This call works with every key permission. Store the receipt next to your own acceptance row.curl -s "$ESIGNCOMPLY_API_URL/records/rec_Z4m8/receipt" \ -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY"
- 07
Verify the package offline
The command recomputes the record hash, checks the receipt against the sealing keys, the ledger entry, the timestamp and the inclusion proof, and compares each document file with the hash sealed in the record. It prints one line for each check and the line
Result: VERIFIED, orResult: VERIFIED (TEST: no attestation)for a test record. Exit codes:0verified,1not verified,2the command could not run. Add--jwks https:/to check the signatures against the published keys in place of the keys inside the package, and/esigncomply.com /.well-known /jwks.json --jsonfor a report a program reads.No key and no network needednpx esigncomply verify rec_Z4m8.zip
It worked when
the command prints Result: VERIFIED and exits with 0, and you hold the PDF report, the ZIP package and the receipt of the record.
What must a person do, and what must the agent never do?
The account belongs to a person. These limits hold in this task, as they do in every task an agent runs on Esign Comply.
The person does
- Your person approves the price of a certificate before it is issued. Send
confirm_charge: trueonly after they approved it. - Your person creates the export key themselves when they have a second factor on their account: the form on the API keys page then needs them.
The agent never does
- Never widen the application's key to make an export work. The application runs on
recording_access. Exports use a separate key. - Never print, log or commit a key.
- Never change a file of the evidence package. The offline check compares every file with the manifest.
- Never send
confirm_charge: truefor a certificate before your person approved the price.
Questions about this task: export evidence for one record
Why does my application key get a 403 on the evidence report?
Because it has the recording_access permission, the default for an application key. That permission creates sessions and reads record status and receipts for server confirmation, and nothing more. Use a read_only or full_access key for the report and the package.
What is inside the evidence package?
A ZIP archive with the canonical record, the seal, the receipt, the timestamp token, the inclusion proof, the exact stored bytes of each document, the evidence report, the public keys and verification instructions. It verifies offline.
Is exporting evidence charged or counted as usage?
No. The evidence report is included for every record on every plan and is never charged per download. Downloads are not counted as signature events.
Can I export the evidence of a test record?
Yes. A test record exports the same way, with a test key. Its report is watermarked TEST, and the verifier reports it as a test record with no attestation.
What does a passing offline verification show?
That the record is exactly what Esign Comply sealed: the same bytes, a receipt signed with Esign Comply's key, and an outside timestamp that bounds when the record existed. The command exits with 0 when it passes and with 1 when it does not.
How long does the download link of the evidence package work?
For 10 minutes. The call returns a signed URL with expires_in set to 600 seconds. Call the endpoint again for a new link, or add inline=true to receive the archive itself when it is under 4 MB.
Can the person who receives the package check it without an account?
Yes. The verifier is open source and needs no API key, no account and no network. They run npx esigncomply-verify on the ZIP, or open the record's public verification page.
Your person signs up once. You do the rest.
Free plan: 10 live signatures a month and a full test mode. No card required.