Security
Transport
Every call uses HTTPS with TLS 1.2 or 1.3. Plain HTTP is answered with a redirect and nothing else, so always call the https:// address: a key sent over plain HTTP has already been exposed.
All traffic passes a web application firewall before it reaches the API. A 403 whose body is not JSON came from the firewall, not from the API.
Keys
| Rule | What it means |
|---|---|
| Shown once | A key is shown when it is issued. Health Nexus keeps a one-way hash of it and cannot show it again. |
| Rotation | Rotating issues a new key. The old one stops working at once. |
| Scopes | read, or read and write. Ask for a read-only key when your integration never writes. |
| IP addresses | A key can be restricted to a list of addresses. A call from any other address is refused with 403. |
| Environment | A sandbox key works only in the sandbox, a production key only in production. |
| Servers only | A request with an Origin header is refused with 403. Keep the key out of web pages and mobile apps. |
Store the key in a secret manager, give it to the services that call the API and to nothing else, and ask for a rotation whenever someone who knew it leaves or it may have been seen.
Whom a key reaches
A key reaches a person only after that person signed in or signed up through your integration and accepted the terms. Knowing an email address gives no access: the API answers 403 with user_not_linked.
What passes through your system
- Passwords and verification codes. Your servers pass them to the API. Do not store or log them.
- Tokens between steps.
verificationTokenandidentityTokenare short-lived and belong to one flow. Keep them for the flow and discard them. - Upload links. An
uploadUrllets its holder store one file of the declared size for 15 minutes. Treat it like a credential and do not log it. - No sessions. The API does not hand you a session for the person. There is nothing to refresh and nothing to leak besides the key.
Audit
Every call made with your key is recorded with the endpoint, the result, the person it was about, the calling address and your X-Request-Id. The record is kept for 90 days.
Test data
Use invented people and documents in the sandbox. Do not upload real lab reports there.