Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.masker.dev/llms.txt

Use this file to discover all available pages before exploring further.

Returns complete detail for a single session, including every individual redaction event with span coordinates, confidence scores, and token metadata. This is the endpoint to use when you need to investigate a specific call, verify what PHI was detected, or pull the merkle_root_hex for audit chain-of-custody verification. If log_payloads: true is set in the agent’s masking policy, the response also includes the original request, masked payload sent to the LLM, and the final response. Payloads are null by default.

Endpoint

GET /api/v1/sessions/{session_id}
Requires masker_session authentication.

Path parameters

session_id
string
required
The session’s ID in sess_* ULID format, e.g. sess_01HYZ....

Response fields

session
object
required
Full session object.

Example

curl -H "Cookie: masker_session=ey..." \
  https://masker-voice.fly.dev/api/v1/sessions/sess_01HYZ...
Response
{
  "session": {
    "id": "sess_01HYZ...",
    "agent_id": "agt_01HYZ...",
    "agent_name": "appointment-bot-prod",
    "started_at": "2026-05-03T21:14:32Z",
    "ended_at": "2026-05-03T21:14:32.794Z",
    "duration_ms": 794,
    "status": "ok",
    "upstream_model": "gpt-4o-mini",
    "policy_name": "healthcare-default",
    "policy_version": 1,
    "stage_durations_ms": {
      "detection": 56,
      "tokenize": 4,
      "upstream": 728,
      "rehydrate": 6
    },
    "events": [
      {
        "event_id": "evt_01HYZ...",
        "pass": "gemma",
        "entity_kind": "NAME",
        "span": [142, 156],
        "confidence": 0.94,
        "token_kind": "MSKV1",
        "kid": "K_HEALTHCARE"
      }
    ],
    "payloads": {
      "request": null,
      "masked": null,
      "response": null
    }
  }
}

Errors

StatusCodeMeaning
401unauthenticatedMissing or invalid masker_session cookie
404session_not_foundNo session with this ID exists in your account