Orchestration - Query

Execute SQL query

Execute a read-only SQL query against orchestration ClickHouse tables (spans, runs, batches, records).

post/orchestration/query

Request

  • Base URL
    https://api.getcargo.io/v1
  • URL
    https://api.getcargo.io/v1/orchestration/query
  • Auth
    HTTP bearer

Request body

querystring required

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"

Response

Successful response

rowsobject[] required

Result rows.

Changes

No recorded changes to this operation across all 1 revision of this API.