API Reference
Query connector data
/api/connectors/{id}/query
Executes a query against the connector. Only whitelisted methods are allowed per connector type. SQL execute is restricted to SELECT/WITH/EXPLAIN. MongoDB write methods (insert_one, update_one, delete_one, delete_many) require admin or superadmin role; update_one, delete_one and delete_many require a non-empty filter.
Operation IDqueryConnector
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
requestobject3 properties
methodstringrequiredConnector method to call (must be read-only)
argsobjectrequiredMethod arguments
Additional properties are allowed.
limitintegerMax rows to return (no upper cap — in-flight queries are cancellable)
Success response body
200Query results
Query results
Content typeapplication/json
responseobject4 properties
dataarray<object>Array items
itemobjectcountintegertruncatedbooleanmutationbooleanTrue when the response is from a MongoDB write operation
Error responses
400Validation error
Validation error
No response content schema is documented.
403Method not allowed for data exploration
Method not allowed for data exploration
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"
}500Query execution failed
Query execution failed
No response content schema is documented.