Quick start
Request a developer account, get an API key and make your first UnicareOS-governed call.
These docs are being written. Endpoints, parameters and responses on this page are examples; the published API is authoritative.
Request a developer account
Developer accounts are opened on request. Tell us which hospital and use case you are integrating, and we will set up a workspace for managing API keys, applications and audit records.
Get an API key
Once your account is open, go to Settings → API Keys and click New. Create separate keys for test and production so they can be audited and rotated.
An API key is shown only once. Keep it in a server-side environment variable; never put it in front-end code or commit it.
export UNICARE_API_KEY="uck_live_xxxxxxxxxxxxxxxx"Make your first call
Send a piece of AI-generated text to UnicareOS for a governance check. The kernel runs the policy gate, source tracing and validation, and returns a traceable trace_id.
curl https://api.unicaremind.com/v1/governance/check \
-H "Authorization: Bearer $UNICARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scene": "discharge_summary",
"input": { "patient_ref": "case-2381" },
"output": { "text": "Discharge orders: continue oral medication, outpatient follow-up." }
}'
import os
import requests
resp = requests.post(
"https://api.unicaremind.com/v1/governance/check",
headers={"Authorization": f"Bearer {os.environ['UNICARE_API_KEY']}"},
json={
"scene": "discharge_summary",
"input": {"patient_ref": "case-2381"},
"output": {"text": "Discharge orders: continue oral medication, outpatient follow-up."},
},
)
print(resp.json())
Response
{
"trace_id": "uc-7f3a-e19c-42b0",
"decision": "needs_review",
"checks": [
{ "gate": "policy", "status": "passed" },
{ "gate": "validation", "status": "flagged",
"message": "No follow-up date in discharge orders" }
],
"requires_physician_confirmation": true
}| Field | Type | Description |
|---|---|---|
trace_id | string | Trace ID for this call; use it to look up the audit record. |
decision | string | passed, needs_review or blocked. |
checks | array | Result and message for each gate. |
requires_physician_confirmation | boolean | Whether a physician must confirm before writing. |
Look up the audit record
Every call is written to the audit record. Use the returned trace_id to see the input, sources, checks and who confirmed it.
curl https://api.unicaremind.com/v1/audit/records/uc-7f3a-e19c-42b0 \
-H "Authorization: Bearer $UNICARE_API_KEY"