Notes
Get Notes by Appointment
Retrieve the notes stored for an appointment
GET
Overview
Retrieve the notes associated with a specific appointment. The system stores a single notes document per appointment, so in practice the returned array holds either zero or one element. When the appointment exists and is owned by the caller but has no notes yet, an empty array is returned.This operation is scoped to the owning doctor. The appointment identified by
{id} must belong to the authenticated user. A request for an appointment you do not own returns 403 Forbidden, and an unknown appointment returns 404 Appointment not found (not an empty array).Authentication
Bearer token for authenticated access. The doctor (user) identity is taken from the JWT.
401 with a message field. See Error Responses.
Path Parameters
Appointment ID (MongoDB ObjectId, 24 hex characters) whose notes to retrieve. Must be owned by the authenticated doctor.
Response
Indicates whether the operation succeeded.
Array of notes documents for the appointment. Holds 0 or 1 element in practice.
Error message (only present when
success is false).Each notes object may contain additional fields beyond those listed above. Treat any unlisted fields as opaque.
Example Request
Example Response
Error Responses
Status Codes
- 200 — Notes retrieved successfully (including an empty array when no notes exist).
- 401 — Missing, invalid, or revoked authentication token.
- 403 — Authenticated user does not own the appointment.
- 404 — Appointment not found.