Files API
Upload File
Upload a file via streaming multipart/form-data
POST
File Upload Note: The interactive playground doesn’t support file uploads due to browser limitations. Use the cURL examples below to test file uploads.
Overview
Upload a file to the Newton Platform for processing. The request body ismultipart/form-data and the file contents are streamed to reduce memory usage.
The simple upload endpoint accepts files up to 512 MB. For files above this — or for any case where you need resumable uploads — use the direct-to-cloud multipart workflow instead, which supports up to 250 GB. The Developer Console UI caps its uploads through this endpoint at 255 MB; client integrations can go up to the full 512 MB.
Request
The request must be sent asmultipart/form-data with the file contents in a form field. The exact form-field name depends on the client; most HTTP clients (e.g. curl -F, requests files=) will use the file’s name as the field name.
Required Header
Authorization: Bearer YOUR_API_KEYContent-Type: multipart/form-data(automatically set by cURL’s-Fflag)
Supported File Types
The server’sContent-Type validator accepts:
- Images:
image/jpeg,image/png - Video:
video/mp4 - Text & data:
text/plain,text/csv,application/json
Response
Whether the upload was successful. Check this field to detect errors.
The filename of the uploaded file. Use this to download, delete, or fetch metadata for the file.
Internal unique identifier for the uploaded file
Getting Full Metadata: This endpoint returns a minimal response. To get complete file information including size, dimensions, and timestamps, use the Get File Metadata endpoint.
Next Steps
- Get file details:
- List all files:
- Get storage summary: