Skip to main content
List available views for the patient. Optionally provide view_type to list blocks within that view.

Parameters

ParameterRequiredTypeDescription
patient_idYesstringPatient user ID
view_typeNostringOptional view type to list blocks for (e.g., symptom_snapshot)
date_fromNostring (ISO 8601)Inclusive lower bound on snapshot created_at. Per-view view_id resolves to the latest version in the window.
date_toNostring (ISO 8601)Inclusive upper bound on snapshot created_at.

Example output

Illustrative:
{
  "views": [
    {
      "view_type": "symptom_snapshot",
      "segment_availability": ["temp", "blocks"]
    }
  ]
}