Skip to main content
POST
Query your own org's diagnostic log lines (self-serve)

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Body

application/json

All fields optional. The query is always scoped to your org server-side; org_id / query / selector / stream are rejected (400).

level
enum<string>

Filter to a single severity level.

Available options:
debug,
info,
warn,
error
request_id
string

Filter to a single request_id.

agent_id
string

Filter to a single agent_id.

contains
string

Bounded substring line-filter term (max 128 chars).

start

Window start (ISO-8601 or epoch-ms). Clamped to at most 7 days before end.

end

Window end (ISO-8601 or epoch-ms). Clamped to now.

limit
integer

Max entries to return (default 100, capped at 500).

Required range: 1 <= x <= 500

Response

Allowlisted operational-metadata projection of the org's matching log lines.

org_id
string
required

The server-resolved org the query was scoped to.

query
string
required

The server-built LogQL query.

count
integer
required
entries
object[]
required