patientId, practitionerId, status, type, title, and at least one sections entry.
Request
POST https://api.clinikapi.com/v1/documents
Headers
Your ClinikAPI secret key (
clk_live_* or clk_test_*).Must be
application/json.Body
ID of the patient this document belongs to (e.g.
pt_abc123).ID of the practitioner authoring the document (e.g.
prac_def456).Document status. One of:
preliminary, final, amended.Document type. Common values:
discharge-summary, referral-letter, care-plan, operative-report, transfer-summary, consultation-report.Human-readable document title (e.g.
"Discharge Summary - Jane Doe - Jan 15, 2025").Ordered list of document sections. Each section requires at minimum a
title and text.ID of the encounter associated with this document (e.g.
enc_xyz789).Document date in
YYYY-MM-DD format. Defaults to the current date.Confidentiality level. One of:
N (Normal), R (Restricted), V (Very Restricted). Defaults to N.Response
Returns201 Created with the new document wrapped in the standard envelope.
Generated document ID (e.g.
doc_abc123).Patient ID the document is linked to.
Practitioner ID of the document author.
Document status (
preliminary, final, or amended).Document type as submitted.
Document title.
Array of section objects as submitted.
Confidentiality level (
N, R, or V).Document date in
YYYY-MM-DD format.Standard response metadata including
requestId, timestamp, status, and rate-limit fields.