API Reference
Upload a file through a connector
/api/connectors/{id}/files
Multipart upload to a connector that implements file storage (csv, yaml, s3, azure-blob). Requires admin or superadmin role. Max file size is controlled by connectors.upload_max_bytes in the server config and defaults to 25 MiB.
Operation IDuploadConnectorFile
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Request body
This request body is required.
Content typemultipart/form-data
requestobject6 properties
filestring · binaryrequiredFile contents to upload
pathstringrequiredDestination path (S3 key, blob name, or relative path under csv/yaml directory)
resourcestringAlias for path (accepted for compatibility)
content_typestringOptional Content-Type override
overwritestringSet to "true" or "1" to replace an existing object
metadatastringJSON object of string metadata (object-store connectors only)
Success response body
201File uploaded
File uploaded
Content typeapplication/json
responseobject6 properties
pathstringrequiredUploaded destination path
sizeintegerUploaded size in bytes
content_typestring | nulletagstring | nulllast_modifiedstring | null · date-timeurlstring | nullObject URL when provided by the connector
Error responses
400Validation error
Validation error
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "VALIDATION_ERROR",
"message": "Invalid input"
}403Insufficient permissions
Insufficient permissions
No response content schema is documented.
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}409File already exists and overwrite was not set
File already exists and overwrite was not set
Content typeapplication/json
responseobject2 properties
errorstringmessagestring413File too large
File too large
Content typeapplication/json
responseobject2 properties
errorstringmessagestring415Unsupported file extension for connector type
Unsupported file extension for connector type
Content typeapplication/json
responseobject2 properties
errorstringmessagestring501Connector type does not support file uploads
Connector type does not support file uploads
Content typeapplication/json
responseobject2 properties
errorstringmessagestring