Skip to main content
GET

Overview

Returns every document owned by the authenticated doctor, across all appointments. This is effectively a “list all my documents” endpoint. Access is self-only: the id in the path must equal the authenticated user’s own ID. Any other value returns 403 Forbidden — you cannot view another doctor’s documents.
This is a read endpoint and is not plan-gated. The result is a single array with no pagination and no guaranteed sort order.

Authentication

string
required
Bearer token for authenticated access. The doctor’s ID is extracted from the JWT token and must match the path id.

Path Parameters

string
required
Must equal the authenticated user’s own ID (ObjectId). Any other value returns 403 Forbidden.

Response

boolean
Whether the request was successful
array
Array of all document records owned by the authenticated doctor. Empty when the doctor has no documents.
string
Error message (only present when success is false)
Additional fields may be present on each document object and should be treated as opaque.

Example Request

Example Response

Error Responses