Choose a profile
CapOut generates both files for every successful export. The deprecated upload field
profile_code does not choose which artifact is generated or downloaded.
Download from an authenticated client
Send the same organization-scopedcapout-api-key used for upload, status, and
document history. Do not put the key in the URL or a query parameter.
How the stable redirect works
- Your integration stores the clean
api.capout.aiURL returned by CapOut. - The client requests the link with
capout-api-key. - CapOut validates the key and verifies that the durable document belongs to its organization.
- CapOut forwards the caller’s key to the frontend workflow action, which independently checks access and signs the selected Contractor or Carrier artifact.
- The route returns a non-cached
307redirect to a signed private S3 URL. - The S3 signature expires after 15 minutes, while the original CapOut link remains stable and can issue another fresh redirect later.
Readiness and errors
The clean links are returned immediately after upload so you can store them with the job. They become downloadable only after ESX generation completes.
Wait for
export.completed, or for GET /status/{document_id} to report a completed export, before presenting the link as ready. A client that opens it early can retry after receiving 409.
Where the links appear
The same stable URLs are available from:POST /uploadGET /status/{document_id}underexportGET /documentsunder each document’sexport- realtime
export.completedevents - CapOut MCP processing, status, and waiting tools