purpose: "user_data". It does not provide a vector store or automatically search your documents. Files uploaded here are separate from attachments in the Chat app.
Before you start
Create an API key in the dashboard withfiles:write, files:read, and files:delete. Keep the key on your server and set it in your shell:
Authorization: Bearer or x-api-key. Sending both with values returns HTTP 401. The SDK examples configure authentication for you.
Install the SDKs for the examples you use:
.py file. Save Node.js examples as .mjs files for import and top-level await.
Save a PDF as notes.pdf in the directory where you run an example. The cURL walkthrough also uses Python to read the returned file ID; it does not need the Python SDK.
Upload and manage a PDF
All Files API calls usehttps://api.overcontrolgroup.com/v1/files. Upload with multipart form data and let cURL or your SDK set the multipart boundary. Do not set Content-Type: application/json on an upload.
The examples upload a file with a one-hour expiry, retrieve its metadata, list files, download the PDF, and delete the upload. The Python and Node.js examples delete it in a finally block.
files:read, the relevant inference scope, and access to lume-omni.
Read the file object
An upload returns HTTP 200 and a file object withstatus: "processed". Use id to refer to the stored PDF. The object describes storage readiness; it does not mean the model has already read or indexed the document.
This response is illustrative:
created_at and expires_at are Unix timestamps in seconds. A file ID starts with file- followed by 32 letters, digits, _, or -. Treat the ID as opaque rather than constructing one yourself. Every response includes X-Request-Id.
Endpoints and permissions
The content endpoint returns PDF bytes with
Cache-Control: private, no-store. HTTP Range requests are not supported. A successful deletion returns {"id":"file-0123456789abcdef0123456789abcdef","object":"file","deleted":true}.
Files belong to the account, rather than a single API key. Another key on the same account can use them if it has the required permissions. A key on another account cannot access them.
List and paginate
A list response has
object: "list", data, first_id, last_id, and has_more. If has_more is true, send after with the preceding page’s last_id, keeping the other filters the same. Do not repeat query parameters or add unsupported ones. A new upload may take a short time to appear in a list; use its returned ID for direct retrieval.
Expiry and storage limits
Upload expiry is optional. Supply bothexpires_after[anchor]=created_at and expires_after[seconds] in multipart form data, or the equivalent SDK object shown above. Seconds must be between 3,600 and 2,592,000: one hour through 30 days. With no expiry, the file remains until you delete it.
At expires_at, the file becomes unavailable for metadata, downloads, and inference. Expiry is unrelated to the end of a model response, browser session, or calendar-month allowance. Delete files you no longer need.
A filename must end in
.pdf, and the content must be a nonempty PDF. Other formats and purposes are rejected. Failed upload attempts can still consume the per-minute attempt limit. Deleting a file does not reset your daily ingestion budget.
Usage and common errors
Files API operations currently do not spend inference allowance. Sending an uploaded PDF to a model does consume model usage, including on repeated questions about the same file. Pricing explains inference usage. Storage and ingestion limits still apply to uploads.
Errors use the Chat-style
error object with message, type, param, and code, even when you plan to use the file with Messages. Include X-Request-Id when contacting support.
Next
Chat with files
Upload, ask a question, and clean up through either inference API.
Authentication
Choose Files scopes and model permissions for each key.

