Audit archives in the API
This page is for developers and for anyone who checks an audit archive by technical means. It describes what an audit archive holds, how it is sealed and what the Public API returns about the applicant's data confirmation. For using audit archives in the dashboard, see Audit archive step and Audit archives.
Files and seals
An audit archive is a ZIP file built and sealed on the server. The files are listed in What is inside. Technically:
- Every PDF made for the archive carries a PAdES seal with a trusted timestamp. Its footer has the archive ID, the applicant ID, the page, the time of generation and, in a live archive,
Verify:with the link to the verification page. certificate-of-completion.pdfhas a summary of the archive and the hash of every file. In an archive made by the flow it shows the signature: the signature ID, when it was signed, the typed name, the number of documents signed and the signature SHA-256.Form data SHA-256isnonefor new signatures (see Older signatures).signature/holds the signed copies and the signature certificate exactly as they were sealed when the applicant signed. Each keeps its own seal and its own footer (signature ID, applicant ID). See E-signature in the API.media/holds the original files, unchanged.manifest.jsonlists all files with their hashes (see Manifest).manifest.json.p7sis the seal of the manifest.
If the archive was sealed with a certificate that was later revoked, the verification page warns "The seal of this archive is not trusted". The archive may still match, but its seal is not evidence any more.
All hashes are SHA-256, lowercase hex.
Manifest
manifest.json is the list of all files of the archive with their SHA-256 hashes.
- A file that belongs to the archive but could not be included is listed with the reason.
verifyUrlis the link to the public verification page of this archive.dataConfirmationsummarises the applicant's data confirmation (see below).
The manifest is sealed by manifest.json.p7s.
dataConfirmation
dataConfirmation is the applicant's data confirmation, or null when the verification has none (always in a manually created audit archive):
"dataConfirmation": {
"path": "data-confirmation.pdf",
"confirmationId": "3c1f9a52-7d0e-4b8a-9f3e-0c6a2d4b7e15",
"transactionId": "<verification run ID>",
"recordedInEarlierRun": false,
"confirmedAt": "2026-11-27T10:15:30.000Z",
"textSha256": "<hex>",
"dataSha256": "<hex>",
"confirmationSha256": "<hex>"
}
path- the file in the archive;confirmationIdandconfirmedAt(UTC) - the confirmation and when it was made;transactionId- the verification run that recorded the confirmation;recordedInEarlierRun-truewhen this archive's run skipped the step because the applicant had already confirmed in an earlier run (the PDF says "Recorded during an earlier verification run");textSha256- the SHA-256 of the confirmation text;dataSha256- the SHA-256 of the list of the confirmed data;confirmationSha256- the SHA-256 that binds the text, the data, the time and the ID.
The manifest has no IP address and no text: they are in data-confirmation.pdf.
Data confirmation
When the applicant confirms their data (the option Ask the applicant to confirm their data), Allpass.ai records:
- the date and time (UTC), the IP address, the location, the user agent and the locale of the applicant;
- the confirmation text exactly as shown, its SHA-256 (the text SHA-256) and its version;
- the list of the confirmed data (the data manifest): for every file its SHA-256 and size, for every value the value itself, and one SHA-256 over the whole list (the data SHA-256);
- one more hash over all of it, the confirmation SHA-256.
data-confirmation.pdf in the audit archive holds: the UTC time, IP address, device and location; the confirmation text exactly as shown; the text SHA-256, the data SHA-256 and the confirmation SHA-256; the confirmation and transaction IDs; and the table of the confirmed data (each value, or the SHA-256 of each file; an item whose file was gone is marked missing). It is sealed like every other PDF and listed in the certificate of completion.
In servicesData
In the applicant's servicesData returned by Get applicant, the confirmation is the entry with service: "DATA_CONFIRMATION". It has only the fact, the time and the hashes, without the IP address, the text or the data:
"data": {
"confirmationId": "3c1f9a52-7d0e-4b8a-9f3e-0c6a2d4b7e15",
"confirmedAt": "2026-11-27T10:15:30.000Z",
"dataSha256": "<hex>",
"confirmationSha256": "<hex>"
}
See PublicDataConfirmationEntity in Entities.
Step and service names
In the Enums:
VerificationStepEnum: the Audit archive step issealed_dossier, and its Data confirmation step isdata_confirmation;ServiceEnum: an audit archive made by the flow isSEALED_DOSSIER, a manually created one isSEALED_EXPORT, and the data confirmation isDATA_CONFIRMATION. Billing shows the audit archives under the same names.
Check an archive yourself
You can check an audit archive without the dashboard and without the verify page. You need the archive (ZIP), its archive ID and the Allpass.ai root certificate.
There is no Public API endpoint to download audit archives and no webhook for them yet: download the archive in the dashboard (see Audit archives).
1. The archive is the one that was made
Compute the SHA-256 of the ZIP and compare it with Archive SHA-256 on the verification page https://allpass.ai/verify/<archive ID>:
# macOS
shasum -a 256 <file>.zip
# Linux
sha256sum <file>.zip
# Windows (PowerShell)
Get-FileHash -Algorithm SHA256 <file>.zip
The values must be equal. A re-packed or modified ZIP never matches, even if every file inside is the same.
Archives made in Test mode have no verification page (verifyUrl is null in the manifest); steps 2-4 still work for them.
2. The root certificate is the published one
Download root.pem from the verification page (the How to verify section) and compare its fingerprint with the one shown there:
openssl x509 -in root.pem -noout -subject -fingerprint -sha256
3. The manifest is sealed by Allpass.ai
Unpack the archive. manifest.json lists every file of the archive; manifest.json.p7s is its seal (a detached CMS signature with a timestamp). Check the seal against the root certificate:
openssl cms -verify -binary -inform DER -in manifest.json.p7s -content manifest.json -CAfile root.pem -purpose any -out /dev/null
The command prints CMS Verification successful when manifest.json is unchanged and was sealed with a certificate issued by the root.
4. Every file matches the manifest
Each entry of files in manifest.json has the path, size and sha256 of a file in the archive; manifest.json and manifest.json.p7s themselves are not listed. Check one file:
shasum -a 256 <file>
or all of them at once (needs jq), from the unpacked archive folder:
jq -r '.files[] | "\(.sha256) \(.path)"' manifest.json | shasum -a 256 -c -
Every line must end with OK. On Linux use sha256sum -c - instead of shasum -a 256 -c -.
The PDFs in the archive also carry their own seal. To check them in Adobe Acrobat, see Check a PDF in Adobe Acrobat.
Create and download through the API
Send the private key of your integration in the x-private-app-key header, as for every Public API request. The API reference has each request in full: list, create and download link. In the paths, {applicantId} is the applicant ID or your external user ID. Responses are encrypted like every Public API response, see Encryption.
List the archives
GET /api/public/applicant/{applicantId}/audit-archives
Returns up to 50 archives of the applicant, newest first, of every kind and status:
[
{
"archiveId": "44444444-4444-4444-8444-444444444444",
"kind": "EXPORT",
"status": "READY",
"createdAt": "2026-11-29T10:00:00.000Z",
"completedAt": "2026-11-29T10:05:00.000Z",
"size": 1234567,
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"errorCode": null,
"verifyUrl": "https://allpass.ai/verify/44444444-4444-4444-8444-444444444444"
}
]
| Field | Description |
|---|---|
kind | FLOW: made by the Audit archive step. EXPORT: created on request, in the dashboard or through the API. CONSENT: an older kind of archive. |
status | REQUESTED and GENERATING: being created. READY: can be downloaded. FAILED: see errorCode. |
size, sha256 | Size and SHA-256 of the ZIP; null unless READY. Compare sha256 with the file you download, see Check an archive yourself. |
errorCode | When FAILED, for example GENERATION_TIMEOUT or GENERATOR_BUSY (try again later). |
verifyUrl | Public verification page of a ready live archive; null in Test mode. |
Create an archive
POST /api/public/applicant/{applicantId}/audit-archives
Starts an archive of the applicant's data as it is now (kind EXPORT) and answers 202 with the archive in status REQUESTED:
{ "archive": { "archiveId": "44444444-4444-4444-8444-444444444444", "kind": "EXPORT", "status": "REQUESTED", "...": "..." }, "created": true }
- If an archive of this applicant is already being created, you get that archive with
"created": false; nothing new is started or charged. - The archive is a paid service, charged once when it becomes
READY; see Billing. With a live key the balance is checked first: not enough balance answers403withstatusCode1004. A test key is never charged. - When the archive is ready or has failed, the auditArchiveResult webhook goes to the integration whose key created it. You can also poll the list.
Download an archive
GET /api/public/applicant/{applicantId}/audit-archives/{archiveId}/download-url
Returns a short-lived link to the ZIP of a READY archive:
{ "url": "https://…", "expiresAt": "2026-11-29T10:20:00.000Z" }
The link is free; ask for a new one when it expires. Each call is recorded in the applicant's history as a download by your integration. An archive that is not READY answers 400 with statusCode 12035.
Errors
| HTTP | statusCode | Meaning |
|---|---|---|
| 404 | 12010 | Unknown applicant, or an applicant of another client. |
| 404 | 12034 | Unknown audit archive. |
| 400 | 12035 | The archive is not READY yet. |
| 403 | 1004 | Not enough balance (live keys only). |
Related
- Audit archives - find, download, create and verify audit archives in the dashboard.
- Audit archive step - add the step and the data confirmation to a flow.
- E-signature in the API - the signature files that the audit archive includes.