/v1/files Accepts Idempotency-Key Upload a file (single shot)
Upload a document as multipart/form-data with the bytes in a file part. The response carries the file's VALIDATED content type (read from the bytes, not the extension), its detected source language and its real billing page count, so a job can be priced before it is started. Bodies above 25 MiB must use the resumable path (POST /v1/files/uploads).
Request body
multipart/form-data
Responses
-
201the stored filePublicFile -
400malformed request -
403free plan, or an unconfirmed addressErrorEnvelope -
409the idempotency key is in use for a different body -
413over a size or storage limitErrorEnvelope -
415unsupported format, or the bytes are not what the name claimsErrorEnvelope -
422corrupt, encrypted or rejected contentErrorEnvelope -
429rate limited