Skip to content

Reupload Context Endpoint

GET
/v1/documents/{job_id}/reupload-context
curl --request GET \
--url http://localhost:8080/v1/documents/example/reupload-context

Structured prefill for the “re-upload corrected version” flow.

Returns just the fields the new-document form needs to seed itself so the frontend doesn’t have to fetch the entire job + canonical

  • extraction blob (which can be MiBs) just to read four strings. Soft-deleted source jobs are still readable here — operators may want to re-upload the corrected version of a job they’ve already deleted.

The user-visible upload filename is not persisted on document_artifacts today (only the synthetic storage-key tail like original.pdf), so the response intentionally omits a filename field rather than returning a misleading value. Re-add when the artifact row carries the real filename.

job_id
required
Job Id
string

Successful Response

Media type application/json
Response Reupload Context Endpoint V1 Documents Job Id Reupload Context Get
object
key
additional properties
any
Example generated
{}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}