curl --request POST \
--url https://api.capout.ai/upload \
--header 'Content-Type: application/json' \
--header 'capout-api-key: <api-key>' \
--data '
{
"url": "https://example.com/claims/123/scope.pdf",
"file_name": "claim-123-scope.pdf",
"xn_address": "restoration-team@example.xn"
}
'{
"document_id": "doc_123",
"workflow_id": "wf_123",
"status": "processing",
"created_at": "2026-04-14T14:30:00Z",
"status_url": "/status/doc_123",
"ws_url": "/ws/status"
}Upload a PDF document for processing by sending either a fetchable url or inline file_base64 content.
Exactly one of file_base64 or url must be provided.
Inline file_base64 uploads are supported up to 50 MB.
curl --request POST \
--url https://api.capout.ai/upload \
--header 'Content-Type: application/json' \
--header 'capout-api-key: <api-key>' \
--data '
{
"url": "https://example.com/claims/123/scope.pdf",
"file_name": "claim-123-scope.pdf",
"xn_address": "restoration-team@example.xn"
}
'{
"document_id": "doc_123",
"workflow_id": "wf_123",
"status": "processing",
"created_at": "2026-04-14T14:30:00Z",
"status_url": "/status/doc_123",
"ws_url": "/ws/status"
}Organization-scoped API key used for REST endpoints and for minting realtime tokens.
Request body for POST /upload. Provide exactly one of url or file_base64. Inline file_base64 uploads are supported up to 50 MB.
Base64-encoded PDF file. Inline uploads are supported up to 50 MB.
"JVBERi0xLjQKJ..."
Original filename.
"claim-123-scope.pdf"
Xactnet recipient address for this upload.
"restoration-team@example.xn"
Fetchable HTTPS URL to a PDF that the server can retrieve immediately.
"https://example.com/claims/123/scope.pdf"
Successful response
Response body for POST /upload.
"doc_123"
"2026-04-14T14:30:00Z"
"/status/doc_123"
"wf_123"
"processing"
"/ws/status"