Skip to main content
POST
/
api
/
v1
/
runtime
/
v1
/
observability
/
events
/
query
Query events as a table (SDK)
curl --request POST \
  --url https://api.runflow.ai/api/v1/runtime/v1/observability/events/query \
  --header 'Content-Type: application/json' \
  --data '
{
  "eventName": "<string>",
  "agentId": "<string>",
  "mode": "raw",
  "columns": [
    "<string>"
  ],
  "groupBy": "<string>",
  "metrics": [
    {
      "alias": "<string>",
      "propertyKey": "<string>"
    }
  ],
  "filters": [
    {
      "propertyKey": "<string>",
      "value": "<unknown>"
    }
  ],
  "dateFrom": "2023-11-07T05:31:56Z",
  "dateTo": "2023-11-07T05:31:56Z",
  "sortBy": "<string>",
  "limit": 123,
  "offset": 123
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
eventName
string
required
agentId
string

Agent UUID. Defaults to the agent bound to the API key when omitted.

mode
enum<string>
default:raw
Available options:
raw,
aggregate
columns
string[]
groupBy
string
metrics
object[]
filters
object[]
dateFrom
string<date-time>
dateTo
string<date-time>
sortBy
string
sortOrder
enum<string>
Available options:
asc,
desc
limit
integer
offset
integer

Response

Query result.