Headers
Bearer $TOKEN
application/json
Body parameters
The ID of the source to query. For an application inside a collector, only that application's rows are returned.
The SQL query to run. {{source}} reads the source's data of the chosen source_type. {{start_time}} and {{end_time}} stand for the time range, and {{time}} buckets dt into intervals that suit the range.
Which data {{source}} reads: logs, spans or metrics. Defaults to the source's own type, or logs.
The start of the time range, as an ISO 8601 timestamp like 2026-11-16T09:00:00Z or a relative time like now-3h. Defaults to now-1h.
The end of the time range, in the same formats as start_time. Defaults to now.
The maximum number of rows to return, from 1 to 1000. Defaults to 500. Applied only when the query has neither LIMIT nor GROUP BY, and never to metrics.