Execute SQL query
Orchestration - Query
Execute SQL query
Execute a read-only SQL query against orchestration ClickHouse tables (spans, runs, batches, records).
POST
Execute SQL query
Documentation Index
Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Request body schema.
A read-only SELECT statement. Available tables: logs, runs, batches, records. Results are automatically scoped to the authenticated workspace Example: "SELECT status, count() FROM runs GROUP BY status"
Maximum string length:
10000Response
Successful response
Result rows.

