Query run logs
POST
Query run logs

Authorizations

Authorization
string
header
required

Voiceflow bearer token

Path Parameters

runID
string
required

Query Parameters

projectID
string
required

The ID of the project to operate on.

environmentAlias
string
required

The alias of the environment to operate on (e.g. main).

Body

kinds
object[]

Keep only entries of these kinds. Omit to keep every kind.

levels
object[]

Keep only entries at these levels, for example ["fatal", "error", "warn"] for what went wrong.

debugKinds
object[]

Keep only debug entries of these kinds. Setting it leaves out every entry that is not a debug log.

turns
integer[]

Keep only entries of these turns. Turn 0 holds anything logged before the first input.

Keep only entries whose message or recorded data contains this text, ignoring case. It is plain text, not a regular expression. Separate alternatives with |, as in "timeout|denied", to keep entries that contain any of them.

detail
object
default:"summary"
limit
integer
default:50

The most entries to return in one page.

offset
integer
default:0

How many matching entries to skip, for paging.

order
object
default:"asc"

Response

200 - application/json

Returns one page of the log entries that match the filters, with the counts for the whole log, the token use per model, and nextOffset for the next page (null on the last page).

total
integer
required

Entries in the whole log.

turnCount
integer
required

The last turn the log reaches.

counts
object
required

How many entries of each kind, level and debug kind the whole log holds, before any filter.

tokens
object[]
required

Token use per model over the whole log, largest first.

matches
integer
required

Entries that pass every filter.

entries
object[]
required

This page of the matching entries.

hasMore
boolean
required
nextOffset
integer
required

The offset of the next page, or null when this page reaches the last match.

truncated
boolean
required

True when the page stopped before limit to stay under about 30,000 tokens. Continue from nextOffset.

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close the search.