POST
/
api
/
logs
/
filter

Headers

x-prefect-api-version
string

Body

application/json
limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

logs
object

Filter logs. Only logs matching all criteria will be returned

offset
integer
default:
0
Required range: x > 0
sort
enum<string>

Defines log sorting options.

Available options:
TIMESTAMP_ASC,
TIMESTAMP_DESC

Response

200 - application/json
created
string | null
required
id
string
required
level
integer
required

The log level.

message
string
required

The log message.

name
string
required

The logger name.

timestamp
string
required

The log timestamp.

updated
string | null
required
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.