Preview
Get account summary (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns the calling account's summary: id, name, status, mode (live or mock), training consent, commercial terms and retention. Never returns secrets or billing identifiers. Requires an API key.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get account summary (Preview) › Responses
Account summary
accountIddisplayNamestatusmodetrainingConsentretentionDayspricePerCreditcurrencymonthlyCreditCapGet the monthly usage report (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns one UTC calendar month of billed usage (the current month by default), priced at the account's price per credit: the jobs, their certificates with supplier and source page range, and the scan and extraction credits, so a multi-supplier pack reconciles with the invoice. One credit is one page. Failed work, classification-only work and mock usage are not billed and do not appear; a mock account always gets an empty report. Requires an API key.
query Parameters
month^[0-9]{4}-(0[1-9]|1[…The month as yyyy-MM (UTC). Default: the current month.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get the monthly usage report (Preview) › Responses
The month's usage
monthperiodStartperiodEndExclusive end of the month.
finalTrue once the month has ended, so the figures cannot grow.
mockA mock account: never billed, so the report is empty.
capReachedThe month used at least the whole monthly credit cap.
pricePerCreditcurrencyISO 4217 code.
monthlyCreditCapList jobs (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Lists the account's jobs, newest first, in pages, with job and usage totals over the whole filter. Filter by status and by creation date.
query Parameters
statusfromCreated on or after this ISO 8601 date or timestamp (UTC). Default: 90 days ago; the totals report it as periodStart.
toCreated before this ISO 8601 date or timestamp (UTC).
limitPage size, 1 to 100 (default 25).
cursornextCursor from the previous page.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
List jobs (Preview) › Responses
Create a job (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Creates a job for one PDF: a single certificate (mode: single) or a multi-supplier pack (mode: pack). Returns a short-lived upload URL on UK South storage: PUT the PDF there (certificate PDFs never pass through this gateway), then call submit. Send an Idempotency-Key header so a retry returns the original job. Mock accounts may set scenario; live accounts must not.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Idempotency-KeyUp to 128 printable characters without spaces. A retry with the same key returns the original job.
Create a job (Preview) › Request Body
modefileNameYour own name for the file, for your reference only.
scenarioMock accounts only: the canned sandbox result. Single: single-certificate, mixed-heats, low-confidence-supplier, delayed-completion. Pack: three-supplier-pack, pack-one-failed-child, split-failure. Rejected for live accounts.
Create a job (Preview) › Responses
A retry with the same Idempotency-Key: the original job
jobIdmodestatussubmitted: waiting for the malware scan. classifying: the AI stage up to the split. completedWithErrors: some certificates failed, the rest are returned and billed.
createdAtsubmittedAtcompletedAtfileNamepageCountscannedPageCountscenarioMock accounts only.
failureReasonPresent only while the job is waiting for its file.
Get a job (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns the job's status, the status of each certificate and the pages used so far. Poll until the status is terminal (completed, completedWithErrors, failed or infected), then fetch the result.
path Parameters
jobIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get a job (Preview) › Responses
The job
jobIdmodestatussubmitted: waiting for the malware scan. classifying: the AI stage up to the split. completedWithErrors: some certificates failed, the rest are returned and billed.
createdAtsubmittedAtcompletedAtfileNamepageCountscannedPageCountscenarioMock accounts only.
failureReasonPresent only while the job is waiting for its file.
Delete a job (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Removes the uploaded PDF, the split certificates and the stored results, and hides the job. Usage already recorded is kept for billing. Repeating the call is safe.
path Parameters
jobIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Delete a job (Preview) › Responses
The job was deleted (or already had been)
Submit an uploaded job (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Call after uploading the PDF. Checks size, that the file is a readable PDF and the page cap (400 pages for a pack, 50 for a single certificate), then queues the job once the malware scan is clean. An unusable file ends the job. Calling submit again on an accepted job returns its current state.
path Parameters
jobIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Submit an uploaded job (Preview) › Responses
Already submitted: the job's current state
jobIdmodestatussubmitted: waiting for the malware scan. classifying: the AI stage up to the split. completedWithErrors: some certificates failed, the rest are returned and billed.
createdAtsubmittedAtcompletedAtfileNamepageCountscannedPageCountscenarioMock accounts only.
failureReasonPresent only while the job is waiting for its file.
Get a job's result (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns one envelope for the whole job, the same shape for single and pack jobs: every certificate with supplier, classification confidence, source page range, status and the full extraction document, plus the pages used. A failed certificate gives the job status completedWithErrors and never fails the others. Returns 409 until the job has finished.
path Parameters
jobIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get a job's result (Preview) › Responses
The aggregated result
jobIdmodestatuswarningspageCountscannedPageCountfailureReasonGet a job's PDFs regrouped (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns short-lived signed links (valid for one hour; call again for fresh ones) to PDFs generated from the job's certificates and cached. groupBy=certificate gives each certificate's own PDF, groupBy=supplier merges the certificates of one supplier, groupBy=heat gives one PDF per (heat, supplier) pair named {heat}-{supplier}.pdf, with pages that belong to no heat kept in unassigned-{supplier}.pdf. A page shared by several heats is in each of their files. Add heat (with groupBy=heat) for one heat's files: a heat that is not in the result returns 404, and a heat that is in the result but has no page numbers returns 422 (pdf_export_heat_has_no_pages). Without heat, such a heat is skipped and its pages stay in the unassigned file. Only completed certificates are included. Not billed. Limits per export: 200 heats per certificate, 2000 output pages (a page shared by several heats counts in each) and 200 MiB; beyond them the call returns 422 (heats, pages) or 413 (size) with a pdf_export_* code in the message, never a truncated export. Source PDFs are kept 7 days: after that a first export returns 410. Returns 409 until the job has finished.
path Parameters
jobIdquery Parameters
groupByHow to regroup the pages.
heatWith groupBy=heat only: return just this heat code's files.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get a job's PDFs regrouped (Preview) › Responses
Signed links to the regrouped PDFs
jobIdgroupByexpiresAtarchiveA ZIP of every file; absent when a heat filter was used or there is only one file.
List webhook endpoints (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns the account's webhook endpoints. Secrets are never returned.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
List webhook endpoints (Preview) › Responses
The endpoints
Register a webhook endpoint (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Registers an HTTPS endpoint (port 443, public addresses only) that receives one signed delivery per job when the job reaches a final state. The response contains the signing secret: store it now, it is never shown again. At most five endpoints per account. See the Webhooks page for the payload and how to verify the signature.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Register a webhook endpoint (Preview) › Request Body
urlHTTPS address, port 443, public host.
eventsDefaults to ["job.completed"].
Register a webhook endpoint (Preview) › Responses
The endpoint, with its secret (shown once)
endpointIdurleventscreatedAtupdatedAtrotationInProgressTrue while deliveries carry signatures for both the new and the previous secret.
secretPresent only in the response that created or rotated the secret; never retrievable again.
Get a webhook endpoint (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Returns one endpoint. The secret is never returned.
path Parameters
endpointIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get a webhook endpoint (Preview) › Responses
The endpoint
endpointIdurleventscreatedAtupdatedAtrotationInProgressTrue while deliveries carry signatures for both the new and the previous secret.
secretPresent only in the response that created or rotated the secret; never retrievable again.
Update a webhook endpoint (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Replaces the endpoint's url and events (same rules as registering). The secret is unchanged; rotate it separately.
path Parameters
endpointIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Update a webhook endpoint (Preview) › Request Body
urlHTTPS address, port 443, public host.
eventsDefaults to ["job.completed"].
Update a webhook endpoint (Preview) › Responses
The updated endpoint
endpointIdurleventscreatedAtupdatedAtrotationInProgressTrue while deliveries carry signatures for both the new and the previous secret.
secretPresent only in the response that created or rotated the secret; never retrievable again.
Delete a webhook endpoint (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Removes the endpoint and its secrets. Deliveries still waiting for it are abandoned.
path Parameters
endpointIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Delete a webhook endpoint (Preview) › Responses
Deleted
Send a test delivery (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Sends one signed webhook.test event to the endpoint and reports what happened. Nothing is retried or stored.
path Parameters
endpointIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Send a test delivery (Preview) › Responses
Whether the receiver answered 2xx
deliveredstatusCodeerrorRotate a webhook secret (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Creates a new signing secret and returns it once. Until you call retire-previous-secret, every delivery carries a signature for the new and for the previous secret, so receivers can switch without a gap.
path Parameters
endpointIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Rotate a webhook secret (Preview) › Responses
The endpoint, with the new secret (shown once)
endpointIdurleventscreatedAtupdatedAtrotationInProgressTrue while deliveries carry signatures for both the new and the previous secret.
secretPresent only in the response that created or rotated the secret; never retrievable again.
Retire the previous webhook secret (Preview)
Preview: this endpoint may change without a new version while it is in Preview. Ends a rotation: deliveries are signed with the new secret only. Safe to repeat.
path Parameters
endpointIdHeaders
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Retire the previous webhook secret (Preview) › Responses
The endpoint
endpointIdurleventscreatedAtupdatedAtrotationInProgressTrue while deliveries carry signatures for both the new and the previous secret.
secretPresent only in the response that created or rotated the secret; never retrievable again.

