Skip to navigation

Submit Job

Submit an input file as a raw request body, streamed to disk.

Accepted formats (sniffed from the file signature, the Content-Type header is ignored): PDF, PNG, JPEG, TIFF.

The optional X-Filename header sets the job’s display name (percent- decoded, basename only — see JobStore.create); it does not affect where bytes land.

curl -X POST —data-binary @doc.pdf -H ‘Content-Type: application/pdf’
-H ‘X-Filename: doc.pdf’ http://host:8200/jobs

Headers

x-filenamestring or nullOptional

Optional display name for the job, percent-encoded as UTF-8. Metadata only; does not affect processing.

Response

Successful Response
job_idstring
filenamestring
mime_typeenum
Allowed values:
stateenum
Allowed values:
bytes_receivedinteger
status_urlstring
result_urlstring

Errors

422
Unprocessable Entity Error