API Reference
Export all rows matching a read-only query
/api/connectors/{id}/query/export
Streams every row the query yields as a CSV/JSON/NDJSON file download — no row cap and no server-side buffering. Write methods are rejected regardless of role. Cancel by aborting the request/download.
Operation IDexportConnectorQuery
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 typeapplication/json
requestobject5 properties
methodstringrequiredConnector method to call (must be read-only)
argsobjectrequiredMethod arguments (send without limit/top to export all rows)
Additional properties are allowed.
formatstringcolumnsarray<string>CSV column order; defaults to the first row's keys
Array items
itemstringfilenamestringDownload filename (extension appended from format)
Success response body
200Streamed export file (Content-Disposition attachment). Gzip when Accept-Encoding includes gzip.
Streamed export file (Content-Disposition attachment). Gzip when Accept-Encoding includes gzip.
Content typetext/csv
responsestringContent typeapplication/x-ndjson
responsestringError responses
400Validation error or cancelled export
Validation error or cancelled export
No response content schema is documented.
403Method is not read-only
Method is not read-only
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"
}500Export execution failed
Export execution failed
No response content schema is documented.