Request
POST https://api.clinikapi.com/v1/consents
Headers
Your ClinikAPI secret key (
clk_live_* or clk_test_*).Must be
application/json.Body
The ID of the patient giving consent (e.g.
pt_abc123).The consent scope. One of:
patient-privacy, treatment, research, adr.Consent category code or array of codes (e.g.
"hipaa-notice", ["treatment-consent", "surgical-consent"]).Consent status. One of:
draft, proposed, active, rejected, inactive. Defaults to active.ISO 8601 timestamp of when consent was given.
ID of the practitioner or patient who is the consenting party.
ID of the custodian organization holding the consent.
URI of the policy document the patient is consenting to (e.g.
"https://clinic.com/hipaa-notice").Verification details confirming the consent was obtained.
Rules defining what is permitted or denied under this consent.
Response
Returns201 Created with the new consent resource wrapped in the standard envelope.
The generated consent ID (e.g.
consent_abc123).Patient reference.
Consent scope as submitted.
Consent status.
Provision rules, if provided.
Standard response metadata including
requestId, timestamp, status, and rate-limit fields.