List log entries

http
GET /projects/{project_reference}/logs

List project log entries. Requires project.logs.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
startqueryStart time (RFC 3339). Defaults to 1 hour ago. Logs are kept for 31 days and one query spans at most 30 days; an older start or a wider range returns 400. Cannot be combined with cursor.
endqueryEnd time (RFC 3339). Defaults to now. Cannot be combined with cursor.
cursorqueryOpaque page_info.next from a previous page. It continues the original window and sort order; repeat the same filters with every cursor.
limitqueryMax entries to return (default: 100, max: 1000)
sort_orderquerySort order by timestamp. Defaults to "desc", newest first. Entries that share a timestamp keep one stable order.
levelqueryFilter by log level
searchqueryFree-text search over the fields each entry shows
environmentqueryExact runtime environment tag, for example preview or production. Untagged telemetry is excluded.
hostqueryExact request host (without scheme or path), for example demo.preview.veryfront.com. Untagged telemetry is excluded.
release_idqueryExact release ID on emitted logs; untagged logs are excluded.
servicequeryFilter by service: veryfront-server, veryfront-api or veryfront-proxy.
trace_idqueryFilter by exact trace ID to correlate logs with a distributed trace.
request_idqueryFilter by exact request ID.
run_idqueryFilter by exact run ID to see every service line that belongs to one run.
sort_byquery

Responses

StatusDescription
200Recent project log entries from the runtime (veryfront-server), the API (veryfront-api) and the proxy (veryfront-proxy). Only lines stamped with the project id are returned; API and proxy lines carry only request fields; each entry carries run_id when the line belongs to a run. Page with page_info.next: a page can hold fewer entries than limit, or none, and still carry it.
400Invalid log query parameters, including a time range beyond retention
401Unauthorized
403Forbidden — project.logs.read capability required
404Project not found
413Too many log entries share one timestamp to page through them; add a filter
429Rate limit exceeded
500Server error
502Log provider error
503Service unavailable — log service not configured or unreachable