Skip to main content
POST
Search run logs

Authorizations

Authorization
string
header
required

User PAT (cliq_tok_…, including session-scoped) or realm token (cliq_dt_…).

Body

application/json
realm_id
string

Realm to search. Required except for site administrators.

realm_ids
string[]

Site administrators only. Search several realms (for example one organization's).

Maximum array length: 200
q
string

Text to search for in the log messages.

levels
string[]

Only these levels.

run_ids
string[]

Only these runs.

daemon_ids
string[]

Only these daemons.

workspace_ids
string[]

Only these workspaces.

teams
string[]

Only these teams (@scope/slug).

concerns
string[]

Only these kinds of line: run, system, command, http. Default all.

since_ms
number

Only lines at or after this time (epoch milliseconds).

until_ms
number

Only lines before this time (epoch milliseconds).

offset
integer

Lines to skip, for paging.

limit
integer

Page size. Default 50.

Required range: x >= 1

Response

Success.

ok
enum<boolean>
required

Always true on success.

Available options:
true
lines
object[]
required
total
number
required

Matching lines across all pages.

facets
object
required

For each filter (level, daemon_id, team, run_id, workspace_id, concern, realm_id), the values present with a label and a count.

realm
object
required
offset
number
required
limit
number
required