Quick start

Request a developer account, get an API key and make your first UnicareOS-governed call.

Example content

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.

Request access

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.

Note

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.

Shell
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." }
  }'

Response

200 OK
{
  "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
}
FieldTypeDescription
trace_idstringTrace ID for this call; use it to look up the audit record.
decisionstringpassed, needs_review or blocked.
checksarrayResult and message for each gate.
requires_physician_confirmationbooleanWhether 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.

Shell
curl https://api.unicaremind.com/v1/audit/records/uc-7f3a-e19c-42b0 \
  -H "Authorization: Bearer $UNICARE_API_KEY"

Next steps