Skip to main content
POST
Execute SQL query

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body schema.

query
string
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"

Maximum string length: 10000

Response

Successful response

rows
Rows · object[]
required

Result rows.