Files
Import a file by URL
Changed onRegister a file from a URL. varg-hosted URLs (s3.varg.ai, uu.varg.ai, ...) are registered without re-uploading; external URLs are streamed to varg storage. SSRF-protected (private IPs and localhost are rejected).
post/files/import
Request
- Base URL: https://api.varg.ai/v2
- URL: https://api.varg.ai/v2/files/import
- Auth: HTTP bearer
Headers
X-Workspace-Idstring
Folder (id or slug) to file the import into. Wins over workspace_id in the body.
Request body
Response
File imported (or deduplicated). size can be 0 for varg-hosted URLs registered without bytes.
Changes
- info
endpoint added
- info