Terms of Service
A person accepts the Health Nexus Terms of Service once. Until they do, the data endpoints answer 403 with code: "terms_required" for people who signed in through your integration.
Check the state
A finished sign-in already tells you, in terms.accepted. You can also ask at any time:
curl -s "$HN_BASE/api/patient/partner/terms" \
-H "X-Api-Key: $HN_KEY" -H "X-Subject-Email: jane@example.com"
{ "accepted": false, "acceptedAt": null, "url": "https://portal.health-nexus.com/terms" }
Record the acceptance
Show the terms at url. Have the person type their name to agree, as they would on the Health Nexus site, and send it together with their own IP address and device.
curl -s "$HN_BASE/api/patient/partner/terms/accept" \
-H "X-Api-Key: $HN_KEY" -H "X-Subject-Email: jane@example.com" \
-H "Content-Type: application/json" \
-d '{"signedName":"Jane Doe","userIp":"203.0.113.7","userAgent":"YourApp/2.1 (iOS 18.1)"}'
| Field | Required | Meaning |
|---|---|---|
signedName | yes | The name the person typed to agree. |
userIp | no | The person's own IP address, as your app saw it. Not your server's. |
userAgent | no | The person's device or browser. |
{ "success": true, "accepted": true, "acceptedAt": "2026-12-02T10:15:00.000Z", "recorded": true }
Only the first acceptance is kept. A later call changes nothing and answers recorded: false. This endpoint needs the write scope.