Finalize an upload session. Once all file parts are uploaded, call this endpoint to persist the file record, optionally associate it with a case, and enqueue parsing/embedding jobs. This step ensures the uploaded file is fully indexed and ready for search/redaction workflows.
Server-side upload session id from /upload/init.
S3 key that was uploaded.
S3 UploadId (for multipart).
Completed multipart parts.
ETag returned by S3 for single-part upload.
Optional: attach file to case upon finalization.
Upload finalized
Schema inferred from files dataset.
{
"id": "6ff9fff2-027a-48a0-a5c1-bd2c6e5c03e7",
"org_id": "743db90f-7e76-49f7-8d4e-5f42a16efc06",
"name": "foia_correspondence.mbox",
"size_bytes": 997,
"mime_type": "application/octet-stream",
"department": "Unknown",
"tags": "{}",
"relevancy_score": 0,
"review_status": "pending",
"pages": null,
"duration_seconds": null,
"s3_bucket": "foia-dev-andromeda",
"s3_key": "743db90f-7e76-49f7-8d4e-5f42a16efc06/raw/e863a541-0832-4bce-abb8-11f32ffe5e3b/foia_correspondence.mbox",
"created_by": "ab99f432-1141-43bf-a826-ea015838179f",
"uploaded_at": "2025-08-29 10:28:48.713 -0500",
"updated_at": "2025-08-29 10:28:48.713 -0500",
"s3_bucket_original": "foia-dev-andromeda",
"s3_key_original": "743db90f-7e76-49f7-8d4e-5f42a16efc06/raw/e863a541-0832-4bce-abb8-11f32ffe5e3b/foia_correspondence.mbox",
"s3_bucket_parsed": null,
"s3_key_parsed": null
}