Upload a file
Upload a file as a raw binary body (max 200 MB). Set Content-Type to
the file’s media type; when it’s missing or generic, varg sniffs the
type from magic bytes.
Send X-Content-Hash: sha256:<hex> to enable deduplication — if your
account already has a file with the same content, the existing file is
returned instantly (deduplicated: true) without re-uploading. Use
GET /files/check?hash= to pre-check before sending bytes.
Authorizations
varg API key (varg_...). Get one at app.varg.ai
or run bunx vargai login. App sessions may alternatively send a
Supabase JWT.
Headers
sha256 hash of the bytes (with or without the sha256: prefix) for dedup
Original filename
Body
The body is of type file.