This endpoint allows a client to upload a binary file. The id
returned in the reponse is representing the file in Hypatos systems. It can be used in other endpoints, for example to initiate a processing of the file to create document holding captured data.
Document uploaded
Content type is not supported
Rate limit exceeded
curl -i -X POST https://api.cloud.hypatos.ai/v2/files \ -H "Authorization: Bearer <YOUR_TOKEN_HERE>" \ -H "Content-Type: application/pdf" \ -H "X-Hy-Filename: invoice.pdf" \ --data-binary @/path/to/your/document.pdf
{- "id": "6040dc9680b782b365ea77d5"
}
Download the content of a file with the given identifier.
Binary content of a file
No file with given identifier exist
Rate limit exceeded
{- "detail": "File with given identifier does not exist",
- "status": 404,
- "title": "File not found"
}