Returns sessions for a specific agent, ordered by start time (newest first). This endpoint is equivalent to GET /sessions withDocumentation Index
Fetch the complete documentation index at: https://docs.masker.dev/llms.txt
Use this file to discover all available pages before exploring further.
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
The agent’s ID in
agt_* ULID format, e.g. agt_01HYZ....Query parameters
Maximum number of sessions to return. Accepted range: 1–100.
Pagination cursor from a previous response’s
next_cursor. Omit to start from the first page.Return only sessions that started within this window. Accepts a duration string (
1h, 24h, 7d, 30d) or an ISO 8601 UTC timestamp.Filter by session outcome. One of
ok, error, or partial. Omit to return sessions of all statuses.Return only sessions with at least this many PHI redactions.
Response fields
Array of session summary objects.
Cursor for the next page.
null when you have reached the last page.Example
Response
Errors
| Status | Code | Meaning |
|---|---|---|
401 | unauthenticated | Missing or invalid masker_session cookie |
404 | agent_not_found | No agent with this ID exists in your account |
422 | validation_failed | Bad query parameter value, e.g. malformed since |