---
title: "Get Clinic New Updates"
method: GET
path: "/read/clinic/new-updates"
tags: ["read", "clinic"]
---

# Get Clinic New Updates

`GET /read/clinic/new-updates`

## Request

- Base URL: `https://api.projectindi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.projectindi.com/read/clinic/new-updates`
- Auth: none declared

Observations and check-ins across this clinician's caseload since their last visit per child.

A check-in is in the set so a parent's reply on it (a comment on the
check-in's own entry) resurfaces it; the clinician's own, unanswered, is
held out by the function's own-post rule (`20261009021338`). A document
comes in only with `documents`, and only through a comment (#14447).

The join, cutoff comparison, per-child cap and unread count all happen in a
single SECURITY INVOKER SQL pass (`get_clinic_new_updates`) - RLS still gates
`child_profiles`, `timeline_entries`, and `user_timeline_read_state`.

## Query parameters

- `limit` integer: Max entries per child
- `include_digest` boolean: Attach today's Haiku catch-up digest
- `documents` boolean: Include documents brought back by comments (#14447). Sent by the catch-up surfaces only.

## Response `200`

Successful Response

- NewUpdatesResponse
  - `groups` ChildUpdateGroup[], required
    - `child_id` string, required
    - `child_name` string, required
    - `dob` string, nullable
    - `avatar_url` string, nullable
    - `unread_count` integer, required
    - `entries` UnreadEntry[], required
      - `id` string, required
      - `type` string, required
      - `title` string, nullable
      - `description` string, nullable
      - `date` string, required
      - `created_at` string, required
      - `metadata` object
    - `digest` DigestSection[], nullable
      - `heading` string, required
      - `icon` string, nullable
      - `body` string, required
    - `check_in_state` string, nullable
    - `check_in_last_sent_at` string, nullable
    - `check_in_available_at` string, nullable
    - `mention_count` integer, nullable
  - `total_unread` integer, required
  - `has_assigned_clients` boolean, nullable
  - `as_of` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles.md) - [All operations](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/llms.txt) - [OpenAPI document](https://skmtc.dev/projectindi/apis/indi-agent-api-first-principles/revisions/25a7813e21fd?raw)
