SDK Partner UI › ARCHIVE

Archive — Ingest

POST /api/archive/documents. Puts a document into the archive. The bytes arrive exactly one of three ways — inline base64, a staged upload reference, or a source URL the archive fetches. Picking a file below chooses for you.

No retry protection. The archive mints the identity per request, so a POST that times out and is retried produces two documents. Idempotency-Key is forwarded but not consulted. If you must not double-archive, search by externalId first.
Retention resolution *

Without a profile version all five are required: the archive records resolved-rule evidence and permits no jurisdiction default. With a profile version, profile id and version name an exact version of your company profile and the archive resolves the rest itself — whether that version exists and is active is its decision.

Document *
Your only handle for checking a retried ingest.
Content *
64 hex characters, or leave empty. On the inline path the archive measures its own digest and stores that — a declared value that disagrees is not refused here, so do not rely on it to catch a corrupted body.
The contract declares all three nullable, so it permits none and all three. The archive refuses either — it could not prove later which bytes it was given.
Pick any document, any size — the page routes it for you. Up to 768 KiB it goes inline as base64; above that it is staged and you get an uploadRef instead. That threshold is the archive's 1 MiB inline-base64 cap, and it is unrelated to the 100 MB figure, which decides whether a staged upload is split into parts.
Or paste base64 by hand
Retention terms & fiscalization both optional

Leave retention empty and the resolved rule decides the floor — the normal case. If you do fill it in, the archive requires either a policy or an until-date (which must be in the future); classification and the hold flag alone are refused.

The archive does not fiscalize — this records what another service is expected to do.
Parties each needs a role, a name, and at least one identifier