Documents
Upload and manage the files attached to a subcontractor — certificates, policies, and other proof used to satisfy compliance requirements. Each document belongs to a subcontractor and to your organization, and is tagged with a category.
There are three ways to upload a document:
- Multipart — Upload a document (multipart)
with the bytes in a
fileform field. - From a URL — Upload a document from a URL;
TradeGuard downloads
sourceUrlserver-side. - Direct to S3 — presign
→
PUTthe bytes to the returned URL → confirm.
All three accept the same categories (insurance, license,
background_check, training_cert, tax_form, agreement,
endorsement, workers_compensation_exemption, safety_policy) and the
same optional documentType for the non-insurance ones, the same file types
(PDF, PNG, JPEG, WebP, HEIC/HEIF, TIFF) and the same 25 MiB limit, and
answer a byte-identical re-upload with 200 and duplicate: true
instead of creating a second document.
Lifecycle: upload → activate → validation and extraction → used by
compliance checks. Uploads are activated and processed automatically.
Only the multipart path can stage a document without making it live
(activate: "false"); a staged document is not processed until you
activate
it and run extraction.
Only active documents count toward compliance.
Endpoints:
