Skip to article
API v1 · Development version

PDFs, evidence and retention

Existing document rules and the planned API flow.

Not a production release

The reference describes implemented code. Signing workflow, billing and customer webhooks remain unfinished. This documentation does not activate access.

Format and limits

API upload reuses the existing PDF policy: at most 20 MiB per file, 1,000 pages, 50 files and 100 MiB per case including active upload reservations. Encrypted, malformed, excessively complex and disallowed-content PDFs are rejected. SHA-256 and actual byte size must match the preparation request.

Private upload and verification

Prepare with POST /v1/documents: case_id, name, size, sha256 and Idempotency-Key. PUT the bytes to upload.url using only upload.headers. Never forward the Enterprise key to storage. The capability is scoped to one immutable file; the upload window is two hours and retries do not renew it.

After uploading, POST /v1/documents/{id}/complete with no body. A 202 response returns a persistent operation; repeated calls return the same operation ID. Poll GET /v1/operations/{id} or GET /v1/documents/{id}. pending and running do not mean approval. succeeded and document status ready indicate completed verification. Failures return stable codes without document contents.

The queue has its own capacity limits and reclaims abandoned jobs after lease expiry. Transient storage/infrastructure failures retry up to eight attempts. Files are not automatically attached to drafts; attach a ready document with POST /v1/signing-cases/{id}/documents/{documentId}. DELETE on the same path detaches without deleting the upload. Abandoned files follow existing cleanup. scripts/enterprise-document-example.mjs demonstrates all four operations against a configured test deployment, without sending or charging.

What document delivery contains

GET /v1/signing-cases/{id}/documents requires documents:read and returns unchanged originals, a separate PDF certificate and a verification ZIP. After signing completes, pending packaging returns HTTP 202 and Retry-After: 5. Poll the same endpoint until evidence_status is ready; failed requires operator assistance. Download links last 60 seconds and are secret bearer capabilities: do not log or share them. Previously issued links may remain valid for their remaining lifetime after key revocation. Never send the API key to storage links. The certificate is not a PDF with an embedded PAdES signature.

Retention and your archive

Existing rules include 180 days of draft inactivity, 12 months for sent cases without signatures and 12 months from closure for partially signed cases. Completed registered-customer cases follow existing policy, up to seven years with applicable restrictions. API agreements do not automatically override retention.

Plan an authorized archive and integrity checks for downloaded files. Avoid unnecessary personal data in external references and metadata.

Was this article helpful?

Quick feedback for this page view.

Updated 2026-10-24 · 1.0.0-dev.8

Search documentation

12 results