/platform/v1. Hospital staff screens have no public API.
Authentication
Send the platform key in theX-Platform-Key header on every request. The key is set by the operator in the deployment’s environment; there is no default, and with no key configured every call is refused.
A missing or wrong key returns 401 with an RFC 9457 application/problem+json body. Both cases return identical responses.
Provision a tenant
POST /platform/v1/tenants
The API returns the invitation link in
acceptUrl; deliver it to the administrator yourself. Only a hash of the token is stored, so a lost link cannot be recovered, only replaced by calling this endpoint again.List tenants
GET /platform/v1/tenants returns { "tenants": [ { slug, name, status, timezone, currency, locale, createdAt, archivedAt } ] }, including archived tenants.
Tenant usage
GET /platform/v1/tenants/{slug}/usage returns { slug, status, counts: { patients, encounters, admissions, activeUsers }, countedAt }. Returns 400 for an invalid slug and 404 for an unknown one.
Lifecycle
Response:
{ slug, status, previousStatus, archivedAt, changed }.
- Archiving, and reactivating an archived tenant, need
confirmSlugequal to the slug, otherwise400. - Suspending an archived tenant returns
409. - Requesting the state a tenant is already in succeeds with
"changed": false.