Skip to main content

Project isolation

A project is the tenant boundary. It has its own FHIR store, its own access rules, its own identity provider flows, its own device credentials and its own audit trail. No credential issued for one project is accepted in another.

Every request names one project​

Every call carries an X-Project-ID header, and the token it carries names a project too. The two must agree, or the request is refused before anything is read. A token issued for one project cannot be pointed at another by changing the header, and a header without a matching token reaches nothing. This check fails closed: if it cannot be performed, the request is refused. See the project binding.

Credentials are project-scoped​

  • A user token from the project's identity provider carries the project it was issued for, and the provider's endpoints are namespaced by project. See Identity providers.
  • A device key is issued by a project and exchanges for a token that names it. A device registered in one project has no standing in another. See Device authentication.
  • A developer API key is bound to the project that issued it and carries that binding itself, so it needs no header. It configures the project and can never read its data. See Developer API keys.

Access inside a project is also scoped​

Isolation between projects is enforced by the platform. Isolation within a project, between roles and between organisations, is what your access rules decide: a patient sees their own compartment, a practitioner sees what their organisation and role allow, a device sees what it measures. See How access is decided.

What you can check yourself​

  • Me returns the identity your token resolved to, and nothing else.
  • A user or device token sent with another project's id is refused with a project-mismatch error, not with an empty result. A developer API key sent with another project's id is refused as an invalid key.
  • Responses echo the resolved project back in an X-Project-ID response header.