cURL
curl --request POST \ --url https://api.readfile.io/v1.0.1/file/read \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-KEY: <api-key>' \ --form file='@example-file'
{ "job_id": "<string>", "status": "<string>" }
Submits a file to ReadFile for processing. You’ll get a ‘job_id’ back, which you can use to track the status of your extraction job.
The processing strategy to use for text extraction. For more, see here
default
vision
sota
The file to be processed. Can be any of [.pdf, .docx, .png].
Accepted response
The identifier of your task on ReadFile. You can use this to track the status, and download the results.
The current state of your task on ReadFile. This will read 'processing' once the task is being worked on.