Upload a reusable file
Upload bytes directly to OpenParser's Eigenpal-compatible tenant file pool. Files may be
reused by later parse or extract requests through file_id; bytes do not pass through
Vercel.
Authorization
bearerAuth Existing Eigenpal API key presented as a bearer token.
In: header
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/files" \ -H "Authorization: Bearer $OPENPARSER_API_KEY" \ -F file="string"{ "id": "string", "filename": "string", "contentType": "string", "size": 0, "purpose": null, "createdAt": "2019-08-24T14:15:22Z"}{ "error": { "code": "malformed_request", "message": "multipart field `request` is not valid JSON", "request_id": "req_01h2example", "retryable": false }}{ "error": { "code": "unauthorized", "message": "invalid API key", "request_id": "req_01h2example", "retryable": false }}{ "error": { "code": "forbidden", "message": "API key lacks required scope", "request_id": "req_01h2example", "retryable": false }}{ "error": { "code": "limit_exceeded", "message": "source exceeds 50 MiB admission limit", "request_id": "req_01h2example", "retryable": false, "details": { "limit": "max_input_bytes", "max_value": 52428800 } }}{ "error": { "code": "unsupported_media_type", "message": "only PDF, PNG, and JPEG uploads are accepted", "request_id": "req_01h2example", "retryable": false }}{ "error": { "code": "rate_limited", "message": "request rate limit exceeded", "request_id": "req_01h2example", "retryable": true }}Download retained job source bytes GET
Stream the retained source document for a parse or single-document extract job. Jobs without retained source bytes return `404 source_not_available`. Check `has_source` on `GET /jobs/{id}` before calling. Playground tokens (`ocr:playground`) and `ocr:full` keys are both accepted, matching other job read routes. Optional `Range` requests may return `206` partial content or `416` when the range is unsatisfiable.
Get reusable file metadata GET
Next Page