uploads / Upload files and create data source

uploads

Upload files and create data source

Upload local files (multipart/form-data) or import from URLs (application/json) and immediately create a FILE data source. Returns the same response format as /sources/ endpoint. Supported file types: CSV, TSV, Excel (.xls/.xlsx), SQLite (.sqlite/.db/.sqlite3), Parquet. Limits: Max 10GB per file. Security: URLs are validated to prevent SSRF attacks. Private IPs, localhost, and cloud metadata endpoints are blocked.

POST /api/v1/uploads/upload/

Headers

Authorizationrequired

any - API key authentication using Bearer scheme

Request Body

file_urlsrequired

array - List of file URLs to import. Each item must include 'url' and 'filename'.

account_name

string - Name for the data source (auto-generated if not provided)

Response

idrequired

integer - ID of the created data source