Skip to main content
All requests must include a valid API key in the X-API-Key header.

Prerequisites

  • You must belong to an organization. If you don’t have one, create one first from the Healos dashboard.
  • Only organization admins can create, list, and revoke API keys.

Obtaining an API Key

An organization admin creates keys in the HealOS dashboard:
  1. Open Account Settings → API Keys at app.healos.ai/account-settings.
  2. Select Create API key, give it a label, pick its scopes and an expiry.
  3. Copy the key. It is shown only once; HealOS keeps only a hash of it.
API keys are prefixed with hlsk_ and are tied to your organization. All data accessed through the key is scoped to your organization — you can read and write patients, appointments, and documents, list the providers in your organization, and read clinical notes belonging to any member of your org. A single key covers every provider in the organization; you assign records to specific providers with the provider_id field rather than issuing a key per provider. A key keeps working only while the admin who created it is still an admin of the organization. See Security and HIPAA for storing, rotating and revoking keys.

Scopes

Each API key has a set of scopes that control resource access. Scopes follow a resource:action pattern.
GET and HEAD requests require read scopes. All other methods (POST, PATCH, DELETE) require write scopes.

Check your key

GET /me tells you who a key belongs to, which organization it acts in, its scopes and when it expires. It works with any valid key, whatever its scopes, so it is a safe first call for a new integration.
The response never includes the key itself or its hash. expires_at is null for a key with no expiry.

Key Expiration and Revocation

  • Keys can have an optional expiration timestamp set at creation.
  • Keys can be revoked at any time.
  • Expired or revoked keys return 401 Unauthorized.

Security Best Practices

  • Use the narrowest scopes needed for your integration.
  • Set an expiration date on keys used in less-trusted environments.
  • Rotate keys periodically and revoke old ones. See Rotate a key.
  • Never expose keys in client-side code or public repositories.
  • Test with a key from a separate test organization.