Skip to main content
POST
Search the log records

Authorizations

Authorization
string
header
required

A project token (apsio_pt_v0...), which reads exactly one project, or an OAuth access token issued for the API, which reads what its user can. Access tokens issued for Apsio's MCP server are accepted only from the MCP server itself.

Path Parameters

projectId
string
required
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"0192f3a4-0000-7000-8000-00000000a101"

Body

application/json
from
string<date-time>

Start, inclusive (RFC 3339). Defaults to 24 hours before to.

to
string<date-time>

End, exclusive (RFC 3339). Defaults to now.

app_id
string

Only this app of the project.

Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
filters
object[]
Maximum array length: 20
severity
enum<string>

At least this severity (OpenTelemetry severity number ranges).

Available options:
trace,
debug,
info,
warn,
error,
fatal
body
string

Records whose body contains this text, ignoring case. Plain text, not a pattern.

Required string length: 1 - 200
limit
integer
default:100
Required range: 1 <= x <= 200
cursor
string

The next_cursor of the previous page. Opaque.

Maximum string length: 1024

Response

The matching records and their volume.

from
string
required

RFC 3339 time in UTC with up to nanosecond precision.

Example:

"2026-10-04T10:15:00.431000000Z"

to
string
required

RFC 3339 time in UTC with up to nanosecond precision.

Example:

"2026-10-04T10:15:00.431000000Z"

bucket_seconds
integer
required
retention_days
integer
required

Days of detail the project's plan keeps (D94); nothing older is read.

histogram
object[]
required

Only buckets with records.

records
object[]
required
next_cursor
string | null
required

Pass as cursor to get the next page; null on the last page.

sql
string
required

The records query with its values, for reading. Not run as written.