agent_id pre-applied, but also supports additional agent-scoped filters like min_redactions. Use it to audit activity for a single agent without having to filter a cross-account session list.
Endpoint
masker_session authentication.
Path parameters
string
required
The agent’s ID in
agt_* ULID format, e.g. agt_01HYZ....Query parameters
number
default:"25"
Maximum number of sessions to return. Accepted range: 1–100.
string
Pagination cursor from a previous response’s
next_cursor. Omit to start from the first page.string
default:"24h"
Return only sessions that started within this window. Accepts a duration string (
1h, 24h, 7d, 30d) or an ISO 8601 UTC timestamp.string
Filter by session outcome. One of
ok, error, or partial. Omit to return sessions of all statuses.number
default:"0"
Return only sessions with at least this many PHI redactions.
Response fields
object[]
required
Array of session summary objects.
string | null
required
Cursor for the next page.
null when you have reached the last page.Example
Response