POST
/
api
/
logs
/
filter

Headers

x-prefect-api-version
string

Body

application/json
offset
integer
default: 0
Required range: x > 0
logs
object

Filter logs. Only logs matching all criteria will be returned

sort
enum<string>

Defines log sorting options.

Available options:
TIMESTAMP_ASC,
TIMESTAMP_DESC
limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

Response

200 - application/json
id
string
required
created
string | null
required
updated
string | null
required
name
string
required

The logger name.

level
integer
required

The log level.

message
string
required

The log message.

timestamp
string
required

The log timestamp.

flow_run_id
string | null

The flow run ID associated with the log.

task_run_id
string | null

The task run ID associated with the log.