Changelog
Additive changes — new endpoints, new optional fields, new event types — ship within v1 without notice. Anything that could break a client gets a new version and advance notice.
Unreleased
Changes in the next hub release. The first one can break an existing integration.
Every test key (hsl_test_…) now acts only on the sandbox facility HSL-SANDBOX, whatever facility it was created for. That includes test keys a Heka SoftLink administrator issued before this release. A request about any other facility gets 404 or an empty list. Until the sandbox is set up on a hub, every test key gets 503 sandbox_unavailable.
This ships within v1 without advance notice, which departs from the compatibility policy below. If you used a test key against a real facility, request live access and use a live key instead (see Going live).
Developer accounts
- Self-service accounts: sign up at /developers/signup, choose your password from the set-up link, then use the developer console for keys, webhooks, request logs, usage, live access and settings.
- Test keys are self-serve in the console. The sandbox holds synthetic data only.
- Live keys need live access, requested in the console and approved per facility with the scopes allowed there. Live access needs two-step verification on the account, and every live change in the console asks for a current code from your authenticator app. Live keys are created in the console only.
- A developer key can hold only the developer scopes.
usage:writeis sandbox-only, andanalytics:read,subscriptions:write,invoices:writeandpayments:writeare never available. See scopes.
Webhooks
- Endpoint URLs must be https. The host is resolved at every delivery, and private, loopback, link-local, carrier-grade NAT and cloud-metadata addresses are refused. Redirects are not followed. A delivery has 10 seconds in all, DNS lookup included.
- A test endpoint receives only sandbox events that your own keys caused.
- A live endpoint receives only events for facilities you are granted, of the types your grant’s scopes allow.
- Live endpoints are created in the console. A live key calling
POST /webhook-endpointsgets403 console_required. - A key lists and deletes only its own account’s endpoints, in its own environment.
Limits
- Besides each key’s own limit (60 a minute for a test key, 120 for a live key), a developer account has one budget across all its test keys (120 a minute) and one across all its live keys (300 a minute). Going over it returns
429 developer_rate_limited. See rate limits. - Your keys store at most 1,000 usage records per UTC day in the sandbox. Beyond that,
POST /usageanswers202withpersisted: falseandreason: "sandbox_daily_cap".
New error codes
api_key_disabled, live_access_required, facility_access_revoked, console_required, developer_rate_limited and sandbox_unavailable. See errors.
v1 — 2026-11-25
First release of the Platform API.
- Catalogue: plans and add-ons.
- Facilities, balances and entitlements (features, limits, commercial state).
- Subscriptions: create, change plan (with proration on upgrade), cancel, add-ons.
- Invoices: list, detail, manual invoices, finalize, void.
- Payments: manual recording, Paystack checkout, listing.
- Usage metering, including NHIA claim metrics.
- Event log and signed webhooks with retries.
- Facility API:
POST /api/v1/billing/usageandGET /api/v1/billing/entitlementsfor the EHR. - API keys with explicit scopes, facility scoping, expiry, per-key rate limits and Idempotency-Key support.
Compatibility policy
- We may add endpoints, optional request fields, response fields, enum values and event types at any time. Ignore what you do not recognise.
- We will not remove or rename fields, change types, or make optional fields required within v1.
- Error
codevalues are stable;messagetext may change.