{
 "info": {
  "_postman_id": "17aa3fdb-edbe-4292-8fca-bdf54dce95e8",
  "name": "Health Nexus — Partner API",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
  "description": "# Health Nexus — Partner API\n\nHealth Nexus is a patient health platform: lab results and biomarkers with ranges and scores, reports, questionnaires, AI summaries and recommendations, wearables, and chat. With the Partner API your system brings a person onto Health Nexus, then reads and acts on that person's data on their behalf.\n\nThis collection holds 184 requests in 42 folders. Each request has a description, a ready-to-send body and example replies. Last rebuilt from the backend code on 2026-12-02.\n\n## Environments\n\n| | Base URL |\n|---|---|\n| Sandbox | `https://staging-api-portal-nh.prospera.ai` |\n| Production | `https://api-portal-nh.prospera.ai` |\n\nThe sandbox is a complete copy of the platform for building and testing. Keys are issued per environment: a sandbox key does not work in production.\n\n## Authentication\n\nEvery request carries your key. Requests about one person also name that person.\n\n| Header | Value |\n|---|---|\n| `X-Api-Key` | `pk_live_…`, your partner API key. |\n| `X-Subject-Email` | The person's email, lowercase. Every folder except **Sign-in & Sign-up**. |\n| `X-Subject-Account-Id` | *Optional, recommended.* `user.accountId` from the sign-in reply. |\n| `X-Request-Id` | *Optional.* Your own trace id; it is kept in our audit log. |\n\nThe key is shown once when it is issued; keep it in a secret manager. Calls are server to server: a request that carries an `Origin` header (a browser) is refused with 403. Use the Postman **desktop** app, not the web client.\n\n## The journey\n\n1. **Sign-in & Sign-up.** `POST check-email` tells you whether the person signs in, finishes a clinic-created account, or signs up. Follow the matching requests. Verification codes are sent to the person by email and text message; your app collects them. A finished sign-in answers with `user` (including `user.accountId`), `terms` and `link`. No session token is returned: your key is the credential from here on.\n2. **Terms of Service.** If `terms.accepted` is false, show the person the terms (`terms.url`) and send their acceptance with `POST accept`.\n3. **Everything else.** Call any other folder with `X-Subject-Email` set to the person's email.\n4. **Lab Uploads.** Send a lab report as a PDF in three steps: ask for a link, PUT the file, complete.\n\n## Bot protection in production\n\nIn production, the steps that send a verification code are protected by Google reCAPTCHA. The person's device gets a token and your server forwards it in `X-Recaptcha-Token` (password-reset/start also takes a second one in `X-Recaptcha-Token-Reset`). Those requests carry the headers switched off: switch them on and set `recaptchaToken` for a production call. Without a valid token the step answers `403` with `code: \"captcha_failed\"` and nothing is sent. The sandbox does not check tokens.\n\n## Whom your key can reach\n\nA key reaches the people who signed in or signed up through your integration and accepted the terms. Until then the data folders answer:\n\n```\n403 { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n403 { \"message\": \"The user has not accepted the Health Nexus terms yet.\", \"code\": \"terms_required\" }\n```\n\n`X-Subject-Account-Id` is a check, not a key: when you send it, the person must be known at that account (otherwise `404 Subject user not found`). When one email holds two records, it tells them apart (`400 ambiguous_subject` without it).\n\n## Read and write\n\nA key has the `read` scope, or `read` and `write`. Signing people in, accepting terms, uploading and every POST / PUT / PATCH / DELETE need `write`:\n\n```\n403 { \"message\": \"Partner credential is read-only.\" }\n```\n\n## Limits\n\nEach key has its own request limits per minute and per hour (defaults 600 and 10,000). Steps that send a verification code are also limited per person and per phone number, per hour. Over a limit the API answers `429` with `Retry-After` and `retryAfterSec`. Wait that long; do not retry in a loop.\n\n## Common error responses\n\n| Code | When |\n|---|---|\n| 400 | Missing or invalid header, body or parameter. |\n| 401 | API key missing, malformed, unknown or disabled. In **Sign-in & Sign-up** also a wrong password (`code: wrong_password`). |\n| 403 | Not linked, terms not accepted, read-only key on a write, IP not on the key's allowlist, `Origin` header present, or an inactive account. |\n| 404 | Person not found, or the record you asked for. |\n| 409 | The action is not possible in the current state (the reply says why in `code`). |\n| 413 | Upload larger than 20 MB. |\n| 429 | A limit was reached; see `Retry-After`. |\n| 500 | Our error. |\n| 502 / 503 | A service we depend on could not be reached. Try again. |\n\n## Variables to set\n\nOpen the collection → **Variables**:\n\n- `baseUrl`: the sandbox or production base URL above\n- `apiKey`: your `pk_live_…` key\n- `subjectEmail`: the person's email\n- `subjectAccountId`: filled in by a finished sign-in (or set it yourself)\n- `userPassword`: the password the person typed, for the sign-in and sign-up requests\n- `verificationToken`, `identityToken`, `uploadId`, `uploadUrl`: filled in by the requests as a flow runs\n- `recaptchaToken`, `recaptchaTokenReset`: production only, for the steps that send a code\n",
  "_exporter_id": "partner-api-generator"
 },
 "item": [
  {
   "name": "Sign-in & Sign-up",
   "item": [
    {
     "name": "POST check-email",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "check-email"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "check-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"outcome\": \"register\",\n  \"emailExists\": false,\n  \"passwordExists\": false,\n  \"action\": \"register_new_patient\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": false,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": false\n  },\n  \"message\": \"Email verification sent\",\n  \"preferred\": null\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "check-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "check-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "check-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "check-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/check-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "check-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of every sign-in and sign-up. Tells you where this email stands, in `outcome`: `login` (the person has an account and a password: go to **POST sign-in**), `setup` (a clinic created the record and no password is set yet: finish it through the sign-up steps, sending `action` back), or `register` (new to us: go through the sign-up steps). For `setup` and `register` the first verification code has already been emailed and the reply carries the `verificationToken` for **POST sign-up/verify-email**. A new person gets a Health Nexus account.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-in",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-in"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"message\": \"Logged in successfully.\",\n  \"success\": true,\n  \"signedIn\": true,\n  \"user\": {\n    \"id\": \"2a091c735678f65911a13d4b\",\n    \"email\": \"patient@example.com\",\n    \"name\": \"Jane Doe\",\n    \"gender\": \"female\",\n    \"accountId\": 96,\n    \"clinic\": {\n      \"accountId\": 96,\n      \"facilityId\": 1204,\n      \"facilityName\": \"Health Nexus\"\n    }\n  },\n  \"terms\": {\n    \"accepted\": false,\n    \"acceptedAt\": null,\n    \"url\": \"https://portal.health-nexus.com/terms\"\n  },\n  \"link\": {\n    \"partnerId\": \"your-partner-id\",\n    \"created\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\",\n  \"password\": \"{{userPassword}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Signs the person in with their email and password. Three possible replies with HTTP 200: a finished sign-in (`signedIn: true`, with `user`, `terms` and `link`); a verification step (`requiresVerification: true` with a `verificationToken`: the person must enter the code sent by email and/or text, see the two verify requests); or `accountSelectionRequired: true` with an `identityToken` (sandbox only: one more step, **POST select-location**). A wrong password answers 401 with `code: wrong_password`. No session token is ever returned: after a finished sign-in you call the data endpoints with your key and `X-Subject-Email`.\n\n**Body (JSON):**\n\n- `email` — The person's email address.\n- `password` — The password the person typed.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email and password are required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": \"<failure.message >\"}\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-in/verify-email",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-in",
        "verify-email"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"message\": \"Logged in successfully.\",\n  \"success\": true,\n  \"signedIn\": true,\n  \"user\": {\n    \"id\": \"2a091c735678f65911a13d4b\",\n    \"email\": \"patient@example.com\",\n    \"name\": \"Jane Doe\",\n    \"gender\": \"female\",\n    \"accountId\": 96,\n    \"clinic\": {\n      \"accountId\": 96,\n      \"facilityId\": 1204,\n      \"facilityName\": \"Health Nexus\"\n    }\n  },\n  \"terms\": {\n    \"accepted\": false,\n    \"acceptedAt\": null,\n    \"url\": \"https://portal.health-nexus.com/terms\"\n  },\n  \"link\": {\n    \"partnerId\": \"your-partner-id\",\n    \"created\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code emailed during a sign-in. When that code was the last thing missing, the sign-in is finished in this call (`signedIn: true`); otherwise the reply carries the next `verificationToken` and says which code is still pending in `verification`.\n\n**Body (JSON):**\n\n- `verificationToken` — From the sign-in reply (or the previous verify reply).\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-in/verify-phone",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-in",
        "verify-phone"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"message\": \"Logged in successfully.\",\n  \"success\": true,\n  \"signedIn\": true,\n  \"user\": {\n    \"id\": \"2a091c735678f65911a13d4b\",\n    \"email\": \"patient@example.com\",\n    \"name\": \"Jane Doe\",\n    \"gender\": \"female\",\n    \"accountId\": 96,\n    \"clinic\": {\n      \"accountId\": 96,\n      \"facilityId\": 1204,\n      \"facilityName\": \"Health Nexus\"\n    }\n  },\n  \"terms\": {\n    \"accepted\": false,\n    \"acceptedAt\": null,\n    \"url\": \"https://portal.health-nexus.com/terms\"\n  },\n  \"link\": {\n    \"partnerId\": \"your-partner-id\",\n    \"created\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the code sent by text message during a sign-in. Finishes the sign-in (`signedIn: true`) when nothing else is pending.\n\n**Body (JSON):**\n\n- `verificationToken` — From the previous reply.\n- `code` — The code the person received.\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-in/resend-code",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-in",
        "resend-code"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Verification code sent.\",\n  \"verification\": {\n    \"emailVerified\": false,\n    \"emailSent\": true,\n    \"phoneVerified\": true,\n    \"phoneSent\": false\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-in/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-in",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-in code again. One resend per verification token per cooldown window (429 with `retryAfterSec` otherwise).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `account.accountId` from the sign-in reply, when that reply had an `account` block. Leave it out otherwise.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-up/start",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-up",
        "start"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Email verification sent.\",\n  \"action\": \"register_new_patient\",\n  \"emailExists\": false,\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": false,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": false\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a sign-up for an email and emails the first verification code. Equivalent to **POST check-email** for a new person; use either. An email that already has an account and a password answers 409 `already_registered`: sign in instead.\n\n**Body (JSON):**\n\n- `email`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `409` { \"success\": \"<false>\", \"code\": \"already_registered\", \"message\": \"This email already has an account. Sign in instead.\", \"emailExists\": \"<true>\", \"passwordExists\": \"<true>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-up/verify-email",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-up",
        "verify-email"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Email verified.\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": false\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. The reply carries the next `verificationToken`.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-up/phone",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-up",
        "phone"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Phone verification sent.\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds the person's mobile number and texts a code to it. `countryCode` is the dial code without the plus sign (see **GET country-codes**).\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone` — Digits only.\n- `countryCode` — Dial code, for example `1` or `44`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid phone number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-up/verify-phone",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-up",
        "verify-phone"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Phone verified.\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": true,\n    \"phoneSent\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. After this the person can complete the sign-up.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-up/resend-code",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-up",
        "resend-code"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Verification codes resent.\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending sign-up codes again.\n\n**Body (JSON):**\n\n- `verificationToken`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST sign-up/complete",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "sign-up",
        "complete"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"message\": \"Account created successfully.\",\n  \"success\": true,\n  \"signedIn\": true,\n  \"user\": {\n    \"id\": \"2a091c735678f65911a13d4b\",\n    \"email\": \"patient@example.com\",\n    \"name\": \"Jane Doe\",\n    \"gender\": \"female\",\n    \"accountId\": 96,\n    \"clinic\": {\n      \"accountId\": 96,\n      \"facilityId\": 1204,\n      \"facilityName\": \"Health Nexus\"\n    }\n  },\n  \"terms\": {\n    \"accepted\": false,\n    \"acceptedAt\": null,\n    \"url\": \"https://portal.health-nexus.com/terms\"\n  },\n  \"link\": {\n    \"partnerId\": \"your-partner-id\",\n    \"created\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"code\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `register`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/sign-up/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "sign-up",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"action\": \"register_new_patient\",\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"password\": \"{{userPassword}}\",\n  \"birthDate\": \"1990-01-31\",\n  \"gender\": \"F\",\n  \"zip\": \"94105\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Completes the sign-up with the person's details and the password they chose. `action` is the value the check-email or start reply gave you (`register_new_patient` or `register_existing_patient`). Two possible replies with HTTP 200: a finished sign-up (`signedIn: true`), or `accountSelectionRequired: true` with an `identityToken`: sandbox only, one more step: **POST select-location**. Password rule: at least 8 characters with upper case, lower case, a number and a special character. Birth date: a real `YYYY-MM-DD` day, age 16 to 100.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `action`\n- `firstName`\n- `lastName`\n- `password`\n- `birthDate`\n- `gender` — `M` or `F`.\n- `zip` — Asked of new people only.\n- `email` — The email this sign-up is for.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\" }\n- `400` { \"message\": \"First name and last name are required.\" }\n- `400` { \"message\": \"Password is required.\" }\n- `400` { \"message\": \"Password must be at least 8 characters and include uppercase, lowercase, a number, and a special character.\", }\n- `400` { \"message\": \"<birthDateProblem>\", \"field\": \"birthDate\" }\n- `400` { \"message\": \"Gender must be M or F.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `409` { \"code\": \"<message>\" }\n- `403` { \"success\": \"<false>\", \"code\": \"account_closed\", \"message\": \"This account is closed. Contact your clinic.\", }\n- `409` { \"code\": \"MASTER_AUTH_REQUIRED\", \"message\": \"Please sign in again, then choose your location.\", }\n- `409` { \"code\": \"<ftp.code>\", \"message\": \"This location already has a record with your details. Please contact the clinic so they can link it to your account.\", }\n- `400` { \"code\": \"<ftp.code>\", \"message\": \"That location isn\"t available. Please choose another.\" }\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "GET locations",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/locations",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "locations"
       ]
      },
      "description": "Sandbox: the list of locations for **POST select-location**. Any of them can be chosen. Production needs no location step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/locations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "locations"
         ]
        },
        "description": "Sandbox: the list of locations for **POST select-location**. Any of them can be chosen. Production needs no location step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"facilities\": [\n    {\n      \"facilityID\": 690,\n      \"accountID\": 3,\n      \"name\": \"Example Clinic Downtown\",\n      \"active\": 1,\n      \"status\": \"open\",\n      \"openDate\": \"2025-09-16\",\n      \"softOpenStart\": null,\n      \"softOpenStop\": null,\n      \"photo\": \"https://example.com/locations/downtown.jpg\",\n      \"phone\": \"+1 555 000 0000\",\n      \"fullAddress\": \"123 Example St, Springfield, CA 90000\",\n      \"address\": \"123 Example St\",\n      \"city\": \"Springfield\",\n      \"state\": \"CA\",\n      \"postalCode\": \"90000\",\n      \"countryID\": 1,\n      \"country\": \"United States\",\n      \"timezone\": \"America/Los_Angeles\"\n    },\n    {\n      \"facilityID\": 697,\n      \"accountID\": 3,\n      \"name\": \"Example Clinic Downtown\",\n      \"active\": 1,\n      \"status\": \"open\",\n      \"openDate\": \"2025-09-16\",\n      \"softOpenStart\": null,\n      \"softOpenStop\": null,\n      \"photo\": \"https://example.com/locations/downtown.jpg\",\n      \"phone\": \"+1 555 000 0000\",\n      \"fullAddress\": \"123 Example St, Springfield, CA 90000\",\n      \"address\": \"123 Example St\",\n      \"city\": \"Springfield\",\n      \"state\": \"CA\",\n      \"postalCode\": \"90000\",\n      \"countryID\": 1,\n      \"country\": \"United States\",\n      \"timezone\": \"America/Los_Angeles\"\n    },\n    {\n      \"facilityID\": 708,\n      \"accountID\": 3,\n      \"name\": \"Example Clinic Downtown\",\n      \"active\": 1,\n      \"status\": \"open\",\n      \"openDate\": \"2025-09-16\",\n      \"softOpenStart\": null,\n      \"softOpenStop\": null,\n      \"photo\": \"https://example.com/locations/downtown.jpg\",\n      \"phone\": \"+1 555 000 0000\",\n      \"fullAddress\": \"123 Example St, Springfield, CA 90000\",\n      \"address\": \"123 Example St\",\n      \"city\": \"Springfield\",\n      \"state\": \"CA\",\n      \"postalCode\": \"90000\",\n      \"countryID\": 1,\n      \"country\": \"United States\",\n      \"timezone\": \"America/New_York\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/locations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "locations"
         ]
        },
        "description": "Sandbox: the list of locations for **POST select-location**. Any of them can be chosen. Production needs no location step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/locations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "locations"
         ]
        },
        "description": "Sandbox: the list of locations for **POST select-location**. Any of them can be chosen. Production needs no location step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/locations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "locations"
         ]
        },
        "description": "Sandbox: the list of locations for **POST select-location**. Any of them can be chosen. Production needs no location step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/locations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "locations"
         ]
        },
        "description": "Sandbox: the list of locations for **POST select-location**. Any of them can be chosen. Production needs no location step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST select-location",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "select-location"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"signedIn\": true,\n  \"user\": {\n    \"id\": \"2a091c735678f65911a13d4b\",\n    \"email\": \"patient@example.com\",\n    \"name\": \"Jane Doe\",\n    \"gender\": \"female\",\n    \"accountId\": 96,\n    \"clinic\": {\n      \"accountId\": 96,\n      \"facilityId\": 1204,\n      \"facilityName\": \"Health Nexus\"\n    }\n  },\n  \"terms\": {\n    \"accepted\": false,\n    \"acceptedAt\": null,\n    \"url\": \"https://portal.health-nexus.com/terms\"\n  },\n  \"link\": {\n    \"partnerId\": \"your-partner-id\",\n    \"created\": true\n  }\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Not available.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/select-location",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "select-location"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"identityToken\": \"{{identityToken}}\",\n  \"facilityId\": 690,\n  \"email\": \"{{subjectEmail}}\",\n  \"zip\": \"94105\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sandbox step. Finishes a sign-up or sign-in whose reply said `accountSelectionRequired`, by choosing a location: any one from the list. In production a new sign-up lands in Health Nexus without this step. `facilityId` comes from **GET locations**. Answers a finished session (`signedIn: true`).\n\n**Body (JSON):**\n\n- `identityToken` — From the reply that said `accountSelectionRequired`.\n- `facilityId` — A `facilityID` from GET locations.\n- `email`\n- `zip` — The zip from the sign-up form; leave out after a sign-in.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not available.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"identityToken is required.\" }\n- `400` { \"message\": \"<zipCheck.error>\", \"field\": \"zip\" }\n- `400` { \"message\": \"Please choose your location.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "GET country-codes",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/country-codes",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "country-codes"
       ]
      },
      "description": "Countries and their dial codes, for the phone step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/country-codes",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "country-codes"
         ]
        },
        "description": "Countries and their dial codes, for the phone step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"countries\": [\n    {\n      \"id\": 227,\n      \"name\": \"Afghanistan\",\n      \"iso2\": \"AF\",\n      \"dialCode\": \"93\"\n    },\n    {\n      \"id\": 228,\n      \"name\": \"Albania\",\n      \"iso2\": \"AL\",\n      \"dialCode\": \"355\"\n    },\n    {\n      \"id\": 229,\n      \"name\": \"Algeria\",\n      \"iso2\": \"DZ\",\n      \"dialCode\": \"213\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/country-codes",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "country-codes"
         ]
        },
        "description": "Countries and their dial codes, for the phone step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/country-codes",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "country-codes"
         ]
        },
        "description": "Countries and their dial codes, for the phone step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/country-codes",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "country-codes"
         ]
        },
        "description": "Countries and their dial codes, for the phone step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/country-codes",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "country-codes"
         ]
        },
        "description": "Countries and their dial codes, for the phone step.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST password-reset/start",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "X-Recaptcha-Token-Reset",
        "value": "{{recaptchaTokenReset}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "password-reset",
        "start"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Email verification code sent.\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": false,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": false\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "X-Recaptcha-Token-Reset",
          "value": "{{recaptchaTokenReset}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a second fresh reCAPTCHA v3 token, action `reset_password`."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a password reset and emails a code. Also the way a person with a clinic-created record chooses their first password when check-email says `firstTime: true`. An unknown email answers 404 `ACCOUNT_NOT_FOUND`; a record with no password yet answers 409 `PASSWORD_NOT_SET` with the token to finish setup through the sign-up steps.\n\n**Body (JSON):**\n\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"Email is required.\" }\n- `400` { \"message\": \"Please enter a valid email address.\" }\n- `503` { \"message\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST password-reset/verify-email",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "password-reset",
        "verify-email"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Email verified.\",\n  \"action\": \"verify_phone_required\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-email",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-email"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the email>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the emailed code. `verification.phoneSent: false` in the reply means no text could be sent: ask for a number with **POST password-reset/phone**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest email and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST password-reset/phone",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "password-reset",
        "phone"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"We texted a code to that number.\",\n  \"action\": null,\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": false,\n    \"phoneSent\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"phone\": \"4155550123\",\n  \"countryCode\": \"1\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Adds or changes the mobile number during a reset and texts its code.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `phone`\n- `countryCode`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"phone and verificationToken are required.\" }\n- `400` { \"message\": \"Please choose your country code.\" }\n- `400` { \"message\": \"Please enter a valid mobile number.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST password-reset/verify-phone",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "password-reset",
        "verify-phone"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Phone verified.\",\n  \"action\": \"set_password\",\n  \"verificationToken\": \"eyJhbGci…\",\n  \"verification\": {\n    \"emailVerified\": true,\n    \"emailSent\": true,\n    \"phoneVerified\": true,\n    \"phoneSent\": true\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/verify-phone",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "verify-phone"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"code\": \"<6-digit code from the text message>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Checks the texted code. The next step sets the password.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `code`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and code are required.\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"That code isn\"t right. Check the newest text message and try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST password-reset/resend-code",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "X-Recaptcha-Token",
        "value": "{{recaptchaToken}}",
        "type": "text",
        "disabled": true,
        "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "password-reset",
        "resend-code"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Verification code sent.\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "429 Too Many Requests",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "X-Recaptcha-Token",
          "value": "{{recaptchaToken}}",
          "type": "text",
          "disabled": true,
          "description": "Production only: a fresh Google reCAPTCHA v3 token from the person's device, action `send_code`. The sandbox does not check it."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/resend-code",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "resend-code"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Sends the pending reset code again.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken is required.\", }\n- `429` { \"success\": \"<false>\", \"message\": `Please wait …s before requesting another code.`, \"retryAfterSec\": \"<throttle.retryAfterSec>\", }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<message>\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n- `429` { \"success\": \"<false>\", \"code\": \"partner_code_limit\", \"message\": \"Too many verification requests for this credential. Retry after 120s.\", \"retryAfterSec\": 120 }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    },
    {
     "name": "POST password-reset/complete",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "auth",
        "password-reset",
        "complete"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"message\": \"Logged in successfully.\",\n  \"success\": true,\n  \"signedIn\": true,\n  \"user\": {\n    \"id\": \"2a091c735678f65911a13d4b\",\n    \"email\": \"patient@example.com\",\n    \"name\": \"Jane Doe\",\n    \"gender\": \"female\",\n    \"accountId\": 96,\n    \"clinic\": {\n      \"accountId\": 96,\n      \"facilityId\": 1204,\n      \"facilityName\": \"Health Nexus\"\n    }\n  },\n  \"terms\": {\n    \"accepted\": false,\n    \"acceptedAt\": null,\n    \"url\": \"https://portal.health-nexus.com/terms\"\n  },\n  \"link\": {\n    \"partnerId\": \"your-partner-id\",\n    \"created\": false\n  },\n  \"passwordSet\": true\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Request body is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/auth/password-reset/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "auth",
          "password-reset",
          "complete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"verificationToken\": \"{{verificationToken}}\",\n  \"password\": \"{{userPassword}}\",\n  \"email\": \"{{subjectEmail}}\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the new password. With `email`, the person is signed in at once (`signedIn: true`); otherwise, or if the sign-in could not be finished, the reply says `passwordSet: true, signedIn: false` and you call **POST sign-in**.\n\n**Body (JSON):**\n\n- `verificationToken`\n- `password`\n- `email`\n- `accountId` — *Optional.* `preferred.accountId` from the check-email reply, when it had one: the account the password is reset at. Send the same value on every step of the reset.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Request body is required.\" }\n- `400` { \"message\": \"verificationToken and password are required.\", }\n- `400` { \"success\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n- `400` { \"success\": \"<false>\", \"code\": \"<failure.code>\", \"message\": failure.code === \"sign_in_failed\" ? \"We couldn\"t save that password. Please try again.\" : \"<failure.message>\", }\n- `401` { \"message\": \"Unauthorized\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n- `400` { \"message\": \"Request body is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) only. There is no subject yet: the person's email travels in the body. Every POST here needs the `write` scope. The reply never carries a session token."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep what the next step needs.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.verificationToken) pm.collectionVariables.set('verificationToken', j.verificationToken);",
         "if (j.identityToken) pm.collectionVariables.set('identityToken', j.identityToken);",
         "if (j.user && j.user.accountId) pm.collectionVariables.set('subjectAccountId', String(j.user.accountId));"
        ]
       }
      }
     ]
    }
   ],
   "description": "Bring your users onto Health Nexus with the steps our own site and app use: check the email, then sign in, sign up or reset the password. These calls carry only your key (the `write` scope): the person's email travels in the body, and no `X-Subject-*` header is needed. A finished sign-in returns no session token: it links the person to your credential, and from then on you call every other folder with `X-Subject-Email`. Run the requests top to bottom; each saves `verificationToken` / `identityToken` for the next one."
  },
  {
   "name": "Terms of Service",
   "item": [
    {
     "name": "GET partner/terms",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/terms",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "terms"
       ]
      },
      "description": "Whether the person has accepted the Health Nexus Terms of Service, and where the terms can be read. A person who signed in through your integration must accept before any data endpoint answers (those reply 403 `terms_required` until then).\n\n**Possible errors:**\n\n- `404` { \"message\": \"Subject user not found.\" }\n- `403` { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms"
         ]
        },
        "description": "Whether the person has accepted the Health Nexus Terms of Service, and where the terms can be read. A person who signed in through your integration must accept before any data endpoint answers (those reply 403 `terms_required` until then).\n\n**Possible errors:**\n\n- `404` { \"message\": \"Subject user not found.\" }\n- `403` { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"accepted\": true,\n  \"acceptedAt\": \"2026-08-30T19:39:20.427Z\",\n  \"url\": \"https://portal.health-nexus.com/terms\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms"
         ]
        },
        "description": "Whether the person has accepted the Health Nexus Terms of Service, and where the terms can be read. A person who signed in through your integration must accept before any data endpoint answers (those reply 403 `terms_required` until then).\n\n**Possible errors:**\n\n- `404` { \"message\": \"Subject user not found.\" }\n- `403` { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Subject user not found.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms"
         ]
        },
        "description": "Whether the person has accepted the Health Nexus Terms of Service, and where the terms can be read. A person who signed in through your integration must accept before any data endpoint answers (those reply 403 `terms_required` until then).\n\n**Possible errors:**\n\n- `404` { \"message\": \"Subject user not found.\" }\n- `403` { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms"
         ]
        },
        "description": "Whether the person has accepted the Health Nexus Terms of Service, and where the terms can be read. A person who signed in through your integration must accept before any data endpoint answers (those reply 403 `terms_required` until then).\n\n**Possible errors:**\n\n- `404` { \"message\": \"Subject user not found.\" }\n- `403` { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms"
         ]
        },
        "description": "Whether the person has accepted the Health Nexus Terms of Service, and where the terms can be read. A person who signed in through your integration must accept before any data endpoint answers (those reply 403 `terms_required` until then).\n\n**Possible errors:**\n\n- `404` { \"message\": \"Subject user not found.\" }\n- `403` { \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST accept",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "partner",
        "terms",
        "accept"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms",
          "accept"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"accepted\": true,\n  \"acceptedAt\": \"2026-08-30T19:39:20.427Z\",\n  \"recorded\": false\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms",
          "accept"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms",
          "accept"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Partner credential is read-only.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms",
          "accept"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms",
          "accept"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/partner/terms/accept",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "partner",
          "terms",
          "accept"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"signedName\": \"Jane Doe\",\n  \"userIp\": \"203.0.113.7\",\n  \"userAgent\": \"AcmeHealth/2.1 (iOS 18.1)\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Records that the person accepted the terms in your app. Show them the terms (`url` from GET partner/terms), have them type their name, and send it with their own IP address and device. Only the first acceptance is kept: a later call answers `recorded: false` and changes nothing.\n\n**Body (JSON):**\n\n- `signedName` — The name the person typed to agree. Required.\n- `userIp` — The person's own IP address, as your app saw it.\n- `userAgent` — The person's device or browser.\n\n**Possible errors:**\n\n- `400` { \"message\": \"signedName is \"required\": the name the person typed to accept the terms.\", \"field\": \"signedName\" }\n- `400` { \"message\": \"userIp must be an IP address.\", \"field\": \"userIp\" }\n- `403` { \"message\": \"Partner credential is read-only.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Read whether a person has accepted the Health Nexus terms, and record their acceptance from your app. A person must accept before the data folders answer (403 `terms_required` until then)."
  },
  {
   "name": "User",
   "item": [
    {
     "name": "GET ftp-sync-status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/ftp-sync-status",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "ftp-sync-status"
       ]
      },
      "description": "Whether the person's lab results are being brought in from their clinic right now: how many imports are running, and the details of the latest one.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/ftp-sync-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "ftp-sync-status"
         ]
        },
        "description": "Whether the person's lab results are being brought in from their clinic right now: how many imports are running, and the details of the latest one.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"isFtpUser\": true,\n  \"showSyncBar\": false,\n  \"activeFtpJobCount\": 0,\n  \"activeFtpLabJobCount\": 0,\n  \"latestFtpJob\": {\n    \"status\": \"done\",\n    \"phase\": \"notes\",\n    \"lastError\": null,\n    \"startedAt\": \"2026-11-26T19:24:23.523Z\",\n    \"completedAt\": \"2026-11-26T19:24:26.080Z\",\n    \"updatedAt\": \"2026-11-26T19:24:26.080Z\"\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/ftp-sync-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "ftp-sync-status"
         ]
        },
        "description": "Whether the person's lab results are being brought in from their clinic right now: how many imports are running, and the details of the latest one.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/ftp-sync-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "ftp-sync-status"
         ]
        },
        "description": "Whether the person's lab results are being brought in from their clinic right now: how many imports are running, and the details of the latest one.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/ftp-sync-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "ftp-sync-status"
         ]
        },
        "description": "Whether the person's lab results are being brought in from their clinic right now: how many imports are running, and the details of the latest one.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/ftp-sync-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "ftp-sync-status"
         ]
        },
        "description": "Whether the person's lab results are being brought in from their clinic right now: how many imports are running, and the details of the latest one.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET pinned-biomarkers",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-biomarkers"
       ]
      },
      "description": "Retrieve pinned biomarkers (selected lab results for quick access).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "description": "Retrieve pinned biomarkers (selected lab results for quick access).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"WBC\"\n    }\n  ],\n  \"unpinnedBiomarkers\": [\n    {\n      \"name\": \"Free Testosterone\"\n    },\n    {\n      \"name\": \"Vitamin D, 25-OH\"\n    },\n    {\n      \"name\": \"Apolipoprotein B\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "description": "Retrieve pinned biomarkers (selected lab results for quick access).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "description": "Retrieve pinned biomarkers (selected lab results for quick access).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "description": "Retrieve pinned biomarkers (selected lab results for quick access).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "description": "Retrieve pinned biomarkers (selected lab results for quick access).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST pinned-biomarkers",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-biomarkers"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"WBC\"\n    }\n  ],\n  \"unpinnedBiomarkers\": [\n    {\n      \"name\": \"Free Testosterone\"\n    },\n    {\n      \"name\": \"Vitamin D, 25-OH\"\n    },\n    {\n      \"name\": \"Apolipoprotein B\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<pinnedResult.message >\"}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-biomarkers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-biomarkers"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedBiomarkers\": [\n    {\n      \"name\": \"Glucose\"\n    },\n    {\n      \"name\": \"HbA1c\"\n    }\n  ],\n  \"unpinnedBiomarkers\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned biomarkers (deduplicates by lowercase name).\n\n`unpinnedBiomarkers` (biomarkers the patient hid from the default set) is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET pinned-dashboard-items",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-dashboard-items"
       ]
      },
      "description": "The category cards the person pinned to their home view.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "description": "The category cards the person pinned to their home view.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedDashboardItems\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "description": "The category cards the person pinned to their home view.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "description": "The category cards the person pinned to their home view.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "description": "The category cards the person pinned to their home view.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "description": "The category cards the person pinned to their home view.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST pinned-dashboard-items",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-dashboard-items"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedDashboardItems\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"pinnedDashboardItems must be an array.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-dashboard-items",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-dashboard-items"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedDashboardItems\": [\n    {\n      \"type\": \"category\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the category cards the person pinned. A category listed twice is kept once.\n\n`type` must be `category`; `category` is one of the category names (see `PUT /category-recommendations/category-order`).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedDashboardItems must be an array.\" }\n- `400` { \"message\": \"Each pinnedDashboardItems item must be an object.\" }\n- `400` { \"message\": `Invalid \"type\": …` }\n- `400` { \"message\": \"category must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET pinned-metrics",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-metrics"
       ]
      },
      "description": "The wearable metrics the person chose to show first.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "description": "The wearable metrics the person chose to show first.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedMetrics\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "description": "The wearable metrics the person chose to show first.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "description": "The wearable metrics the person chose to show first.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "description": "The wearable metrics the person chose to show first.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "description": "The wearable metrics the person chose to show first.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST pinned-metrics",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-metrics"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedMetrics\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"pinnedMetrics must be an array.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-metrics",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-metrics"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedMetrics\": [\n    {\n      \"metricId\": \"sleep.total_hours\",\n      \"provider\": \"oura\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the person's pinned wearable metrics, in order. Each item is `{ metricId, provider }`. A metric listed twice for the same provider is kept once.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"pinnedMetrics must be an array.\" }\n- `400` { \"message\": \"Each pinnedMetrics item must be an object.\" }\n- `400` { \"message\": \"metricId must be a non-empty string.\" }\n- `400` { \"message\": \"provider must be a non-empty string.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET pinned-scoring-indicators",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-scoring-indicators"
       ]
      },
      "description": "Retrieve pinned scoring indicators (wellness/health scoring metrics to highlight).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "description": "Retrieve pinned scoring indicators (wellness/health scoring metrics to highlight).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedScoringIndicators\": [],\n  \"unpinnedScoringIndicators\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "description": "Retrieve pinned scoring indicators (wellness/health scoring metrics to highlight).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "description": "Retrieve pinned scoring indicators (wellness/health scoring metrics to highlight).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "description": "Retrieve pinned scoring indicators (wellness/health scoring metrics to highlight).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "description": "Retrieve pinned scoring indicators (wellness/health scoring metrics to highlight).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST pinned-scoring-indicators",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "pinned-scoring-indicators"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pinnedScoringIndicators\": [],\n  \"unpinnedScoringIndicators\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<pinnedResult.message >\"}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/pinned-scoring-indicators",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "pinned-scoring-indicators"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"pinnedScoringIndicators\": [\n    {\n      \"indicatorId\": \"<indicator id>\"\n    }\n  ],\n  \"unpinnedScoringIndicators\": []\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or update pinned scoring indicators (deduplicates by trimmed indicatorId).\n\n`unpinnedScoringIndicators` is optional and only updated when present.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"<pinnedResult.message >\"}\n- `400` { \"message\": \"<unpinnedResult.message >\"}\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET unit-system",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/unit-system",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "unit-system"
       ]
      },
      "description": "The patient's display unit system for lab values: `us` (mg/dL, ng/mL …) or `si`. Display-only — readings are stored as the lab reported them.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "description": "The patient's display unit system for lab values: `us` (mg/dL, ng/mL …) or `si`. Display-only — readings are stored as the lab reported them.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"unitSystem\": \"us\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "description": "The patient's display unit system for lab values: `us` (mg/dL, ng/mL …) or `si`. Display-only — readings are stored as the lab reported them.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "description": "The patient's display unit system for lab values: `us` (mg/dL, ng/mL …) or `si`. Display-only — readings are stored as the lab reported them.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "description": "The patient's display unit system for lab values: `us` (mg/dL, ng/mL …) or `si`. Display-only — readings are stored as the lab reported them.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "description": "The patient's display unit system for lab values: `us` (mg/dL, ng/mL …) or `si`. Display-only — readings are stored as the lab reported them.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH unit-system",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/user/unit-system",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "user",
        "unit-system"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"system\": \"us\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"system\": \"us\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"unitSystem\": \"us\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"system\": \"us\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"system must be \"us\" or \"si\"\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"system\": \"us\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"system\": \"us\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"system\": \"us\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/user/unit-system",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "user",
          "unit-system"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"system\": \"us\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Set the display unit system for this patient. Changes how lab responses are rendered; never changes stored readings.\n\n**Body (JSON):**\n\n- `system` — `us` or `si`\n\n**Possible errors:**\n\n- `400` { \"message\": \"system must be \"us\" or \"si\"\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's own settings: pinned biomarkers, pinned categories, wearable metrics and scoring indicators; the unit system; the state of the import from their clinic."
  },
  {
   "name": "Dashboard Health",
   "item": [
    {
     "name": "GET category-breakdown/:category",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "dashboard-health",
        "category-breakdown",
        ":category"
       ],
       "variable": [
        {
         "key": "category",
         "value": "<category>"
        }
       ]
      },
      "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"category\": {\n    \"name\": \"string\"\n  },\n  \"score\": {\n    \"finalScore\": \"number (0-100)\",\n    \"maxScore\": 100,\n    \"componentCount\": \"number\",\n    \"inputs\": [\n      {\n        \"source\": \"questionnaire|biomarker|wearable|computed\",\n        \"name\": \"string\",\n        \"normalizedScore\": \"number (0-100)\"\n      }\n    ]\n  },\n  \"factors\": {\n    \"biomarkers\": [\n      {\n        \"biomarkerName\": \"string\",\n        \"score\": \"number or null\",\n        \"maxScore\": \"number\",\n        \"latestValue\": \"string\",\n        \"latestUnit\": \"string or null\",\n        \"latestDate\": \"ISO timestamp or null\",\n        \"valueType\": \"string or null\",\n        \"rangeCategory\": \"poor|fair|optimal|null\"\n      }\n    ],\n    \"wearables\": [\n      {\n        \"metricId\": \"string\",\n        \"metricName\": \"string\",\n        \"score\": \"number\",\n        \"maxScore\": \"number\",\n        \"currentValue\": \"number\",\n        \"currentUnit\": \"string\",\n        \"provider\": \"string\"\n      }\n    ],\n    \"questionnaires\": [\n      {\n        \"questionnaireId\": \"string\",\n        \"title\": \"string\",\n        \"slug\": \"string\",\n        \"score\": \"number\",\n        \"maxScore\": \"number\",\n        \"completedAt\": \"ISO timestamp or null\",\n        \"responses\": [\n          {\n            \"questionId\": \"string\",\n            \"sectionId\": \"string or null\",\n            \"title\": \"string\",\n            \"question\": \"string or null\",\n            \"answer\": \"string or null\",\n            \"score\": \"number or null\",\n            \"maxPoints\": \"number or null\"\n          }\n        ],\n        \"isActive\": \"boolean\"\n      }\n    ],\n    \"computedMetrics\": [\n      {\n        \"metricId\": \"string\",\n        \"name\": \"string\",\n        \"score\": \"number\",\n        \"maxScore\": \"number\",\n        \"biologicalAge\": \"number or null\",\n        \"chronologicalAge\": \"number or null\",\n        \"ageDifference\": \"number or null\"\n      }\n    ]\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category is required\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-breakdown/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-breakdown",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Deep dive into a single category's score breakdown: shows all biomarker readings, wearable metrics, questionnaire responses, and computed metrics (e.g. PhenoAge) that feed the category score. URL-decodes category param.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-encoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET category-scores",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "dashboard-health",
        "category-scores"
       ],
       "query": [
        {
         "key": "category",
         "value": "",
         "disabled": true,
         "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
        }
       ]
      },
      "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-scores"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
          }
         ]
        },
        "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"data\": {\n    \"categories\": {\n      \"[categoryName]\": {\n        \"categoryScore\": \"number (0-100)\",\n        \"categoryRangeCategory\": \"poor|fair|optimal|null\",\n        \"indicators\": [\n          {\n            \"id\": \"string\",\n            \"name\": \"string\",\n            \"description\": \"string\",\n            \"score\": \"number (0-100)\",\n            \"rangeCategory\": \"poor|fair|optimal|null\",\n            \"lastDataDate\": \"ISO timestamp or null\",\n            \"biomarkerNames\": [\n              \"string\"\n            ],\n            \"questionnaireIds\": [\n              \"string\"\n            ],\n            \"wearableMetricIds\": [\n              \"string\"\n            ],\n            \"computedMetricIds\": [\n              \"string\"\n            ],\n            \"singleQuestionnaire\": {\n              \"questionnaireId\": \"string\",\n              \"slug\": \"string\",\n              \"title\": \"string\",\n              \"taken\": \"boolean\"\n            },\n            \"phenoAge\": {\n              \"biologicalAge\": \"number\",\n              \"chronologicalAge\": \"number\",\n              \"ageDifference\": \"number\"\n            }\n          }\n        ]\n      }\n    }\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-scores"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
          }
         ]
        },
        "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-scores"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
          }
         ]
        },
        "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-scores"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
          }
         ]
        },
        "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-scores"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
          }
         ]
        },
        "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/dashboard-health/category-scores?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "dashboard-health",
          "category-scores"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to one category name or slug; returns 404 if not found"
          }
         ]
        },
        "description": "A wellness score for each health category, or for one category. Each score comes with its indicators and what fed them: biomarkers, questionnaire answers, wearable data and computed values.\n\n**Query parameters:**\n\n- `category` — string, optional: Filter to one category name or slug; returns 404 if not found\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Category scores for the dashboard and the breakdown behind one category."
  },
  {
   "name": "Lab Data",
   "item": [
    {
     "name": "GET biomarker-counts",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/biomarker-counts",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "biomarker-counts"
       ]
      },
      "description": "Totals for a summary header: all biomarkers, how many are in range (latest reading optimal), out of range (latest reading fair or poor) and unclassified (no numeric range).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/biomarker-counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "biomarker-counts"
         ]
        },
        "description": "Totals for a summary header: all biomarkers, how many are in range (latest reading optimal), out of range (latest reading fair or poor) and unclassified (no numeric range).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"totalCount\": 53,\n  \"inRangeCount\": 36,\n  \"outOfRangeCount\": 9,\n  \"unclassifiedCount\": 8,\n  \"updatedAt\": \"2026-11-30T19:41:22.525Z\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/biomarker-counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "biomarker-counts"
         ]
        },
        "description": "Totals for a summary header: all biomarkers, how many are in range (latest reading optimal), out of range (latest reading fair or poor) and unclassified (no numeric range).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/biomarker-counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "biomarker-counts"
         ]
        },
        "description": "Totals for a summary header: all biomarkers, how many are in range (latest reading optimal), out of range (latest reading fair or poor) and unclassified (no numeric range).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/biomarker-counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "biomarker-counts"
         ]
        },
        "description": "Totals for a summary header: all biomarkers, how many are in range (latest reading optimal), out of range (latest reading fair or poor) and unclassified (no numeric range).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/biomarker-counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "biomarker-counts"
         ]
        },
        "description": "Totals for a summary header: all biomarkers, how many are in range (latest reading optimal), out of range (latest reading fair or poor) and unclassified (no numeric range).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET category-biomarker-scores",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/category-biomarker-scores",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "category-biomarker-scores"
       ]
      },
      "description": "A health score from 0 to 100 for each biomarker, grouped by category.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/category-biomarker-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "category-biomarker-scores"
         ]
        },
        "description": "A health score from 0 to 100 for each biomarker, grouped by category.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"string\",\n  \"email\": \"string\",\n  \"hasData\": \"boolean\",\n  \"categoryScores\": {\n    \"[categoryName]\": [\n      {\n        \"biomarkerName\": \"string\",\n        \"score\": \"number\",\n        \"maxScore\": \"number\"\n      }\n    ]\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/category-biomarker-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "category-biomarker-scores"
         ]
        },
        "description": "A health score from 0 to 100 for each biomarker, grouped by category.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/category-biomarker-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "category-biomarker-scores"
         ]
        },
        "description": "A health score from 0 to 100 for each biomarker, grouped by category.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/category-biomarker-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "category-biomarker-scores"
         ]
        },
        "description": "A health score from 0 to 100 for each biomarker, grouped by category.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/category-biomarker-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "category-biomarker-scores"
         ]
        },
        "description": "A health score from 0 to 100 for each biomarker, grouped by category.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET pending",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/pending",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "pending"
       ]
      },
      "description": "Lab orders placed through the person's clinic that have no result yet, fetched live. When the person's account is not connected to a clinic, the reply is `{ items: [], connected: false }` rather than an error.\n\n**Possible errors:**\n\n- `502` { \"items\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending"
         ]
        },
        "description": "Lab orders placed through the person's clinic that have no result yet, fetched live. When the person's account is not connected to a clinic, the reply is `{ items: [], connected: false }` rather than an error.\n\n**Possible errors:**\n\n- `502` { \"items\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"items\": [],\n  \"connected\": true,\n  \"totalCount\": 0\n}"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending"
         ]
        },
        "description": "Lab orders placed through the person's clinic that have no result yet, fetched live. When the person's account is not connected to a clinic, the reply is `{ items: [], connected: false }` rather than an error.\n\n**Possible errors:**\n\n- `502` { \"items\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"items\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending"
         ]
        },
        "description": "Lab orders placed through the person's clinic that have no result yet, fetched live. When the person's account is not connected to a clinic, the reply is `{ items: [], connected: false }` rather than an error.\n\n**Possible errors:**\n\n- `502` { \"items\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending"
         ]
        },
        "description": "Lab orders placed through the person's clinic that have no result yet, fetched live. When the person's account is not connected to a clinic, the reply is `{ items: [], connected: false }` rather than an error.\n\n**Possible errors:**\n\n- `502` { \"items\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending"
         ]
        },
        "description": "Lab orders placed through the person's clinic that have no result yet, fetched live. When the person's account is not connected to a clinic, the reply is `{ items: [], connected: false }` rather than an error.\n\n**Possible errors:**\n\n- `502` { \"items\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET pending/:orderId",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "pending",
        ":orderId"
       ],
       "variable": [
        {
         "key": "orderId",
         "value": "",
         "description": "the order's id from GET /lab/pending"
        }
       ]
      },
      "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending",
          ":orderId"
         ],
         "variable": [
          {
           "key": "orderId",
           "value": "",
           "description": "the order's id from GET /lab/pending"
          }
         ]
        },
        "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"connected\": \"<false >\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending",
          ":orderId"
         ],
         "variable": [
          {
           "key": "orderId",
           "value": "",
           "description": "the order's id from GET /lab/pending"
          }
         ]
        },
        "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Order not found.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending",
          ":orderId"
         ],
         "variable": [
          {
           "key": "orderId",
           "value": "",
           "description": "the order's id from GET /lab/pending"
          }
         ]
        },
        "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending",
          ":orderId"
         ],
         "variable": [
          {
           "key": "orderId",
           "value": "",
           "description": "the order's id from GET /lab/pending"
          }
         ]
        },
        "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending",
          ":orderId"
         ],
         "variable": [
          {
           "key": "orderId",
           "value": "",
           "description": "the order's id from GET /lab/pending"
          }
         ]
        },
        "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/pending/:orderId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "pending",
          ":orderId"
         ],
         "variable": [
          {
           "key": "orderId",
           "value": "",
           "description": "the order's id from GET /lab/pending"
          }
         ]
        },
        "description": "The full detail of one pending lab order: its tests and status. Same `connected: false` shape when the person's account is not connected to a clinic.\n\n**Path parameters:**\n\n- `orderId` — the order's id from GET /lab/pending\n\n**Possible errors:**\n\n- `404` { \"error\": \"Order not found.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET user-summary",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/user-summary",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "user-summary"
       ]
      },
      "description": "Get all deduplicated lab biomarkers for the patient, with metadata (ranges, category roles, etc.). Returns empty object if no summary exists.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary"
         ]
        },
        "description": "Get all deduplicated lab biomarkers for the patient, with metadata (ranges, category roles, etc.). Returns empty object if no summary exists.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"email\": \"patient@example.com\",\n  \"biomarkers\": {\n    \"WBC\": [\n      {\n        \"value\": \"5.8\",\n        \"raw_name\": \"WBC\",\n        \"unit\": \"x10E3/uL\",\n        \"date\": \"2026-11-10\"\n      }\n    ],\n    \"RBC\": [\n      {\n        \"value\": \"4.62\",\n        \"raw_name\": \"RBC\",\n        \"unit\": \"x10E6/uL\",\n        \"date\": \"2026-11-10\"\n      }\n    ],\n    \"Hemoglobin\": [\n      {\n        \"value\": \"14.1\",\n        \"raw_name\": \"Hemoglobin\",\n        \"unit\": \"g/dL\",\n        \"date\": \"2026-11-10\"\n      }\n    ],\n    \"Hematocrit\": [\n      {\n        \"value\": \"42.0\",\n        \"raw_name\": \"Hematocrit\",\n        \"unit\": \"%\",\n        \"date\": \"2026-11-10\"\n      }\n    ]\n  },\n  \"hasData\": true,\n  \"updatedAt\": \"2026-12-01T21:24:58.332Z\",\n  \"biomarkerMeta\": {\n    \"WBC\": {\n      \"biomarkerId\": \"693c63ba7aa95b077573fb38\",\n      \"description\": \"WBC, or White Blood Cell count, measures the concentration o…\",\n      \"ranges\": {\n        \"unit\": \"K/uL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 4.23,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"Immune Health\",\n        \"…\"\n      ]\n    },\n    \"RBC\": {\n      \"biomarkerId\": \"c7bc08fb7c28e007f98af561\",\n      \"description\": \"The Red Blood Cell (RBC) count measures the number of red bl…\",\n      \"ranges\": {\n        \"unit\": \"M/uL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 4.63,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"CV (Heart) Health\",\n        \"…\"\n      ]\n    },\n    \"Hemoglobin\": {\n      \"biomarkerId\": \"8897eda8eccecb8496b31fe5\",\n      \"description\": \"Hemoglobin, measured in grams per deciliter (g/dL), quantifi…\",\n      \"ranges\": {\n        \"unit\": \"g/dL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 13.7,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"CV (Heart) Health\",\n        \"…\"\n      ]\n    },\n    \"Hematocrit\": {\n      \"biomarkerId\": \"3c57b2e90a4f91b997ab5a78\",\n      \"description\": \"Hematocrit measures the percentage of red blood cells in the…\",\n      \"ranges\": {\n        \"unit\": \"%\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 40.1,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"CV (Heart) Health\",\n        \"…\"\n      ]\n    }\n  },\n  \"pagination\": {\n    \"totalCount\": 53,\n    \"currentPage\": 1,\n    \"pageSize\": 53,\n    \"hasMore\": false\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary"
         ]
        },
        "description": "Get all deduplicated lab biomarkers for the patient, with metadata (ranges, category roles, etc.). Returns empty object if no summary exists.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary"
         ]
        },
        "description": "Get all deduplicated lab biomarkers for the patient, with metadata (ranges, category roles, etc.). Returns empty object if no summary exists.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary"
         ]
        },
        "description": "Get all deduplicated lab biomarkers for the patient, with metadata (ranges, category roles, etc.). Returns empty object if no summary exists.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary"
         ]
        },
        "description": "Get all deduplicated lab biomarkers for the patient, with metadata (ranges, category roles, etc.). Returns empty object if no summary exists.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET user-summary/category",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "user-summary",
        "category"
       ],
       "query": [
        {
         "key": "category",
         "value": "",
         "disabled": false,
         "description": "string, required: Category name to filter by"
        }
       ]
      },
      "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "category"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "string, required: Category name to filter by"
          }
         ]
        },
        "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"email\": \"patient@example.com\",\n  \"biomarkers\": {\n    \"Transglutaminase 2 IgA\": [\n      {\n        \"value\": \"3.1\",\n        \"raw_name\": \"Tissue Transglutaminase IgA\",\n        \"unit\": \"U/mL\",\n        \"date\": \"2026-10-20\"\n      },\n      \"…\"\n    ],\n    \"Glucose\": [\n      {\n        \"value\": \"95\",\n        \"raw_name\": \"Glucose\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-10\"\n      },\n      \"…\"\n    ],\n    \"Vitamin D, 25-OH\": [\n      {\n        \"value\": \"45.6\",\n        \"raw_name\": \"Vitamin D, 25-OH\",\n        \"unit\": \"ng/mL\",\n        \"date\": \"2026-11-10\"\n      },\n      \"…\"\n    ],\n    \"Free T3\": [\n      {\n        \"value\": \"2.3\",\n        \"raw_name\": \"Free T3\",\n        \"unit\": \"pg/mL\",\n        \"date\": \"2026-11-10\"\n      }\n    ]\n  },\n  \"hasData\": true,\n  \"updatedAt\": \"2026-12-01T21:24:58.332Z\",\n  \"biomarkerMeta\": {\n    \"Transglutaminase 2 IgA\": {\n      \"biomarkerId\": \"eb1ff7a1367c23909baec2a3\",\n      \"description\": \"Transglutaminase 2 IgA measures antibodies against tissue tr…\",\n      \"ranges\": {\n        \"unit\": \"\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 4,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"Gut Health\",\n        \"…\"\n      ]\n    },\n    \"Glucose\": {\n      \"biomarkerId\": \"fd9631889b25248297480850\",\n      \"description\": \"Glucose, measured in mg/dL, indicates blood sugar levels, a …\",\n      \"ranges\": {\n        \"unit\": \"mg/dL\",\n        \"categories\": [\n          {\n            \"min\": 100,\n            \"max\": 70,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"CV (Heart) Health\",\n        \"…\"\n      ]\n    },\n    \"Vitamin D, 25-OH\": {\n      \"biomarkerId\": \"5ec1b8e96f71c71b394860ad\",\n      \"description\": \"Vitamin D, 25-OH measures 25-hydroxyvitamin D levels in the …\",\n      \"ranges\": {\n        \"unit\": \"ng/mL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 50,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"Inflammation\",\n        \"…\"\n      ]\n    },\n    \"Free T3\": {\n      \"biomarkerId\": \"987e5b9ee2efe19a1a204299\",\n      \"description\": \"Free T3, measured in pg/mL, evaluates the level of unbound t…\",\n      \"ranges\": {\n        \"unit\": \"pg/mL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 2,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\"\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"CV (Heart) Health\",\n        \"…\"\n      ]\n    }\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "category"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "string, required: Category name to filter by"
          }
         ]
        },
        "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "category"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "string, required: Category name to filter by"
          }
         ]
        },
        "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category parameter is required\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "category"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "string, required: Category name to filter by"
          }
         ]
        },
        "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "category"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "string, required: Category name to filter by"
          }
         ]
        },
        "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/category?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "category"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "string, required: Category name to filter by"
          }
         ]
        },
        "description": "Get biomarkers filtered to a specific category (only those with categoryAssignments matching the category).\n\n**Query parameters:**\n\n- `category` — string, required: Category name to filter by\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category parameter is required\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET user-summary/pinned",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/user-summary/pinned",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "user-summary",
        "pinned"
       ]
      },
      "description": "Get deduplicated pinned biomarkers only (subset of all biomarkers the patient has pinned). Matches names case-insensitively against all available biomarkers.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/pinned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "pinned"
         ]
        },
        "description": "Get deduplicated pinned biomarkers only (subset of all biomarkers the patient has pinned). Matches names case-insensitively against all available biomarkers.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"email\": \"patient@example.com\",\n  \"biomarkers\": {\n    \"WBC\": [\n      {\n        \"value\": \"5.8\",\n        \"raw_name\": \"WBC\",\n        \"unit\": \"x10E3/uL\",\n        \"date\": \"2026-11-10\",\n        \"lab_company\": \"Sample Diagnostics Lab (fictional)\",\n        \"report_id\": \"f8fef9866e8f3d9761e62b36\",\n        \"source\": \"pdf\",\n        \"rangeCategory\": \"optimal\"\n      }\n    ],\n    \"Estradiol\": [\n      {\n        \"value\": \"23.1\",\n        \"raw_name\": \"Estradiol\",\n        \"unit\": \"pg/mL\",\n        \"date\": \"2026-11-10\",\n        \"lab_company\": \"Sample Diagnostics Lab (fictional)\",\n        \"report_id\": \"f8fef9866e8f3d9761e62b36\",\n        \"source\": \"pdf\",\n        \"rangeCategory\": \"poor\",\n        \"rangeDirection\": \"low\"\n      }\n    ],\n    \"Creatinine\": [\n      {\n        \"value\": \"0.95\",\n        \"raw_name\": \"Creatinine\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-10\",\n        \"lab_company\": \"Sample Diagnostics Lab (fictional)\",\n        \"report_id\": \"f8fef9866e8f3d9761e62b36\",\n        \"source\": \"pdf\",\n        \"rangeCategory\": \"optimal\"\n      },\n      \"…\"\n    ],\n    \"HDL Cholesterol\": [\n      {\n        \"value\": \"58\",\n        \"raw_name\": \"HDL Cholesterol\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-10\",\n        \"lab_company\": \"Sample Diagnostics Lab (fictional)\",\n        \"report_id\": \"f8fef9866e8f3d9761e62b36\",\n        \"source\": \"pdf\",\n        \"rangeCategory\": \"optimal\"\n      },\n      \"…\"\n    ]\n  },\n  \"hasData\": true,\n  \"updatedAt\": \"2026-12-01T21:24:58.332Z\",\n  \"biomarkerMeta\": {\n    \"WBC\": {\n      \"biomarkerId\": \"693c63ba7aa95b077573fb38\",\n      \"description\": \"WBC, or White Blood Cell count, measures the concentration of white blood cells in the blood, expressed in thousand cell…\",\n      \"ranges\": {\n        \"unit\": \"K/uL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 4.23,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\",\n            \"poorType\": \"both\",\n            \"tooLowMin\": 0,\n            \"tooHighMin\": 9.07,\n            \"tooHighMax\": 100\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"Immune Health\",\n        \"…\"\n      ],\n      \"categoryRoles\": {\n        \"Immune Health\": \"primary\",\n        \"Inflammation\": \"primary\",\n        \"Longevity\": \"secondary\"\n      },\n      \"hasRanges\": true\n    },\n    \"Estradiol\": {\n      \"biomarkerId\": \"a4ef2244fbf33a039f9e2145\",\n      \"description\": \"Estradiol, measured in pg/mL, is a primary estrogen hormone produced mainly in the ovaries. It is crucial for reproducti…\",\n      \"ranges\": {\n        \"unit\": \"pg/mL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 25.8,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\",\n            \"poorType\": \"both\",\n            \"tooLowMin\": null,\n            \"tooHighMin\": 60.7,\n            \"tooHighMax\": null\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"Hormone Health\"\n      ],\n      \"categoryRoles\": {\n        \"Hormone Health\": \"primary\"\n      },\n      \"hasRanges\": true\n    },\n    \"Creatinine\": {\n      \"biomarkerId\": \"6a9b051f98dcbccf5168a01c\",\n      \"description\": \"Creatinine measures the waste product from muscle metabolism, indicating kidney function. Clinically significant, it hel…\",\n      \"ranges\": {\n        \"unit\": \"mg/dL\",\n        \"categories\": [\n          {\n            \"min\": 1.3,\n            \"max\": 0.7,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\",\n            \"poorType\": \"both\",\n            \"tooLowMin\": 0,\n            \"tooHighMin\": 1.2,\n            \"tooHighMax\": 1000\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"Toxin Exposure\",\n        \"…\"\n      ],\n      \"categoryRoles\": {\n        \"Toxin Exposure\": \"secondary\",\n        \"Liver + Kidney Health\": \"primary\",\n        \"Longevity\": \"secondary\"\n      },\n      \"hasRanges\": true\n    },\n    \"HDL Cholesterol\": {\n      \"biomarkerId\": \"0f4bb34fa994ee2255cdc1bb\",\n      \"description\": \"HDL Cholesterol measures the concentration of high-density lipoprotein in the blood, expressed in mg/dL. Clinically sign…\",\n      \"ranges\": {\n        \"unit\": \"mg/dL\",\n        \"categories\": [\n          {\n            \"min\": null,\n            \"max\": 56,\n            \"category\": \"poor\",\n            \"color\": \"#EF4444\",\n            \"poorType\": \"tooLow\",\n            \"tooLowMin\": null,\n            \"tooHighMin\": null,\n            \"tooHighMax\": null\n          },\n          \"…\"\n        ]\n      },\n      \"categories\": [\n        \"CV (Heart) Health\",\n        \"…\"\n      ],\n      \"categoryRoles\": {\n        \"CV (Heart) Health\": \"primary\",\n        \"Nutrition + Metabolic Health\": \"secondary\"\n      },\n      \"hasRanges\": true\n    }\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/pinned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "pinned"
         ]
        },
        "description": "Get deduplicated pinned biomarkers only (subset of all biomarkers the patient has pinned). Matches names case-insensitively against all available biomarkers.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/pinned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "pinned"
         ]
        },
        "description": "Get deduplicated pinned biomarkers only (subset of all biomarkers the patient has pinned). Matches names case-insensitively against all available biomarkers.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/pinned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "pinned"
         ]
        },
        "description": "Get deduplicated pinned biomarkers only (subset of all biomarkers the patient has pinned). Matches names case-insensitively against all available biomarkers.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/user-summary/pinned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "user-summary",
          "pinned"
         ]
        },
        "description": "Get deduplicated pinned biomarkers only (subset of all biomarkers the patient has pinned). Matches names case-insensitively against all available biomarkers.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's lab summary (every biomarker with its readings and range), counts, category scores and pending lab orders."
  },
  {
   "name": "Reports",
   "item": [
    {
     "name": "GET :job_id/detail",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        ":job_id",
        "detail"
       ],
       "variable": [
        {
         "key": "job_id",
         "value": "<job_id>"
        }
       ]
      },
      "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"job_id\": \"00b7adba83bc992bab22fe1e\",\n  \"email\": \"patient@example.com\",\n  \"filename\": \"lab-report.pdf\",\n  \"status\": \"DONE\",\n  \"s3_key\": \"uploads/lab-report.pdf\",\n  \"pdf_available\": true,\n  \"file_type\": \"LAB_RESULTS\",\n  \"result_id\": \"81a3fbc254fbaed49cd5d077\",\n  \"job_created_at\": \"2026-11-30T19:41:11.889Z\",\n  \"job_updated_at\": \"2026-11-30T19:41:22.440Z\",\n  \"one_paragraph_summary\": \"(one paragraph about this report)\",\n  \"practice\": null,\n  \"lab_company\": \"Sample Diagnostics Lab\",\n  \"collection_dates\": [\n    \"2026-11-27\"\n  ],\n  \"report_created_at\": \"2026-11-30T19:41:18.881Z\",\n  \"grouped_results\": {\n    \"Glucose\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"76.0\",\n        \"unit\": \"mg/dL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"HbA1c\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"4.5\",\n        \"unit\": \"%\",\n        \"printed_name\": \"Hemoglobin A1c\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"Total Cholesterol\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"178.5\",\n        \"unit\": \"mg/dL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"LDL Cholesterol\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"66.3\",\n        \"unit\": \"mg/dL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"HDL Cholesterol\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"54.0\",\n        \"unit\": \"mg/dL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"Triglycerides\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"101.0\",\n        \"unit\": \"mg/dL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"TSH\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"3.9\",\n        \"unit\": \"uIU/mL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"Vitamin D, 25-OH\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"44.8\",\n        \"unit\": \"ng/mL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"Ferritin\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"270.9\",\n        \"unit\": \"ng/mL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ],\n    \"Creatinine\": [\n      {\n        \"name\": \"<name>\",\n        \"value\": \"1.1\",\n        \"unit\": \"mg/dL\",\n        \"page\": 0,\n        \"grounded\": true\n      }\n    ]\n  },\n  \"ungrouped_results\": [],\n  \"biomarkers\": {\n    \"TSH\": [\n      {\n        \"value\": \"3.9\",\n        \"raw_name\": \"TSH\",\n        \"unit\": \"uIU/mL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"Vitamin D, 25-OH\": [\n      {\n        \"value\": \"44.8\",\n        \"raw_name\": \"Vitamin D, 25-OH\",\n        \"unit\": \"ng/mL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"Glucose\": [\n      {\n        \"value\": \"76.0\",\n        \"raw_name\": \"Glucose\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"HbA1c\": [\n      {\n        \"value\": \"4.5\",\n        \"raw_name\": \"HbA1c\",\n        \"unit\": \"%\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"Creatinine\": [\n      {\n        \"value\": \"1.1\",\n        \"raw_name\": \"Creatinine\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"Ferritin\": [\n      {\n        \"value\": \"270.9\",\n        \"raw_name\": \"Ferritin\",\n        \"unit\": \"ng/mL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"Total Cholesterol\": [\n      {\n        \"value\": \"178.5\",\n        \"raw_name\": \"Total Cholesterol\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"LDL Cholesterol\": [\n      {\n        \"value\": \"66.3\",\n        \"raw_name\": \"LDL\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"HDL Cholesterol\": [\n      {\n        \"value\": \"54.0\",\n        \"raw_name\": \"HDL\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ],\n    \"Triglycerides\": [\n      {\n        \"value\": \"101.0\",\n        \"raw_name\": \"Triglycerides\",\n        \"unit\": \"mg/dL\",\n        \"date\": \"2026-11-27\",\n        \"lab_company\": \"Sample Diagnostics Lab\",\n        \"report_id\": \"81a3fbc254fbaed49cd5d077\",\n        \"source\": \"pdf\"\n      }\n    ]\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing required \"param\": job_id\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Report detail not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/detail",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "detail"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "description": "Get detailed view of a lab report (includes test results, biomarker extractions, etc.).\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `404` { \"error\": \"Report detail not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH :job_id/rename",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        ":job_id",
        "rename"
       ],
       "variable": [
        {
         "key": "job_id",
         "value": "<job_id>"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"job_id\": \"00b7adba83bc992bab22fe1e\",\n  \"filename\": \"lab-report.pdf\",\n  \"file_type\": \"LAB_RESULTS\",\n  \"result_id\": \"81a3fbc254fbaed49cd5d077\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing required \"param\": job_id\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Job not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"\"Forbidden\": Email mismatch\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Report not ready for rename\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/:job_id/rename",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          ":job_id",
          "rename"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "<job_id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"newFilename\": \"Quest CBC 2026-11.pdf\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Rename a lab report file.\n\n**Path parameters:**\n\n- `:job_id` (string, required) — Lab job ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": job_id\" }\n- `400` { \"message\": \"Missing or invalid \"field\": newFilename\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"\"Forbidden\": Email mismatch\" }\n- `409` { \"error\": \"Report not ready for rename\" }\n- `400` { \"message\": \"Invalid filename\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET by-result/:result_id",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "by-result",
        ":result_id"
       ],
       "variable": [
        {
         "key": "result_id",
         "value": "<result_id>"
        }
       ]
      },
      "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"job_id\": \"00b7adba83bc992bab22fe1e\",\n  \"result_id\": \"81a3fbc254fbaed49cd5d077\",\n  \"file_type\": \"LAB_RESULTS\",\n  \"filename\": \"lab-report.pdf\",\n  \"job_created_at\": \"2026-11-30T19:41:11.889Z\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing required \"param\": result_id\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Report mapping not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/by-result/:result_id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "by-result",
          ":result_id"
         ],
         "variable": [
          {
           "key": "result_id",
           "value": "<result_id>"
          }
         ]
        },
        "description": "Resolve a lab report by result ID (maps to job details for reports-page navigation).\n\n**Path parameters:**\n\n- `:result_id` (string, required) — Lab result ID\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"param\": result_id\" }\n- `404` { \"error\": \"Report mapping not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST cleanup-local",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "cleanup-local"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"string\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing required \"field\": job_id\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"LabJob not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"\"Forbidden\": LabJob does not belong to user\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/cleanup-local",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "cleanup-local"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete local LabJob record and clean associated biomarker entries from UserLabSummary.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"message\": \"LabJob not found\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob does not belong to user\" }\n- `403` { \"message\": \"\"Forbidden\": LabJob email does not match user\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST delete",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/delete",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "delete"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"ok\": true,\n  \"job_id\": \"string\",\n  \"file_type\": \"string\",\n  \"deleted\": {\n    \"pdf\": \"boolean\",\n    \"result_doc\": \"boolean\",\n    \"lab_job\": \"boolean\"\n  },\n  \"errors\": {\n    \"s3\": \"string or null\",\n    \"result_doc\": \"string or null\",\n    \"lab_job\": \"string or null\"\n  },\n  \"meta\": {\n    \"s3_key\": \"uploads/lab-report.pdf\",\n    \"filename\": \"string or null\",\n    \"result_id\": \"string or null\",\n    \"result_collection\": \"string or null\"\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing required \"field\": job_id\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Job not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Forbidden\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/delete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "delete"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Deletes a report: the file and every result that came from it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"field\": job_id\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST download-url",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/download-url",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "download-url"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"job_id\": \"00b7adba83bc992bab22fe1e\",\n  \"email\": \"patient@example.com\",\n  \"result_id\": \"81a3fbc254fbaed49cd5d077\",\n  \"s3_key\": \"uploads/lab-report.pdf\",\n  \"expires_in\": 300,\n  \"mode\": \"inline\",\n  \"downloadUrl\": \"https://example.com/…\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing required \"fields\": job_id and mode\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Job not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Forbidden\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Report not ready\", \"status\": \"<job.status >\"}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/download-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "download-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"job_id\": \"<job_id from POST /reports/list>\",\n  \"mode\": \"inline\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A short-lived link to a report's PDF.\n\n`mode` is `inline` (open in the browser) or `attachment` (download).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Missing required \"fields\": job_id and mode\" }\n- `400` { \"message\": \"Invalid mode. Must be \"inline\" or \"attachment\"\" }\n- `404` { \"error\": \"Job not found\" }\n- `403` { \"message\": \"Forbidden\" }\n- `409` { \"error\": \"Report not ready\", \"status\": \"<job.status >\"}\n- `404` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET in-progress",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/in-progress?dismissable=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "in-progress"
       ],
       "query": [
        {
         "key": "dismissable",
         "value": "",
         "disabled": false,
         "description": "`1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)"
        }
       ]
      },
      "description": "Uploads that have not become records yet, plus failed and on-hold ones. Rows still processing (`status: PROCESSING`) cover the last 24 hours. With `?dismissable=1` failed (`FAILED`) and on-hold (`BLOCKED`) rows stay for 30 days unless dismissed; without it they follow the 24-hour rule — send it only when your UI offers a Dismiss action. A failed row's `error` is the plain-words reason (a photo saved as a PDF, an empty or damaged file, a password-protected PDF, a time-out) and `error_code` the machine code (`PAGE_TOO_LARGE`, `EMPTY_FILE`, `UNREADABLE_PDF`, `PASSWORD_PROTECTED`, `TIMEOUT`, `EXTRACTION_FAILED`, `INTEGRATION_FAILED`). Manual uploads only — files delivered by a clinic never appear here.\n\n**Query parameters:**\n\n- `dismissable` — `1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress?dismissable=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress"
         ],
         "query": [
          {
           "key": "dismissable",
           "value": "",
           "disabled": false,
           "description": "`1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)"
          }
         ]
        },
        "description": "Uploads that have not become records yet, plus failed and on-hold ones. Rows still processing (`status: PROCESSING`) cover the last 24 hours. With `?dismissable=1` failed (`FAILED`) and on-hold (`BLOCKED`) rows stay for 30 days unless dismissed; without it they follow the 24-hour rule — send it only when your UI offers a Dismiss action. A failed row's `error` is the plain-words reason (a photo saved as a PDF, an empty or damaged file, a password-protected PDF, a time-out) and `error_code` the machine code (`PAGE_TOO_LARGE`, `EMPTY_FILE`, `UNREADABLE_PDF`, `PASSWORD_PROTECTED`, `TIMEOUT`, `EXTRACTION_FAILED`, `INTEGRATION_FAILED`). Manual uploads only — files delivered by a clinic never appear here.\n\n**Query parameters:**\n\n- `dismissable` — `1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"items\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress?dismissable=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress"
         ],
         "query": [
          {
           "key": "dismissable",
           "value": "",
           "disabled": false,
           "description": "`1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)"
          }
         ]
        },
        "description": "Uploads that have not become records yet, plus failed and on-hold ones. Rows still processing (`status: PROCESSING`) cover the last 24 hours. With `?dismissable=1` failed (`FAILED`) and on-hold (`BLOCKED`) rows stay for 30 days unless dismissed; without it they follow the 24-hour rule — send it only when your UI offers a Dismiss action. A failed row's `error` is the plain-words reason (a photo saved as a PDF, an empty or damaged file, a password-protected PDF, a time-out) and `error_code` the machine code (`PAGE_TOO_LARGE`, `EMPTY_FILE`, `UNREADABLE_PDF`, `PASSWORD_PROTECTED`, `TIMEOUT`, `EXTRACTION_FAILED`, `INTEGRATION_FAILED`). Manual uploads only — files delivered by a clinic never appear here.\n\n**Query parameters:**\n\n- `dismissable` — `1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress?dismissable=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress"
         ],
         "query": [
          {
           "key": "dismissable",
           "value": "",
           "disabled": false,
           "description": "`1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)"
          }
         ]
        },
        "description": "Uploads that have not become records yet, plus failed and on-hold ones. Rows still processing (`status: PROCESSING`) cover the last 24 hours. With `?dismissable=1` failed (`FAILED`) and on-hold (`BLOCKED`) rows stay for 30 days unless dismissed; without it they follow the 24-hour rule — send it only when your UI offers a Dismiss action. A failed row's `error` is the plain-words reason (a photo saved as a PDF, an empty or damaged file, a password-protected PDF, a time-out) and `error_code` the machine code (`PAGE_TOO_LARGE`, `EMPTY_FILE`, `UNREADABLE_PDF`, `PASSWORD_PROTECTED`, `TIMEOUT`, `EXTRACTION_FAILED`, `INTEGRATION_FAILED`). Manual uploads only — files delivered by a clinic never appear here.\n\n**Query parameters:**\n\n- `dismissable` — `1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress?dismissable=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress"
         ],
         "query": [
          {
           "key": "dismissable",
           "value": "",
           "disabled": false,
           "description": "`1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)"
          }
         ]
        },
        "description": "Uploads that have not become records yet, plus failed and on-hold ones. Rows still processing (`status: PROCESSING`) cover the last 24 hours. With `?dismissable=1` failed (`FAILED`) and on-hold (`BLOCKED`) rows stay for 30 days unless dismissed; without it they follow the 24-hour rule — send it only when your UI offers a Dismiss action. A failed row's `error` is the plain-words reason (a photo saved as a PDF, an empty or damaged file, a password-protected PDF, a time-out) and `error_code` the machine code (`PAGE_TOO_LARGE`, `EMPTY_FILE`, `UNREADABLE_PDF`, `PASSWORD_PROTECTED`, `TIMEOUT`, `EXTRACTION_FAILED`, `INTEGRATION_FAILED`). Manual uploads only — files delivered by a clinic never appear here.\n\n**Query parameters:**\n\n- `dismissable` — `1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress?dismissable=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress"
         ],
         "query": [
          {
           "key": "dismissable",
           "value": "",
           "disabled": false,
           "description": "`1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)"
          }
         ]
        },
        "description": "Uploads that have not become records yet, plus failed and on-hold ones. Rows still processing (`status: PROCESSING`) cover the last 24 hours. With `?dismissable=1` failed (`FAILED`) and on-hold (`BLOCKED`) rows stay for 30 days unless dismissed; without it they follow the 24-hour rule — send it only when your UI offers a Dismiss action. A failed row's `error` is the plain-words reason (a photo saved as a PDF, an empty or damaged file, a password-protected PDF, a time-out) and `error_code` the machine code (`PAGE_TOO_LARGE`, `EMPTY_FILE`, `UNREADABLE_PDF`, `PASSWORD_PROTECTED`, `TIMEOUT`, `EXTRACTION_FAILED`, `INTEGRATION_FAILED`). Manual uploads only — files delivered by a clinic never appear here.\n\n**Query parameters:**\n\n- `dismissable` — `1` to keep failed / on-hold rows for 30 days (your UI must offer Dismiss)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST in-progress/:job_id/dismiss",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "in-progress",
        ":job_id",
        "dismiss"
       ],
       "variable": [
        {
         "key": "job_id",
         "value": "",
         "description": "the upload's job id from GET /reports/in-progress"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"ok\": true\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"job_id is required\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/in-progress/:job_id/dismiss",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "in-progress",
          ":job_id",
          "dismiss"
         ],
         "variable": [
          {
           "key": "job_id",
           "value": "",
           "description": "the upload's job id from GET /reports/in-progress"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Remove a failed or on-hold upload's row from the patient's records list (for the patient and their providers alike). Only rows that ended without a report can be dismissed; dismissing twice is fine (200). A later failure of the same upload shows it again.\n\n**Path parameters:**\n\n- `job_id` — the upload's job id from GET /reports/in-progress\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"job_id is required\" }\n- `404` { \"error\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST list",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/reports/list",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "reports",
        "list"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/list",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "list"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"email\": \"patient@example.com\",\n  \"file_type\": \"LAB_RESULTS\",\n  \"count\": 5,\n  \"totalCount\": 7,\n  \"items\": [\n    {\n      \"job_id\": \"00b7adba83bc992bab22fe1e\",\n      \"email\": \"patient@example.com\",\n      \"filename\": \"lab-report.pdf\",\n      \"status\": \"DONE\",\n      \"s3_key\": \"uploads/lab-report.pdf\",\n      \"pdf_available\": true,\n      \"file_type\": \"LAB_RESULTS\",\n      \"result_id\": \"81a3fbc254fbaed49cd5d077\",\n      \"job_created_at\": \"2026-11-30T19:41:11.889Z\",\n      \"job_updated_at\": \"2026-11-30T19:41:22.440Z\",\n      \"source\": \"manual\",\n      \"via\": \"email\"\n    },\n    {\n      \"job_id\": \"e91907cec8783688b7dc411e\",\n      \"email\": \"patient@example.com\",\n      \"filename\": \"lab-report.pdf\",\n      \"status\": \"DONE\",\n      \"s3_key\": \"uploads/lab-report.pdf\",\n      \"pdf_available\": true,\n      \"file_type\": \"LAB_RESULTS\",\n      \"result_id\": \"51518826a61363ba3b9e0579\",\n      \"job_created_at\": \"2026-11-30T19:05:17.040Z\",\n      \"job_updated_at\": \"2026-11-30T19:05:24.362Z\",\n      \"source\": \"manual\",\n      \"via\": null\n    },\n    {\n      \"job_id\": \"0cc171aa90961df9d9bb957b\",\n      \"email\": \"patient@example.com\",\n      \"filename\": \"lab-report.pdf\",\n      \"status\": \"DONE\",\n      \"s3_key\": \"uploads/lab-report.pdf\",\n      \"pdf_available\": true,\n      \"file_type\": \"LAB_RESULTS\",\n      \"result_id\": \"affda0085864c1e03b30f764\",\n      \"job_created_at\": \"2026-11-30T19:04:51.326Z\",\n      \"job_updated_at\": \"2026-11-30T19:04:59.066Z\",\n      \"source\": \"manual\",\n      \"via\": null\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/list",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "list"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/list",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "list"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/list",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "list"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/list",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "list"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/reports/list",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "reports",
          "list"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"file_type\": \"ALL\",\n  \"limit\": 20,\n  \"skip\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "List lab reports for the patient (paginated). Filters by file_type (LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL).\n\n`file_type` is one of LAB_RESULTS, IMAGING, GENETICS, REPORTS, ALL. Optional `search` and `sort` fields are also accepted. An `email` field is ignored: the subject headers decide the patient.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"file_type must be one \"of\": \"<LAB_RESULTS>\", IMAGING, GENETICS, REPORTS, ALL\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The patient's uploaded and synced reports: list, detail, lookup by result, download link, rename, delete, and the in-progress / failed uploads with their reason."
  },
  {
   "name": "Lab Uploads",
   "item": [
    {
     "name": "POST lab/uploads",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/uploads",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "uploads"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "201 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Created",
       "code": 201,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"uploadId\": \"c802a905abbcd9422e484fe6\",\n  \"uploadUrl\": \"https://<storage link, valid for 15 minutes>\",\n  \"method\": \"PUT\",\n  \"headers\": {\n    \"Content-Type\": \"application/pdf\"\n  },\n  \"fileName\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 960,\n  \"fileType\": \"LAB_RESULTS\",\n  \"expiresInSec\": 900,\n  \"maxBytes\": 20971520\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }"
      },
      {
       "name": "413 Payload Too Large",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Payload Too Large",
       "code": 413,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Available to partner credentials only.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"filename\": \"Quest CBC 2026-11.pdf\",\n  \"size\": 482113,\n  \"fileType\": \"LAB_RESULTS\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 1 of a lab-report upload: asks for an upload link for one PDF. The reply carries `uploadUrl` (valid 15 minutes) and `uploadId`. Then PUT the file bytes to `uploadUrl` with `Content-Type: application/pdf`, and call **POST complete**. The size you declare is signed into the link: the storage service refuses a file of any other size. Limit 20 MB.\n\n**Body (JSON):**\n\n- `filename` — Must end in `.pdf`.\n- `size` — The file size in bytes, exactly.\n- `fileType` — `LAB_RESULTS` (default), `IMAGING`, `GENETICS`, `REPORTS` or `AUTO`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"filename is required and must end in .pdf.\", \"field\": \"filename\" }\n- `400` { \"message\": \"size is \"required\": the file size in bytes.\", \"field\": \"size\" }\n- `400` { \"message\": \"This file is empty.\", \"code\": \"EMPTY_FILE\", \"field\": \"size\" }\n- `413` { \"message\": \"This file is larger than 20 MB.\", \"code\": \"FILE_TOO_LARGE\", \"field\": \"size\" }\n- `403` { \"message\": \"Available to partner credentials only.\" }\n- `502` { \"message\": \"<message>\" }\n- `503` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ],
     "event": [
      {
       "listen": "test",
       "script": {
        "type": "text/javascript",
        "exec": [
         "// Keep the link and the id for the next two requests.",
         "let j = {}; try { j = pm.response.json(); } catch (e) {}",
         "if (j.uploadId) pm.collectionVariables.set('uploadId', j.uploadId);",
         "if (j.uploadUrl) pm.collectionVariables.set('uploadUrl', j.uploadUrl);"
        ]
       }
      }
     ]
    },
    {
     "name": "PUT file to uploadUrl",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/pdf",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{uploadUrl}}"
      },
      "body": {
       "mode": "file",
       "file": {
        "src": ""
       }
      },
      "auth": {
       "type": "noauth"
      },
      "description": "Step 2 of a lab upload: send the PDF bytes to the link from **POST lab/uploads** (saved as `uploadUrl`). In the Body tab choose the file.\n\nThis request goes to the storage service, not to the Health Nexus API: it takes no API key and no `X-Subject-*` header. The file must be exactly the `size` you declared, or the storage service answers 403. The link works for 15 minutes.\n\nA 200 with an empty body means the file is stored. Then call **POST :uploadId/complete**."
     },
     "response": []
    },
    {
     "name": "POST :uploadId/complete",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "uploads",
        ":uploadId",
        "complete"
       ],
       "variable": [
        {
         "key": "uploadId",
         "value": "{{uploadId}}",
         "description": "`uploadId` from POST lab/uploads."
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "201 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Created",
       "code": 201,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"uploadId\": \"c802a905abbcd9422e484fe6\",\n  \"jobId\": \"61de3ca922ac957f0727f22c\",\n  \"status\": \"processing\",\n  \"fileName\": \"Quest CBC 2026-11.pdf\",\n  \"fileType\": \"LAB_RESULTS\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Upload not found.\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId",
          "complete"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Step 3: tells us the file is uploaded. We check it (it is there, the declared size, a PDF) and start processing. Safe to repeat: a second call returns the same `jobId`. Follow the result with **GET :uploadId** or the Reports requests (`GET in-progress`, `POST list`).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n- `409` { \"code\": \"UPLOAD_NOT_FOUND\", \"message\": \"The file has not been uploaded yet. PUT it to uploadUrl, then call this again.\" }\n- `409` { \"code\": \"SIZE_MISMATCH\", \"message\": \"The uploaded file is not the size that was declared. Start a new upload.\" }\n- `409` { \"code\": \"UPLOAD_IN_PROGRESS\", \"message\": \"This upload is being completed. Try again in a moment.\" }\n- `400` { \"code\": \"NOT_A_PDF\", \"message\": \"The uploaded file is not a PDF. Start a new upload with a PDF file.\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :uploadId",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "lab",
        "uploads",
        ":uploadId"
       ],
       "variable": [
        {
         "key": "uploadId",
         "value": "{{uploadId}}",
         "description": "`uploadId` from POST lab/uploads."
        }
       ]
      },
      "description": "Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "description": "Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"uploadId\": \"c802a905abbcd9422e484fe6\",\n  \"status\": \"done\",\n  \"jobId\": \"61de3ca922ac957f0727f22c\",\n  \"fileName\": \"Quest CBC 2026-11.pdf\",\n  \"fileType\": \"LAB_RESULTS\",\n  \"size\": 960,\n  \"failure\": null,\n  \"createdAt\": \"2026-12-01T21:22:00.268Z\",\n  \"completedAt\": \"2026-12-01T21:22:04.959Z\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "description": "Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Upload not found.\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "description": "Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "description": "Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/lab/uploads/:uploadId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "lab",
          "uploads",
          ":uploadId"
         ],
         "variable": [
          {
           "key": "uploadId",
           "value": "{{uploadId}}",
           "description": "`uploadId` from POST lab/uploads."
          }
         ]
        },
        "description": "Where an upload stands: `awaiting_upload`, `processing`, `done`, `failed` (with `failure.code` and a plain-language `failure.message`) or `blocked` (stored, waiting on the clinic's setup).\n\n**Path parameters:**\n\n- `uploadId` — `uploadId` from POST lab/uploads.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Upload not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Upload a lab report (PDF) for a person. Three steps: ask for an upload link, PUT the file to it, then complete. The report is processed exactly like one the person uploads in our app, and appears in the Reports and Lab Data folders when done."
  },
  {
   "name": "Records",
   "item": [
    {
     "name": "GET all",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/records/all?skip=&limit=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "records",
        "all"
       ],
       "query": [
        {
         "key": "skip",
         "value": "",
         "disabled": true,
         "description": "number, optional, default 0: Pagination offset"
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "number, optional, default 20, clamped 1-100: Page size"
        },
        {
         "key": "search",
         "value": "",
         "disabled": true,
         "description": "Free-text filter on the record name."
        },
        {
         "key": "sort",
         "value": "",
         "disabled": true,
         "description": "`upload` (default, newest upload first) or `collection` (by collection date)."
        }
       ]
      },
      "description": "List all patient records (lab results + completed questionnaires) combined and paginated. File type counts on first page.\n\n**Query parameters:**\n\n- `skip` — number, optional, default 0: Pagination offset\n- `limit` — number, optional, default 20, clamped 1-100: Page size\n- `search` — Free-text filter on the record name.\n- `sort` — `upload` (default, newest upload first) or `collection` (by collection date).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/records/all?skip=&limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "records",
          "all"
         ],
         "query": [
          {
           "key": "skip",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 0: Pagination offset"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 20, clamped 1-100: Page size"
          }
         ]
        },
        "description": "List all patient records (lab results + completed questionnaires) combined and paginated. File type counts on first page.\n\n**Query parameters:**\n\n- `skip` — number, optional, default 0: Pagination offset\n- `limit` — number, optional, default 20, clamped 1-100: Page size\n- `search` — Free-text filter on the record name.\n- `sort` — `upload` (default, newest upload first) or `collection` (by collection date).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"labResults\": [\n    {\n      \"recordType\": \"lab_result\",\n      \"job_id\": \"00b7adba83bc992bab22fe1e\",\n      \"email\": \"patient@example.com\",\n      \"filename\": \"lab-report.pdf\",\n      \"status\": \"DONE\",\n      \"s3_key\": \"uploads/lab-report.pdf\",\n      \"pdf_available\": true,\n      \"result_id\": \"81a3fbc254fbaed49cd5d077\",\n      \"job_created_at\": \"2026-11-30T19:41:11.889Z\",\n      \"job_updated_at\": \"2026-11-30T19:41:22.440Z\",\n      \"source\": \"manual\",\n      \"via\": \"email\",\n      \"lab_company\": \"Sample Diagnostics Lab\",\n      \"collection_dates\": [\n        \"2026-11-27\"\n      ],\n      \"report_created_at\": \"2026-11-30T19:41:18.881Z\",\n      \"file_type\": \"LAB_RESULTS\",\n      \"panel_names\": []\n    },\n    {\n      \"recordType\": \"lab_result\",\n      \"job_id\": \"e91907cec8783688b7dc411e\",\n      \"email\": \"patient@example.com\",\n      \"filename\": \"lab-report.pdf\",\n      \"status\": \"DONE\",\n      \"s3_key\": \"uploads/lab-report.pdf\",\n      \"pdf_available\": true,\n      \"result_id\": \"51518826a61363ba3b9e0579\",\n      \"job_created_at\": \"2026-11-30T19:05:17.040Z\",\n      \"job_updated_at\": \"2026-11-30T19:05:24.362Z\",\n      \"source\": \"manual\",\n      \"via\": null,\n      \"lab_company\": \"Vibrant Wellness\",\n      \"collection_dates\": [\n        \"2026-10-20\"\n      ],\n      \"report_created_at\": \"2026-11-30T19:05:21.601Z\",\n      \"file_type\": \"LAB_RESULTS\",\n      \"panel_names\": []\n    },\n    \"…\"\n  ],\n  \"questionnaires\": [\n    {\n      \"recordType\": \"questionnaire\",\n      \"_id\": \"14954f76fd3ddbdaccc71d78\",\n      \"slug\": \"comprehensive-nutrition-assessment\",\n      \"title\": \"Comprehensive Nutrition Assessment\",\n      \"completedAt\": \"2026-11-24T19:40:16.747Z\",\n      \"startedAt\": \"2026-11-24T19:39:11.728Z\",\n      \"updatedAt\": \"2026-11-24T19:40:16.755Z\",\n      \"scores\": {\n        \"sectionScores\": {\n          \"quality\": 75,\n          \"timing\": 75,\n          \"value\": 75\n        },\n        \"overallScore\": 75,\n        \"maxPossibleScore\": 100\n      },\n      \"questionnaire\": {\n        \"type\": \"Nutrition\",\n        \"questionnaireCategory\": \"custom\",\n        \"sections\": []\n      }\n    },\n    {\n      \"recordType\": \"questionnaire\",\n      \"_id\": \"6f8a589fafca6d4f96cbdf9f\",\n      \"slug\": \"patient-health-history\",\n      \"title\": \"Patient Health History Questionnaire\",\n      \"completedAt\": \"2026-11-17T18:58:43.562Z\",\n      \"startedAt\": \"2026-11-17T18:58:12.071Z\",\n      \"updatedAt\": \"2026-11-17T18:59:05.853Z\",\n      \"questionnaire\": {\n        \"type\": \"Health\",\n        \"questionnaireCategory\": \"info\",\n        \"sections\": [\n          {\n            \"id\": \"s1\",\n            \"title\": \"Medical History\",\n            \"icon\": \"/images/health-icon.svg\",\n            \"description\": \"Please provide responses to questions about your medical history.\",\n            \"theme\": {\n              \"container\": \"bg-red-50 border-red-200\"\n            },\n            \"inputType\": \"mixed\",\n            \"tests\": [],\n            \"questions\": [\n              {\n                \"id\": \"s1_q1\",\n                \"question\": \"Have you ever been diagnosed with any of the following conditions?\",\n                \"options\": [\n                  \"Heart disease\",\n                  \"High blood pressure\",\n                  \"…\"\n                ],\n                \"type\": \"checkbox\",\n                \"scoring\": {\n                  \"ranges\": [],\n                  \"optionPoints\": []\n                }\n              },\n              {\n                \"id\": \"s1_q2\",\n                \"question\": \"Do you have any other medical conditions not listed above? If yes, please describe.\",\n                \"options\": [],\n                \"type\": \"textarea\",\n                \"required\": false,\n                \"scoring\": {\n                  \"ranges\": [],\n                  \"optionPoints\": []\n                }\n              },\n              \"…\"\n            ]\n          },\n          {\n            \"id\": \"s2\",\n            \"title\": \"Medications & Supplements\",\n            \"icon\": \"/images/health-icon.svg\",\n            \"description\": \"Please provide information about your current and recent medications.\",\n            \"theme\": {\n              \"container\": \"bg-blue-50 border-blue-200\"\n            },\n            \"inputType\": \"mixed\",\n            \"tests\": [],\n            \"questions\": [\n              {\n                \"id\": \"s2_q1\",\n                \"question\": \"Please list all prescription medications you currently take (include medication name, dose, frequency, and reason for taking it).\",\n                \"options\": [],\n                \"type\": \"textarea\",\n                \"required\": false,\n                \"scoring\": {\n                  \"ranges\": [],\n                  \"optionPoints\": []\n                }\n              },\n              {\n                \"id\": \"s2_q2\",\n                \"question\": \"Do you take any medications only occasionally (as needed)?\",\n                \"options\": [\n                  \"Yes\",\n                  \"No\"\n                ],\n                \"type\": \"radio\",\n                \"scoring\": {\n                  \"ranges\": [],\n                  \"optionPoints\": []\n                }\n              },\n              \"…\"\n            ]\n          },\n          \"…\"\n        ]\n      }\n    }\n  ],\n  \"totalLabResults\": 15,\n  \"hasMoreLabResults\": true,\n  \"fileTypeCounts\": {\n    \"LAB_RESULTS\": 7,\n    \"IMAGING\": 1,\n    \"GENETICS\": 2,\n    \"REPORTS\": 5\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/records/all?skip=&limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "records",
          "all"
         ],
         "query": [
          {
           "key": "skip",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 0: Pagination offset"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 20, clamped 1-100: Page size"
          },
          {
           "key": "search",
           "value": "",
           "disabled": true,
           "description": "Free-text filter on the record name."
          },
          {
           "key": "sort",
           "value": "",
           "disabled": true,
           "description": "`upload` (default, newest upload first) or `collection` (by collection date)."
          }
         ]
        },
        "description": "List all patient records (lab results + completed questionnaires) combined and paginated. File type counts on first page.\n\n**Query parameters:**\n\n- `skip` — number, optional, default 0: Pagination offset\n- `limit` — number, optional, default 20, clamped 1-100: Page size\n- `search` — Free-text filter on the record name.\n- `sort` — `upload` (default, newest upload first) or `collection` (by collection date).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/records/all?skip=&limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "records",
          "all"
         ],
         "query": [
          {
           "key": "skip",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 0: Pagination offset"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 20, clamped 1-100: Page size"
          },
          {
           "key": "search",
           "value": "",
           "disabled": true,
           "description": "Free-text filter on the record name."
          },
          {
           "key": "sort",
           "value": "",
           "disabled": true,
           "description": "`upload` (default, newest upload first) or `collection` (by collection date)."
          }
         ]
        },
        "description": "List all patient records (lab results + completed questionnaires) combined and paginated. File type counts on first page.\n\n**Query parameters:**\n\n- `skip` — number, optional, default 0: Pagination offset\n- `limit` — number, optional, default 20, clamped 1-100: Page size\n- `search` — Free-text filter on the record name.\n- `sort` — `upload` (default, newest upload first) or `collection` (by collection date).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/records/all?skip=&limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "records",
          "all"
         ],
         "query": [
          {
           "key": "skip",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 0: Pagination offset"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 20, clamped 1-100: Page size"
          },
          {
           "key": "search",
           "value": "",
           "disabled": true,
           "description": "Free-text filter on the record name."
          },
          {
           "key": "sort",
           "value": "",
           "disabled": true,
           "description": "`upload` (default, newest upload first) or `collection` (by collection date)."
          }
         ]
        },
        "description": "List all patient records (lab results + completed questionnaires) combined and paginated. File type counts on first page.\n\n**Query parameters:**\n\n- `skip` — number, optional, default 0: Pagination offset\n- `limit` — number, optional, default 20, clamped 1-100: Page size\n- `search` — Free-text filter on the record name.\n- `sort` — `upload` (default, newest upload first) or `collection` (by collection date).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/records/all?skip=&limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "records",
          "all"
         ],
         "query": [
          {
           "key": "skip",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 0: Pagination offset"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional, default 20, clamped 1-100: Page size"
          },
          {
           "key": "search",
           "value": "",
           "disabled": true,
           "description": "Free-text filter on the record name."
          },
          {
           "key": "sort",
           "value": "",
           "disabled": true,
           "description": "`upload` (default, newest upload first) or `collection` (by collection date)."
          }
         ]
        },
        "description": "List all patient records (lab results + completed questionnaires) combined and paginated. File type counts on first page.\n\n**Query parameters:**\n\n- `skip` — number, optional, default 0: Pagination offset\n- `limit` — number, optional, default 20, clamped 1-100: Page size\n- `search` — Free-text filter on the record name.\n- `sort` — `upload` (default, newest upload first) or `collection` (by collection date).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Every record type in one list (lab results, imaging, genetics, reports, questionnaires)."
  },
  {
   "name": "Questionnaires",
   "item": [
    {
     "name": "GET questionnaires",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/questionnaires",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "questionnaires"
       ]
      },
      "description": "List all active questionnaires the patient is allowed to see (respects gender restrictions).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires"
         ]
        },
        "description": "List all active questionnaires the patient is allowed to see (respects gender restrictions).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "[\n  {\n    \"_id\": \"ec6e1a7baeac5b8aaa75dd9d\",\n    \"title\": \"Skin Analysis\",\n    \"slug\": \"skin-analysis\",\n    \"subtitle\": \"Please answer the following questions as accurately as possible.\",\n    \"description\": \"Multi-spectral AI skin evaluation. Answer a short survey, capture 9 face photos across three lighting setups (Ring Light, Wood's Lamp, Polarizing Filter), and receive an 8-factor clinical-style report with an optional luxury infographic.\",\n    \"duration\": \"5-10 minutes\",\n    \"icon\": \"/images/clipboard-icon.svg\",\n    \"type\": \"Skin\",\n    \"questionnaireCategory\": \"skin-analysis\",\n    \"sections\": [],\n    \"dashboardCategories\": [\n      \"Skin Health\"\n    ],\n    \"isActive\": true\n  },\n  {\n    \"_id\": \"8fd46cd09b553aeb389a8e50\",\n    \"title\": \"Immune Health Assessment\",\n    \"slug\": \"comprehensive-immune-health-assessment\",\n    \"subtitle\": \"Please answer the following questions as accurately as possible.\",\n    \"description\": \"Immune Health\",\n    \"type\": \"Immune Health\",\n    \"questionnaireCategory\": \"custom\",\n    \"sections\": [],\n    \"dashboardCategories\": [\n      \"Immune Health\"\n    ],\n    \"customComponent\": {\n      \"compiled\": \"import { useState } from \\\"react\\\";\\nconst T = { purple: \\\"#534AB7\\\", purpleBg: \\\"#EEEDFE\\\", teal: \\\"#0F6E56\\\", tealBg: \\\"#E1F5EE\\\", tealMid: \\\"#1D9E75\\\", green: \\\"#3B6D11\\\", greenBg: \\\"#EAF3DE\\\", greenMid: \\\"#639922\\\", amber: \\\"#854F0B\\\", amberBg: \\\"#FAEEDA\\\", amberMid: \\\"#BA7517\\\", red: \\\"#A32D2D\\\", redBg: \\\"#FCEBEB\\\", redMid…\",\n      \"version\": 5\n    },\n    \"genderRestriction\": \"all\",\n    \"isActive\": true\n  },\n  {\n    \"_id\": \"cbd85f16ad29f5df56532b53\",\n    \"title\": \"Hormone Assessment Male\",\n    \"slug\": \"hormone-assessment-male\",\n    \"subtitle\": \"Please answer the following questions as accurately as possible.\",\n    \"description\": \"Hormone\",\n    \"type\": \"Hormone\",\n    \"questionnaireCategory\": \"custom\",\n    \"sections\": [],\n    \"dashboardCategories\": [\n      \"Hormone Health\"\n    ],\n    \"customComponent\": {\n      \"compiled\": \"import { useState } from \\\"react\\\";\\nconst T = { purple: \\\"#534AB7\\\", purpleBg: \\\"#EEEDFE\\\", teal: \\\"#0F6E56\\\", tealBg: \\\"#E1F5EE\\\", tealMid: \\\"#1D9E75\\\", green: \\\"#3B6D11\\\", greenBg: \\\"#EAF3DE\\\", greenMid: \\\"#639922\\\", amber: \\\"#854F0B\\\", amberBg: \\\"#FAEEDA\\\", amberMid: \\\"#BA7517\\\", red: \\\"#A32D2D\\\", redBg: \\\"#FCEBEB\\\", redMid…\",\n      \"version\": 4\n    },\n    \"genderRestriction\": \"male\",\n    \"isActive\": true\n  },\n  \"…\"\n]"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires"
         ]
        },
        "description": "List all active questionnaires the patient is allowed to see (respects gender restrictions).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires"
         ]
        },
        "description": "List all active questionnaires the patient is allowed to see (respects gender restrictions).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires"
         ]
        },
        "description": "List all active questionnaires the patient is allowed to see (respects gender restrictions).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires"
         ]
        },
        "description": "List all active questionnaires the patient is allowed to see (respects gender restrictions).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :slug",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "questionnaires",
        ":slug"
       ],
       "variable": [
        {
         "key": "slug",
         "value": "<slug>"
        }
       ]
      },
      "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires",
          ":slug"
         ],
         "variable": [
          {
           "key": "slug",
           "value": "<slug>"
          }
         ]
        },
        "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_id\": \"ec6e1a7baeac5b8aaa75dd9d\",\n  \"title\": \"Skin Analysis\",\n  \"slug\": \"skin-analysis\",\n  \"subtitle\": \"Please answer the following questions as accurately as possible.\",\n  \"description\": \"Multi-spectral AI skin evaluation. Answer a short survey, capture 9 face photos across three lighting setups (Ring Light, Wood's Lamp, Polarizing Filter), and receive an 8-factor clinical-style report with an optional luxury infographic.\",\n  \"duration\": \"5-10 minutes\",\n  \"icon\": \"/images/clipboard-icon.svg\",\n  \"type\": \"Skin\",\n  \"questionnaireCategory\": \"skin-analysis\",\n  \"sections\": [],\n  \"dashboardCategories\": [\n    \"Skin Health\"\n  ],\n  \"isActive\": true,\n  \"createdAt\": \"2026-05-20T00:00:00.000Z\",\n  \"updatedAt\": \"2026-06-04T01:45:04.659Z\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires",
          ":slug"
         ],
         "variable": [
          {
           "key": "slug",
           "value": "<slug>"
          }
         ]
        },
        "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires",
          ":slug"
         ],
         "variable": [
          {
           "key": "slug",
           "value": "<slug>"
          }
         ]
        },
        "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires",
          ":slug"
         ],
         "variable": [
          {
           "key": "slug",
           "value": "<slug>"
          }
         ]
        },
        "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires",
          ":slug"
         ],
         "variable": [
          {
           "key": "slug",
           "value": "<slug>"
          }
         ]
        },
        "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/questionnaires/:slug",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "questionnaires",
          ":slug"
         ],
         "variable": [
          {
           "key": "slug",
           "value": "<slug>"
          }
         ]
        },
        "description": "Get a specific questionnaire by slug (respects gender restrictions).\n\n**Path parameters:**\n\n- `:slug` (string, required) — Questionnaire slug\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The questionnaire definitions the patient can take."
  },
  {
   "name": "Questionnaire Progress",
   "item": [
    {
     "name": "GET progress",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress?status=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress"
       ],
       "query": [
        {
         "key": "status",
         "value": "",
         "disabled": true,
         "description": "string, optional: Filter to specific status (e.g. \"completed\")"
        }
       ]
      },
      "description": "List questionnaire progress attempts for the patient (optionally filtered by status).\n\n**Query parameters:**\n\n- `status` — string, optional: Filter to specific status (e.g. \"completed\")\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific status (e.g. \"completed\")"
          }
         ]
        },
        "description": "List questionnaire progress attempts for the patient (optionally filtered by status).\n\n**Query parameters:**\n\n- `status` — string, optional: Filter to specific status (e.g. \"completed\")\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "[\n  {\n    \"_id\": \"5494b649eaa791844227df99\",\n    \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"questionnaireId\": \"ec6e1a7baeac5b8aaa75dd9d\",\n    \"slug\": \"skin-analysis\",\n    \"title\": \"Skin Analysis\",\n    \"currentSectionIndex\": 0,\n    \"status\": \"in-progress\",\n    \"startedAt\": \"2026-12-01T21:55:16.619Z\",\n    \"questions\": [],\n    \"createdAt\": \"2026-12-01T21:55:16.622Z\",\n    \"updatedAt\": \"2026-12-01T21:56:09.331Z\",\n    \"__v\": 0\n  },\n  {\n    \"_id\": \"14954f76fd3ddbdaccc71d78\",\n    \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"questionnaireId\": \"a14fde4c49364c0334646c0e\",\n    \"slug\": \"comprehensive-nutrition-assessment\",\n    \"title\": \"Comprehensive Nutrition Assessment\",\n    \"currentSectionIndex\": 0,\n    \"answers\": {\n      \"1\": \"{\\\"value\\\":3,\\\"label\\\":\\\"3–4\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"2\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Once or twice a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"3\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Very little\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"4\": \"{\\\"value\\\":3,\\\"label\\\":\\\"4–5 days a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"5\": \"{\\\"value\\\":3,\\\"label\\\":\\\"1–3 drinks\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"6\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Mostly\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"7\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Several times a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"8\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Often\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"9\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Most days\\\",\\\"domain\\\":\\\"timing\\\"}\",\n      \"10\": \"{\\\"value\\\":3,\\\"label\\\":\\\"2–3 hours\\\",\\\"domain\\\":\\\"timing\\\"}\",\n      \"11\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Yes — 10–12 hour window\\\",\\\"domain\\\":\\\"timing\\\"}\",\n      \"12\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Once a week\\\",\\\"domain\\\":\\\"timing\\\"}\"\n    },\n    \"status\": \"completed\",\n    \"startedAt\": \"2026-11-24T19:39:11.728Z\",\n    \"questions\": [\n      {\n        \"id\": \"1\",\n        \"sectionId\": \"quality\",\n        \"title\": \"How many servings of whole, unprocessed vegetables do you eat per day?\",\n        \"question\": \"How many servings of whole, unprocessed vegetables do you eat per day?\",\n        \"options\": [\n          \"5 or more\",\n          \"3–4\"\n        ],\n        \"_id\": \"755696c0898c5185d073a664\"\n      },\n      {\n        \"id\": \"2\",\n        \"sectionId\": \"quality\",\n        \"title\": \"How often do you eat ultra-processed foods (packaged snacks, fast food, frozen meals)?\",\n        \"question\": \"How often do you eat ultra-processed foods (packaged snacks, fast food, frozen meals)?\",\n        \"options\": [\n          \"Never or rarely\",\n          \"Once or twice a week\"\n        ],\n        \"_id\": \"e568f6458f33376e77f6d31a\"\n      }\n    ],\n    \"createdAt\": \"2026-11-24T19:39:11.731Z\",\n    \"updatedAt\": \"2026-11-24T19:40:16.755Z\"\n  },\n  {\n    \"_id\": \"3b0c4e71ba92de1a0a726bfc\",\n    \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"questionnaireId\": \"b953fef59f01bc762af7a661\",\n    \"slug\": \"patient-health-history\",\n    \"title\": \"Patient Health History Questionnaire\",\n    \"currentSectionIndex\": 10,\n    \"status\": \"in-progress\",\n    \"startedAt\": \"2026-11-18T18:43:40.526Z\",\n    \"questions\": [\n      {\n        \"id\": \"s1_q1\",\n        \"sectionId\": \"s1\",\n        \"question\": \"Have you ever been diagnosed with any of the following conditions?\",\n        \"options\": [\n          \"Heart disease\",\n          \"High blood pressure\"\n        ],\n        \"type\": \"checkbox\",\n        \"_id\": \"16a33d2e596fcc5d9d606395\"\n      },\n      {\n        \"id\": \"s1_q2\",\n        \"sectionId\": \"s1\",\n        \"question\": \"Do you have any other medical conditions not listed above? If yes, please describe.\",\n        \"options\": [],\n        \"type\": \"textarea\",\n        \"_id\": \"002ba4b1e5bfe7cb5d13862d\"\n      }\n    ],\n    \"createdAt\": \"2026-11-18T18:43:40.555Z\",\n    \"updatedAt\": \"2026-11-18T18:44:45.220Z\",\n    \"__v\": 24\n  },\n  \"…\"\n]"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific status (e.g. \"completed\")"
          }
         ]
        },
        "description": "List questionnaire progress attempts for the patient (optionally filtered by status).\n\n**Query parameters:**\n\n- `status` — string, optional: Filter to specific status (e.g. \"completed\")\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific status (e.g. \"completed\")"
          }
         ]
        },
        "description": "List questionnaire progress attempts for the patient (optionally filtered by status).\n\n**Query parameters:**\n\n- `status` — string, optional: Filter to specific status (e.g. \"completed\")\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific status (e.g. \"completed\")"
          }
         ]
        },
        "description": "List questionnaire progress attempts for the patient (optionally filtered by status).\n\n**Query parameters:**\n\n- `status` — string, optional: Filter to specific status (e.g. \"completed\")\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific status (e.g. \"completed\")"
          }
         ]
        },
        "description": "List questionnaire progress attempts for the patient (optionally filtered by status).\n\n**Query parameters:**\n\n- `status` — string, optional: Filter to specific status (e.g. \"completed\")\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :questionnaireId",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        ":questionnaireId"
       ],
       "variable": [
        {
         "key": "questionnaireId",
         "value": "<questionnaireId>"
        }
       ]
      },
      "description": "Get the current in-progress questionnaire attempt for a specific questionnaire.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "Get the current in-progress questionnaire attempt for a specific questionnaire.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_id\": \"5494b649eaa791844227df99\",\n  \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"questionnaireId\": \"ec6e1a7baeac5b8aaa75dd9d\",\n  \"slug\": \"skin-analysis\",\n  \"title\": \"Skin Analysis\",\n  \"currentSectionIndex\": 0,\n  \"status\": \"in-progress\",\n  \"startedAt\": \"2026-12-01T21:55:16.619Z\",\n  \"questions\": [],\n  \"createdAt\": \"2026-12-01T21:55:16.622Z\",\n  \"updatedAt\": \"2026-12-01T21:55:16.622Z\",\n  \"__v\": 0\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "Get the current in-progress questionnaire attempt for a specific questionnaire.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "Get the current in-progress questionnaire attempt for a specific questionnaire.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "Get the current in-progress questionnaire attempt for a specific questionnaire.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "Get the current in-progress questionnaire attempt for a specific questionnaire.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT :questionnaireId",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        ":questionnaireId"
       ],
       "variable": [
        {
         "key": "questionnaireId",
         "value": "<questionnaireId>"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_id\": \"5494b649eaa791844227df99\",\n  \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"questionnaireId\": \"ec6e1a7baeac5b8aaa75dd9d\",\n  \"slug\": \"skin-analysis\",\n  \"title\": \"Skin Analysis\",\n  \"currentSectionIndex\": 0,\n  \"status\": \"in-progress\",\n  \"startedAt\": \"2026-12-01T21:55:16.619Z\",\n  \"questions\": [],\n  \"createdAt\": \"2026-12-01T21:55:16.622Z\",\n  \"updatedAt\": \"2026-12-01T21:56:09.331Z\",\n  \"__v\": 0\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Questionnaire not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"currentSectionIndex\": 0,\n  \"answers\": {},\n  \"status\": \"in-progress\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save or complete a questionnaire attempt. Triggers health summary regeneration if health-history is completed.\n\n`answers` maps question ids to answers; `status` is `in-progress` or `completed`; optional `customScores.questions` is the renderer's score snapshot for JSX questionnaires.\n\n**Path parameters:**\n\n- `:questionnaireId` (ObjectId, required) — Questionnaire ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Questionnaire not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET attempt/:attemptId",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        "attempt",
        ":attemptId"
       ],
       "variable": [
        {
         "key": "attemptId",
         "value": "<attemptId>"
        }
       ]
      },
      "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "<attemptId>"
          }
         ]
        },
        "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_id\": \"14954f76fd3ddbdaccc71d78\",\n  \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"questionnaireId\": \"a14fde4c49364c0334646c0e\",\n  \"slug\": \"comprehensive-nutrition-assessment\",\n  \"title\": \"Comprehensive Nutrition Assessment\",\n  \"currentSectionIndex\": 0,\n  \"answers\": {\n    \"1\": \"{\\\"value\\\":3,\\\"label\\\":\\\"3–4\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"2\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Once or twice a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"3\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Very little\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"4\": \"{\\\"value\\\":3,\\\"label\\\":\\\"4–5 days a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"5\": \"{\\\"value\\\":3,\\\"label\\\":\\\"1–3 drinks\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"6\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Mostly\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"7\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Several times a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"8\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Often\\\",\\\"domain\\\":\\\"quality\\\"}\",\n    \"9\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Most days\\\",\\\"domain\\\":\\\"timing\\\"}\",\n    \"10\": \"{\\\"value\\\":3,\\\"label\\\":\\\"2–3 hours\\\",\\\"domain\\\":\\\"timing\\\"}\",\n    \"11\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Yes — 10–12 hour window\\\",\\\"domain\\\":\\\"timing\\\"}\",\n    \"12\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Once a week\\\",\\\"domain\\\":\\\"timing\\\"}\",\n    \"13\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Mostly consistent\\\",\\\"domain\\\":\\\"timing\\\"}\",\n    \"14\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Often\\\",\\\"domain\\\":\\\"value\\\"}\",\n    \"15\": \"{\\\"value\\\":3,\\\"label\\\":\\\"0.7–1g/lb\\\",\\\"domain\\\":\\\"value\\\"}\",\n    \"16\": \"{\\\"value\\\":3,\\\"label\\\":\\\"1–2 times per week\\\",\\\"domain\\\":\\\"value\\\"}\",\n    \"17\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Moderate diversity\\\",\\\"domain\\\":\\\"value\\\"}\",\n    \"18\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Several times a week\\\",\\\"domain\\\":\\\"value\\\"}\",\n    \"19\": \"{\\\"value\\\":3,\\\"label\\\":\\\"6–8 cups\\\",\\\"domain\\\":\\\"value\\\"}\",\n    \"20\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Some supplements\\\",\\\"domain\\\":\\\"value\\\"}\"\n  },\n  \"status\": \"completed\",\n  \"startedAt\": \"2026-11-24T19:39:11.728Z\",\n  \"questions\": [\n    {\n      \"id\": \"1\",\n      \"sectionId\": \"quality\",\n      \"title\": \"How many servings of whole, unprocessed vegetables do you eat per day?\",\n      \"question\": \"How many servings of whole, unprocessed vegetables do you eat per day?\",\n      \"options\": [\n        \"5 or more\",\n        \"3–4\",\n        \"1–2\",\n        \"…\"\n      ],\n      \"_id\": \"755696c0898c5185d073a664\"\n    },\n    {\n      \"id\": \"2\",\n      \"sectionId\": \"quality\",\n      \"title\": \"How often do you eat ultra-processed foods (packaged snacks, fast food, frozen meals)?\",\n      \"question\": \"How often do you eat ultra-processed foods (packaged snacks, fast food, frozen meals)?\",\n      \"options\": [\n        \"Never or rarely\",\n        \"Once or twice a week\",\n        \"Several times a week\",\n        \"…\"\n      ],\n      \"_id\": \"e568f6458f33376e77f6d31a\"\n    },\n    {\n      \"id\": \"3\",\n      \"sectionId\": \"quality\",\n      \"title\": \"How much added sugar do you consume daily (sodas, sweets, flavored yogurt, sauces)?\",\n      \"question\": \"How much added sugar do you consume daily (sodas, sweets, flavored yogurt, sauces)?\",\n      \"options\": [\n        \"None — I actively avoid added sugar\",\n        \"Very little\",\n        \"A moderate amount\",\n        \"…\"\n      ],\n      \"_id\": \"3a2fd95b806ada7c3a75b093\"\n    },\n    \"…\"\n  ],\n  \"createdAt\": \"2026-11-24T19:39:11.731Z\",\n  \"updatedAt\": \"2026-11-24T19:40:16.755Z\",\n  \"__v\": 1,\n  \"completedAt\": \"2026-11-24T19:40:16.747Z\",\n  \"scoredAt\": \"2026-11-24T19:40:16.747Z\",\n  \"scores\": {\n    \"sectionScores\": {\n      \"quality\": 75,\n      \"timing\": 75,\n      \"value\": 75\n    },\n    \"overallScore\": 75,\n    \"maxPossibleScore\": 100\n  }\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "<attemptId>"
          }
         ]
        },
        "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "<attemptId>"
          }
         ]
        },
        "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "<attemptId>"
          }
         ]
        },
        "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "<attemptId>"
          }
         ]
        },
        "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "<attemptId>"
          }
         ]
        },
        "description": "One completed questionnaire attempt, by its id. The attempt must be the person's own.\n\n**Path parameters:**\n\n- `:attemptId` (string, required, ObjectId) — Progress attempt ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET attempt/:attemptId/pdf",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        "attempt",
        ":attemptId",
        "pdf"
       ],
       "variable": [
        {
         "key": "attemptId",
         "value": "",
         "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
        }
       ]
      },
      "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId",
          "pdf"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
          }
         ]
        },
        "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "\"(binary application/pdf)\""
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId",
          "pdf"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
          }
         ]
        },
        "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId",
          "pdf"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
          }
         ]
        },
        "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId",
          "pdf"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
          }
         ]
        },
        "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId",
          "pdf"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
          }
         ]
        },
        "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/attempt/:attemptId/pdf",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "attempt",
          ":attemptId",
          "pdf"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed attempt's id (GET /progress or /progress/completed-latest)"
          }
         ]
        },
        "description": "A completed questionnaire attempt rendered as a PDF (binary `application/pdf`). 404 when the attempt is not this patient's or is not completed.\n\n**Path parameters:**\n\n- `attemptId` — the completed attempt's id (GET /progress or /progress/completed-latest)\n\n**Possible errors:**\n\n- `404` { \"message\": \"Not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET completed-latest",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/completed-latest",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        "completed-latest"
       ]
      },
      "description": "The person's most recent completed attempt for each questionnaire: one row per questionnaire. Each row says whether a retake is due (`dueForRetake`) and carries `inProgressId` when a retake has been started.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/completed-latest",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "completed-latest"
         ]
        },
        "description": "The person's most recent completed attempt for each questionnaire: one row per questionnaire. Each row says whether a retake is due (`dueForRetake`) and carries `inProgressId` when a retake has been started.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "[\n  {\n    \"_id\": \"14954f76fd3ddbdaccc71d78\",\n    \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"questionnaireId\": \"a14fde4c49364c0334646c0e\",\n    \"slug\": \"comprehensive-nutrition-assessment\",\n    \"title\": \"Comprehensive Nutrition Assessment\",\n    \"currentSectionIndex\": 0,\n    \"answers\": {\n      \"1\": \"{\\\"value\\\":3,\\\"label\\\":\\\"3–4\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"2\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Once or twice a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"3\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Very little\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"4\": \"{\\\"value\\\":3,\\\"label\\\":\\\"4–5 days a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"5\": \"{\\\"value\\\":3,\\\"label\\\":\\\"1–3 drinks\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"6\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Mostly\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"7\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Several times a week\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"8\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Often\\\",\\\"domain\\\":\\\"quality\\\"}\",\n      \"9\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Most days\\\",\\\"domain\\\":\\\"timing\\\"}\",\n      \"10\": \"{\\\"value\\\":3,\\\"label\\\":\\\"2–3 hours\\\",\\\"domain\\\":\\\"timing\\\"}\",\n      \"11\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Yes — 10–12 hour window\\\",\\\"domain\\\":\\\"timing\\\"}\",\n      \"12\": \"{\\\"value\\\":3,\\\"label\\\":\\\"Once a week\\\",\\\"domain\\\":\\\"timing\\\"}\"\n    },\n    \"status\": \"completed\",\n    \"startedAt\": \"2026-11-24T19:39:11.728Z\",\n    \"questions\": [\n      {\n        \"id\": \"1\",\n        \"sectionId\": \"quality\",\n        \"title\": \"How many servings of whole, unprocessed vegetables do you eat per day?\",\n        \"question\": \"How many servings of whole, unprocessed vegetables do you eat per day?\",\n        \"options\": [\n          \"5 or more\",\n          \"3–4\"\n        ],\n        \"_id\": \"755696c0898c5185d073a664\"\n      },\n      {\n        \"id\": \"2\",\n        \"sectionId\": \"quality\",\n        \"title\": \"How often do you eat ultra-processed foods (packaged snacks, fast food, frozen meals)?\",\n        \"question\": \"How often do you eat ultra-processed foods (packaged snacks, fast food, frozen meals)?\",\n        \"options\": [\n          \"Never or rarely\",\n          \"Once or twice a week\"\n        ],\n        \"_id\": \"e568f6458f33376e77f6d31a\"\n      }\n    ],\n    \"createdAt\": \"2026-11-24T19:39:11.731Z\",\n    \"updatedAt\": \"2026-11-24T19:40:16.755Z\"\n  },\n  {\n    \"_id\": \"6f8a589fafca6d4f96cbdf9f\",\n    \"userId\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"questionnaireId\": \"b953fef59f01bc762af7a661\",\n    \"slug\": \"patient-health-history\",\n    \"title\": \"Patient Health History Questionnaire\",\n    \"currentSectionIndex\": 12,\n    \"answers\": {\n      \"s1_q1\": \"[\\\"None of the above\\\"]\",\n      \"s1_q2\": \"None\",\n      \"s1_q3\": \"None\",\n      \"question-1780403087534\": \"None\",\n      \"s2_q2\": \"No\",\n      \"s2_q1\": \"None\",\n      \"s2_q4\": \"None\",\n      \"question-1780402851813\": \"None\",\n      \"question-1780402897897\": \"None\",\n      \"question-1780403033192\": \"None\",\n      \"s4_q1\": \"[\\\"None\\\"]\",\n      \"s4_q2\": \"None\"\n    },\n    \"status\": \"completed\",\n    \"startedAt\": \"2026-11-17T18:58:12.071Z\",\n    \"questions\": [\n      {\n        \"id\": \"s1_q1\",\n        \"sectionId\": \"s1\",\n        \"question\": \"Have you ever been diagnosed with any of the following conditions?\",\n        \"options\": [\n          \"Heart disease\",\n          \"High blood pressure\"\n        ],\n        \"type\": \"checkbox\",\n        \"_id\": \"7c85f15a641f055e0742ec3d\"\n      },\n      {\n        \"id\": \"s1_q2\",\n        \"sectionId\": \"s1\",\n        \"question\": \"Do you have any other medical conditions not listed above? If yes, please describe.\",\n        \"options\": [],\n        \"type\": \"textarea\",\n        \"_id\": \"a7a73b44794957b119529c80\"\n      }\n    ],\n    \"createdAt\": \"2026-11-17T18:58:12.090Z\",\n    \"updatedAt\": \"2026-11-17T18:59:05.853Z\"\n  }\n]"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/completed-latest",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "completed-latest"
         ]
        },
        "description": "The person's most recent completed attempt for each questionnaire: one row per questionnaire. Each row says whether a retake is due (`dueForRetake`) and carries `inProgressId` when a retake has been started.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/completed-latest",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "completed-latest"
         ]
        },
        "description": "The person's most recent completed attempt for each questionnaire: one row per questionnaire. Each row says whether a retake is due (`dueForRetake`) and carries `inProgressId` when a retake has been started.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/completed-latest",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "completed-latest"
         ]
        },
        "description": "The person's most recent completed attempt for each questionnaire: one row per questionnaire. Each row says whether a retake is due (`dueForRetake`) and carries `inProgressId` when a retake has been started.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/completed-latest",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "completed-latest"
         ]
        },
        "description": "The person's most recent completed attempt for each questionnaire: one row per questionnaire. Each row says whether a retake is due (`dueForRetake`) and carries `inProgressId` when a retake has been started.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET counts",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/counts",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        "counts"
       ]
      },
      "description": "Get completion count per questionnaire slug (useful for badges/stats).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "counts"
         ]
        },
        "description": "Get completion count per questionnaire slug (useful for badges/stats).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"patient-health-history\": {\n    \"count\": 1,\n    \"lastCompletedAt\": \"2026-11-17T18:58:43.562Z\",\n    \"dueForRetake\": false\n  },\n  \"comprehensive-nutrition-assessment\": {\n    \"count\": 1,\n    \"lastCompletedAt\": \"2026-11-24T19:40:16.747Z\",\n    \"dueForRetake\": false\n  }\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "counts"
         ]
        },
        "description": "Get completion count per questionnaire slug (useful for badges/stats).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "counts"
         ]
        },
        "description": "Get completion count per questionnaire slug (useful for badges/stats).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "counts"
         ]
        },
        "description": "Get completion count per questionnaire slug (useful for badges/stats).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/counts",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "counts"
         ]
        },
        "description": "Get completion count per questionnaire slug (useful for badges/stats).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET history/:questionnaireId",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "progress",
        "history",
        ":questionnaireId"
       ],
       "variable": [
        {
         "key": "questionnaireId",
         "value": "<questionnaireId>"
        }
       ]
      },
      "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "history",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"questionnaireId\": \"ec6e1a7baeac5b8aaa75dd9d\",\n  \"slug\": \"skin-analysis\",\n  \"title\": \"Skin Analysis\",\n  \"questionnaireCategory\": \"skin-analysis\",\n  \"attempts\": []\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "history",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Missing questionnaireId\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "history",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "history",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "history",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/progress/history/:questionnaireId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "progress",
          "history",
          ":questionnaireId"
         ],
         "variable": [
          {
           "key": "questionnaireId",
           "value": "<questionnaireId>"
          }
         ]
        },
        "description": "List all completed attempts for a specific questionnaire (sorted newest first). Includes trends/history.\n\n**Path parameters:**\n\n- `:questionnaireId` (string, required, ObjectId) — Questionnaire ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Missing questionnaireId\" }\n- `400` { \"message\": \"Invalid questionnaireId\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The patient's attempts: in progress, completed, counts, history, saving answers, and a PDF of a completed attempt."
  },
  {
   "name": "Health Summary",
   "item": [
    {
     "name": "GET health-summary",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/health-summary",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "health-summary"
       ]
      },
      "description": "Get the patient's health summary (clinical findings, assessments, etc.). Detects if regeneration is needed based on clinical findings schema version or newer health history completion.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary"
         ]
        },
        "description": "Get the patient's health summary (clinical findings, assessments, etc.). Detects if regeneration is needed based on clinical findings schema version or newer health history completion.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"summary\": {\n    \"personalHealth\": [\n      {\n        \"title\": \"My Medical History\",\n        \"content\": \"<name> is a 32-year-old male with no known diagnosed medical conditions and no history of hospitalizations. A routine lab review in November 2026 identified a low Vitamin D level of 45.6 ng/mL, for which Vitamin D3 2000 IU daily was initiated. Ferritin was found to be within normal limits at 112, wi…\"\n      },\n      {\n        \"title\": \"My Medications\",\n        \"content\": \"Vitamin D3 2000 IU taken daily (started November 2026 for low Vitamin D)\"\n      },\n      {\n        \"title\": \"My Supplements\",\n        \"content\": \"No data available in the record for this category.\"\n      },\n      \"…\"\n    ],\n    \"categorySummaries\": {\n      \"Sleep + Recovery\": \"Your Sleep + Recovery is in outstanding shape, <name> — you're scoring at the very top of the range, which reflects strong habits and a body that is recovering well. Keep doing what you're doing, as consistent, high-quality recovery is one of the most powerful investments you can make in your long-t…\",\n      \"Physical Fitness\": \"Your Physical Fitness is a priority area that deserves focused attention, and the good news is that at 32, you have tremendous capacity to build a strong foundation. It looks like we don't yet have enough data to fully assess where you stand, so the most important next step is getting that informati…\",\n      \"Toxin Exposure\": \"Your Toxin Exposure is a clear priority area to focus on, <name>, and the good news is that this is one of the most actionable categories we can work on together. We don't yet have the data needed to give you a full picture of what you may be carrying or where your exposures are coming from, so the …\",\n      \"Nutrition + Metabolic Health\": \"Your Nutrition + Metabolic Health is in a strong place overall, <name> — you're showing solid metabolic function and good nutritional foundations that are worth celebrating at 32. There are a few areas where we simply don't have enough data yet to give you the full picture, so expanding your testing…\",\n      \"Emotional Health\": \"Your Emotional Health is an important priority area that deserves focused attention right now, <name>. While we don't yet have enough data to paint a full picture, this is actually a great opportunity to start building a strong foundation for your emotional well-being. With the right support and int…\",\n      \"Liver + Kidney Health\": \"Your Liver + Kidney Health is in a strong place overall, <name>, with your liver function looking excellent and providing a great foundation to build on. There is some room to give your kidney health a bit more attention, and with the right lifestyle and hydration habits, you have every opportunity …\",\n      \"Inflammation\": \"Your Inflammation is in a strong place, <name> — this is a real positive to build on. At 32, keeping inflammatory pathways well-regulated sets a powerful foundation for long-term health and longevity. Keep doing what you're doing, and we'll continue monitoring to make sure it stays right where it is…\",\n      \"Gut Health\": \"Your Gut Health is in a strong place, <name> — you're doing well overall and have a solid foundation to build on. Continuing to support your digestive health through consistent nutrition, hydration, and stress management will help you maintain this momentum. Keep up the great work, and we'll continu…\",\n      \"Hormone Health\": \"Your Hormone Health is in a solid place overall, <name> — you're on track and showing a good foundation to build from. There are a few areas worth keeping an eye on as we gather more complete data, which will give us an even clearer picture of where you stand. With some continued attention and the r…\",\n      \"Brain Health\": \"Your Brain Health is an important priority area that deserves focused attention, and the good news is that at 32, you are at an ideal stage to build a strong foundation. Because we don't yet have enough data to fully assess this category, the most important next step is completing the relevant asses…\",\n      \"CV (Heart) Health\": \"Your CV (Heart) Health is in excellent shape, <name> — a score of 90 out of 100 reflects a strong cardiovascular foundation that you should feel genuinely proud of. Keep up the healthy habits that are driving these results, as consistency is what turns good numbers into lasting heart health over the…\",\n      \"Immune Health\": \"Your Immune Health is in a strong place, <name> — an 85 out of 100 reflects a solid foundation that's worth celebrating and maintaining. Keep supporting the habits and lifestyle choices that have gotten you here, as consistency is what turns good immune health into lasting resilience. There are stil…\",\n      \"Cancer Detection\": \"Your Cancer Detection is a clear priority area to focus on right now, <name>. It looks like we don't yet have the foundational data needed to give you a meaningful picture of where you stand, which means the most important next step is simply getting that baseline established. The good news is that …\",\n      \"Longevity\": \"Your Longevity score is a priority area to focus on, and the good news is that at 32, you are at an ideal stage in life to build a strong foundation. We don't yet have enough data to give you a complete picture, so the most important next step is getting the right assessments in place. Once we have …\"\n    },\n    \"_id\": \"e29ef997b09eddcdc4ce5ff3\"\n  },\n  \"generatedAt\": \"2026-11-30T15:37:11.450Z\",\n  \"isRegenerating\": false,\n  \"cardEdits\": {\n    \"Nutrition + Metabolic Health\": {\n      \"content\": \"QA test edit: Provider note - focus on lowering ApoB with more fibre and fewer saturated fats; start Vitamin D3 2000 IU daily.\",\n      \"editedAt\": \"2026-11-17T19:01:31.459Z\",\n      \"editedByName\": \"<name>\"\n    }\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary"
         ]
        },
        "description": "Get the patient's health summary (clinical findings, assessments, etc.). Detects if regeneration is needed based on clinical findings schema version or newer health history completion.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary"
         ]
        },
        "description": "Get the patient's health summary (clinical findings, assessments, etc.). Detects if regeneration is needed based on clinical findings schema version or newer health history completion.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary"
         ]
        },
        "description": "Get the patient's health summary (clinical findings, assessments, etc.). Detects if regeneration is needed based on clinical findings schema version or newer health history completion.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary"
         ]
        },
        "description": "Get the patient's health summary (clinical findings, assessments, etc.). Detects if regeneration is needed based on clinical findings schema version or newer health history completion.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST regenerate",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/health-summary/regenerate",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "health-summary",
        "regenerate"
       ]
      },
      "description": "Asks for the health summary to be written again. The call returns at once; the new summary appears when it is ready.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regenerate"
         ]
        },
        "description": "Asks for the health summary to be written again. The call returns at once; the new summary appears when it is ready.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"message\": \"Health summary regeneration started. This may take up to 30 seconds.\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regenerate"
         ]
        },
        "description": "Asks for the health summary to be written again. The call returns at once; the new summary appears when it is ready.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regenerate"
         ]
        },
        "description": "Asks for the health summary to be written again. The call returns at once; the new summary appears when it is ready.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regenerate"
         ]
        },
        "description": "Asks for the health summary to be written again. The call returns at once; the new summary appears when it is ready.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regenerate"
         ]
        },
        "description": "Asks for the health summary to be written again. The call returns at once; the new summary appears when it is ready.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET regeneration-status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/health-summary/regeneration-status",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "health-summary",
        "regeneration-status"
       ]
      },
      "description": "Check if there is a pending health summary regeneration and get the reasons.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regeneration-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regeneration-status"
         ]
        },
        "description": "Check if there is a pending health summary regeneration and get the reasons.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"hasPendingRegeneration\": true,\n  \"reasons\": [\n    \"new_lab_result\"\n  ]\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regeneration-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regeneration-status"
         ]
        },
        "description": "Check if there is a pending health summary regeneration and get the reasons.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regeneration-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regeneration-status"
         ]
        },
        "description": "Check if there is a pending health summary regeneration and get the reasons.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regeneration-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regeneration-status"
         ]
        },
        "description": "Check if there is a pending health summary regeneration and get the reasons.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/health-summary/regeneration-status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "health-summary",
          "regeneration-status"
         ]
        },
        "description": "Check if there is a pending health summary regeneration and get the reasons.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The AI Health Summary and its regeneration state."
  },
  {
   "name": "PhenoAge",
   "item": [
    {
     "name": "GET pheno-age",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/pheno-age",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "pheno-age"
       ]
      },
      "description": "Get biological age (PhenoAge) calculation results if available, or missing data list if not enough biomarkers.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/pheno-age",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "pheno-age"
         ]
        },
        "description": "Get biological age (PhenoAge) calculation results if available, or missing data list if not enough biomarkers.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"phenoAge\": null,\n  \"chronologicalAge\": 32,\n  \"missingAge\": false,\n  \"missingBiomarkers\": [\n    {\n      \"canonicalName\": \"Albumin\",\n      \"displayName\": \"Albumin\"\n    },\n    {\n      \"canonicalName\": \"MCV\",\n      \"displayName\": \"Mean Cell Volume (MCV)\"\n    },\n    {\n      \"canonicalName\": \"RDW\",\n      \"displayName\": \"Red Cell Distribution Width (RDW)\"\n    },\n    \"…\"\n  ],\n  \"availableBiomarkers\": [\n    {\n      \"canonicalName\": \"Creatinine\",\n      \"displayName\": \"Creatinine\",\n      \"value\": 1.3,\n      \"unit\": \"mg/dL\",\n      \"date\": \"2026-11-28\"\n    },\n    {\n      \"canonicalName\": \"Glucose\",\n      \"displayName\": \"Glucose\",\n      \"value\": 84.7,\n      \"unit\": \"mg/dL\",\n      \"date\": \"2026-11-28\"\n    },\n    {\n      \"canonicalName\": \"hs-CRP\",\n      \"displayName\": \"hs-CRP (C-Reactive Protein)\",\n      \"value\": 0.8,\n      \"unit\": \"mg/L\",\n      \"date\": \"2026-11-10\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/pheno-age",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "pheno-age"
         ]
        },
        "description": "Get biological age (PhenoAge) calculation results if available, or missing data list if not enough biomarkers.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/pheno-age",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "pheno-age"
         ]
        },
        "description": "Get biological age (PhenoAge) calculation results if available, or missing data list if not enough biomarkers.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/pheno-age",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "pheno-age"
         ]
        },
        "description": "Get biological age (PhenoAge) calculation results if available, or missing data list if not enough biomarkers.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/pheno-age",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "pheno-age"
         ]
        },
        "description": "Get biological age (PhenoAge) calculation results if available, or missing data list if not enough biomarkers.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The patient's biological age estimate (PhenoAge) when enough markers exist."
  },
  {
   "name": "Wearables",
   "item": [
    {
     "name": "GET connections",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/connections",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "connections"
       ]
      },
      "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/connections",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "connections"
         ]
        },
        "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"providers\": [],\n  \"brands\": []\n}"
      },
      {
       "name": "200 OK — if no Junction user exists",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/connections",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "connections"
         ]
        },
        "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"providers\": [],\n  \"brands\": [],\n  \"message\": \"No Junction user.\"\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/connections",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "connections"
         ]
        },
        "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/connections",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "connections"
         ]
        },
        "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/connections",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "connections"
         ]
        },
        "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/connections",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "connections"
         ]
        },
        "description": "Fetch connected wearable/health providers (from Junction) and aggregate them by brand. Includes resource availability info when available.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET current-day/:type",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "current-day",
        ":type"
       ],
       "query": [
        {
         "key": "provider",
         "value": "",
         "disabled": true,
         "description": "string, optional: Filter to specific provider slug"
        }
       ],
       "variable": [
        {
         "key": "type",
         "value": "<type>"
        }
       ]
      },
      "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"value\": null,\n  \"type\": \"sleep\"\n}"
      },
      {
       "name": "200 OK — if no Junction user",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"value\": null,\n  \"message\": \"No Junction user.\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `Invalid type. \"Use\": …` }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/current-day/:type?provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "current-day",
          ":type"
         ],
         "query": [
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Get current day's metric value (or fallback to yesterday if no data). Supports optional provider filter. Special handling: sleep fetches last 3 days to capture previous night; steps/hrv/glucose try today then yesterday.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, steps, hrv, glucose\n\n**Query parameters:**\n\n- `provider` — string, optional: Filter to specific provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST demo",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/demo",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "demo"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"provider\": \"oura\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"demoStatus\": {}\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `provider must be one \"of\": …` }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/demo",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "demo"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Connect a demo data provider (for testing/demo purposes). Limited to: apple_health_kit, fitbit, freestyle_libre, oura.\n\n`provider` is one of `apple_health_kit`, `fitbit`, `freestyle_libre`, `oura`.\n\n**Possible errors:**\n\n- `400` { \"message\": `provider must be one \"of\": …` }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST disconnect",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/disconnect",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "disconnect"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"provider\": \"oura\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/disconnect",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "disconnect"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"result\": {}\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/disconnect",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "disconnect"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"No Junction user.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/disconnect",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "disconnect"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/disconnect",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "disconnect"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/disconnect",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "disconnect"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/disconnect",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "disconnect"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"provider\": \"oura\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Disconnect a wearable provider (deregister from Junction).\n\n`provider` is the slug of a connected wearable (see GET /junction/connections).\n\n**Possible errors:**\n\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": \"provider is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET link-token",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/link-token",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "link-token"
       ]
      },
      "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/link-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "link-token"
         ]
        },
        "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"link_token\": \"eyJ0eXAiOiAiSldUIiwgImFs…\",\n  \"link_url\": \"https://example.com/…\",\n  \"env\": \"sandbox\",\n  \"region\": \"us\"\n}"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/link-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "link-token"
         ]
        },
        "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/link-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "link-token"
         ]
        },
        "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/link-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "link-token"
         ]
        },
        "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/link-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "link-token"
         ]
        },
        "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/link-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "link-token"
         ]
        },
        "description": "Create or retrieve a Junction link token for OAuth provider connection flow.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET metric-current",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "metric-current"
       ],
       "query": [
        {
         "key": "metricId",
         "value": "",
         "disabled": false,
         "description": "string, required: Metric ID"
        },
        {
         "key": "provider",
         "value": "",
         "disabled": false,
         "description": "string, required: Provider slug"
        }
       ]
      },
      "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"metricId\": \"blood_oxygen\",\n  \"provider\": \"oura\",\n  \"value\": null,\n  \"unit\": null\n}"
      },
      {
       "name": "200 OK — if no Junction user",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"metricId\": ..., \"provider\": ..., \"value\": null, \"unit\": null }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"metricId is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-current?metricId=&provider=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-current"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          }
         ]
        },
        "description": "The most recent value of a metric: today's when there is one, otherwise yesterday's for vitals.\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID\n- `provider` — string, required: Provider slug\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET metric-series",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "metric-series"
       ],
       "query": [
        {
         "key": "metricId",
         "value": "",
         "disabled": false,
         "description": "string, required: Metric ID from catalog"
        },
        {
         "key": "provider",
         "value": "",
         "disabled": false,
         "description": "string, required: Provider slug"
        },
        {
         "key": "period",
         "value": "",
         "disabled": false,
         "description": "string, required: One of day, week, month, year"
        },
        {
         "key": "start_date",
         "value": "",
         "disabled": false,
         "description": "string, required, ISO format: Range start"
        },
        {
         "key": "end_date",
         "value": "",
         "disabled": false,
         "description": "string, required, ISO format: Range end"
        }
       ]
      },
      "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"metricId\": \"blood_oxygen\",\n  \"displayName\": \"Blood Oxygen\",\n  \"unit\": null,\n  \"provider\": \"oura\",\n  \"period\": \"week\",\n  \"bucketSize\": \"1d\",\n  \"series\": [],\n  \"summary\": {\n    \"latest\": null,\n    \"avg\": null,\n    \"min\": null,\n    \"max\": null,\n    \"total\": null\n  },\n  \"source\": null\n}"
      },
      {
       "name": "200 OK — if no Junction user",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"metricId\": ..., \"provider\": ..., \"period\": ..., \"bucketSize\": ..., \"series\": [] }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"metricId is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/metric-series?metricId=&provider=&period=&start_date=&end_date=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "metric-series"
         ],
         "query": [
          {
           "key": "metricId",
           "value": "",
           "disabled": false,
           "description": "string, required: Metric ID from catalog"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": false,
           "description": "string, required: Provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": false,
           "description": "string, required: One of day, week, month, year"
          },
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range start"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Range end"
          }
         ]
        },
        "description": "Fetch time series data for a specific metric over a date range. Supports bucketing by period (day/week/month/year) and aggregation (sum/avg depending on metric type).\n\n**Query parameters:**\n\n- `metricId` — string, required: Metric ID from catalog\n- `provider` — string, required: Provider slug\n- `period` — string, required: One of day, week, month, year\n- `start_date` — string, required, ISO format: Range start\n- `end_date` — string, required, ISO format: Range end\n\n**Possible errors:**\n\n- `400` { \"message\": \"metricId is required.\" }\n- `400` { \"message\": \"provider is required.\" }\n- `400` { \"message\": `period must be one \"of\": …` }\n- `400` { \"message\": \"<message>\" }\n- `400` { \"message\": `Unknown \"metricId\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET provider-metrics",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "provider-metrics"
       ],
       "query": [
        {
         "key": "brand",
         "value": "",
         "disabled": false,
         "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
        }
       ]
      },
      "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"brandId\": \"oura\",\n  \"displayName\": \"Oura\",\n  \"showCustomizationUi\": false,\n  \"availableMetrics\": [],\n  \"selectedMetrics\": []\n}"
      },
      {
       "name": "200 OK — if no Junction user",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"brandId\": \"<brand>\",\n  \"metrics\": [],\n  \"message\": \"No Junction user.\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"brand is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics?brand=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics"
         ],
         "query": [
          {
           "key": "brand",
           "value": "",
           "disabled": false,
           "description": "string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")"
          }
         ]
        },
        "description": "The metrics a connected wearable brand can supply (`available`) and the ones shown first (`selected`, up to ten). A person's earlier selection is kept where it is still available.\n\n**Query parameters:**\n\n- `brand` — string, required: Brand ID (e.g. \"apple\", \"fitbit\", \"oura\")\n\n**Possible errors:**\n\n- `400` { \"message\": \"brand is required.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST provider-metrics/selection",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "provider-metrics",
        "selection"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics",
          "selection"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"brandId\": \"oura\",\n  \"metricIds\": []\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics",
          "selection"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"brandId is required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics",
          "selection"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics",
          "selection"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics",
          "selection"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/provider-metrics/selection",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "provider-metrics",
          "selection"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"brandId\": \"oura\",\n  \"metricIds\": [\n    \"<metric id from availableMetrics in GET /junction/provider-metrics>\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save user's selected metrics for a provider brand (max 10, must be subset of available).\n\n`metricIds`: at most 10 unique ids from the brand's `availableMetrics`.\n\n**Possible errors:**\n\n- `400` { \"message\": \"brandId is required.\" }\n- `400` { \"message\": \"metricIds must be an array.\" }\n- `400` { \"message\": `Unknown \"brand\": …` }\n- `400` { \"message\": \"metricIds must contain at most 10 metrics.\" }\n- `400` { \"message\": \"metricIds must be unique.\" }\n- `400` { \"message\": \"No Junction user.\" }\n- `400` { \"message\": `metricId not available for this \"brand\": …` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET summary/:type",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "summary",
        ":type"
       ],
       "query": [
        {
         "key": "start_date",
         "value": "",
         "disabled": false,
         "description": "string, required, ISO format: Start of date range"
        },
        {
         "key": "end_date",
         "value": "",
         "disabled": false,
         "description": "string, required, ISO format: End of date range"
        },
        {
         "key": "provider",
         "value": "",
         "disabled": true,
         "description": "string, optional: Filter to specific provider slug"
        },
        {
         "key": "period",
         "value": "",
         "disabled": true,
         "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
        },
        {
         "key": "granularity",
         "value": "",
         "disabled": true,
         "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
        }
       ],
       "variable": [
        {
         "key": "type",
         "value": "<type>"
        }
       ]
      },
      "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"data\": []\n}"
      },
      {
       "name": "200 OK — if no Junction user exists",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"data\": [],\n  \"message\": \"No Junction user.\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `Invalid type. \"Use\": …` }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/summary/:type?start_date=&end_date=&provider=&period=&granularity=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "summary",
          ":type"
         ],
         "query": [
          {
           "key": "start_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: Start of date range"
          },
          {
           "key": "end_date",
           "value": "",
           "disabled": false,
           "description": "string, required, ISO format: End of date range"
          },
          {
           "key": "provider",
           "value": "",
           "disabled": true,
           "description": "string, optional: Filter to specific provider slug"
          },
          {
           "key": "period",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)"
          },
          {
           "key": "granularity",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)"
          }
         ],
         "variable": [
          {
           "key": "type",
           "value": "<type>"
          }
         ]
        },
        "description": "Fetch aggregated health data summary for a given metric type (sleep, activity, steps, hrv, glucose, workouts, body). Supports filtering by provider and optional bucketing.\n\n**Path parameters:**\n\n- `:type` (string, required) — One of sleep, activity, steps, hrv, glucose, workouts, body\n\n**Query parameters:**\n\n- `start_date` — string, required, ISO format: Start of date range\n- `end_date` — string, required, ISO format: End of date range\n- `provider` — string, optional: Filter to specific provider slug\n- `period` — string, optional: \"day\", \"week\", \"month\", \"year\" (for steps/hrv/glucose hourly bucketing)\n- `granularity` — string, optional: \"hourly\" (when period=\"day\" for steps/hrv/glucose)\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid type. \"Use\": …` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST user",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/junction/user",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "junction",
        "user"
       ]
      },
      "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/user",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "user"
         ]
        },
        "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"junctionUserId\": \"string\"\n}"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/user",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "user"
         ]
        },
        "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/user",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "user"
         ]
        },
        "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/user",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "user"
         ]
        },
        "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/user",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "user"
         ]
        },
        "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/junction/user",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "junction",
          "user"
         ]
        },
        "description": "Makes sure the person has a wearables profile, creating it on the first call. Safe to repeat: later calls return the same profile.\n\n**Possible errors:**\n\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Wearable connections: the link to connect a device, connections, daily and period data, the metric catalog and selection, disconnect."
  },
  {
   "name": "Wearables Catalog",
   "item": [
    {
     "name": "GET category-metric-scores",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/wearables/category-metric-scores",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "wearables",
        "category-metric-scores"
       ]
      },
      "description": "Get wearable metric scores grouped by category. Returns empty object if junction fails.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wearables/category-metric-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wearables",
          "category-metric-scores"
         ]
        },
        "description": "Get wearable metric scores grouped by category. Returns empty object if junction fails.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"categoryScores\": {}\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wearables/category-metric-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wearables",
          "category-metric-scores"
         ]
        },
        "description": "Get wearable metric scores grouped by category. Returns empty object if junction fails.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wearables/category-metric-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wearables",
          "category-metric-scores"
         ]
        },
        "description": "Get wearable metric scores grouped by category. Returns empty object if junction fails.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wearables/category-metric-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wearables",
          "category-metric-scores"
         ]
        },
        "description": "Get wearable metric scores grouped by category. Returns empty object if junction fails.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wearables/category-metric-scores",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wearables",
          "category-metric-scores"
         ]
        },
        "description": "Get wearable metric scores grouped by category. Returns empty object if junction fails.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Wearable metric scores by category."
  },
  {
   "name": "Interventions",
   "item": [
    {
     "name": "GET interventions",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/interventions",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "interventions"
       ]
      },
      "description": "List interventions for the patient, sorted by date descending (newest first).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "description": "List interventions for the patient, sorted by date descending (newest first).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "[]"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "description": "List interventions for the patient, sorted by date descending (newest first).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "description": "List interventions for the patient, sorted by date descending (newest first).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "description": "List interventions for the patient, sorted by date descending (newest first).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "description": "List interventions for the patient, sorted by date descending (newest first).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST interventions",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/interventions",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "interventions"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "201 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Created",
       "code": 201,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"date\": \"2026-12-01\",\n  \"title\": \"collection-check intervention\",\n  \"description\": \"created by the collection check\",\n  \"hidden\": false,\n  \"_id\": \"34ff7f6cddbc6d84de77f65a\",\n  \"createdAt\": \"2026-12-01T16:34:29.547Z\",\n  \"updatedAt\": \"2026-12-01T16:34:29.547Z\",\n  \"__v\": 0\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Date and title are required\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Started magnesium glycinate 200 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Create a new intervention entry for the patient.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `400` { \"message\": \"You can only add one intervention per month\" }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE :id",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/interventions/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "interventions",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"message\": \"Intervention deleted successfully\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Invalid intervention ID\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Intervention not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Forbidden\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete an intervention by ID. User must own the intervention.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH :id",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/interventions/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "interventions",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"hidden\": true\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_id\": \"34ff7f6cddbc6d84de77f65a\",\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"date\": \"2026-12-01\",\n  \"title\": \"collection-check intervention\",\n  \"description\": \"created by the collection check\",\n  \"hidden\": true,\n  \"createdAt\": \"2026-12-01T16:34:29.547Z\",\n  \"updatedAt\": \"2026-12-01T16:34:30.153Z\",\n  \"__v\": 0\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Invalid intervention ID\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Intervention not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Forbidden\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"hidden\": true\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update intervention visibility (hidden field) for charting purposes.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT :id",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/interventions/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "interventions",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_id\": \"34ff7f6cddbc6d84de77f65a\",\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"date\": \"2026-12-01\",\n  \"title\": \"collection-check intervention (put)\",\n  \"description\": \"edited by the collection check\",\n  \"hidden\": true,\n  \"createdAt\": \"2026-12-01T16:34:29.547Z\",\n  \"updatedAt\": \"2026-12-01T16:34:30.627Z\",\n  \"__v\": 0\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Invalid intervention ID\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Intervention not found\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Forbidden\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/interventions/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "interventions",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"date\": \"2026-12-01\",\n  \"title\": \"Magnesium glycinate raised to 400 mg\",\n  \"description\": \"Nightly, before bed\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an existing intervention (date, title, description). Requires ownership.\n\n**Path parameters:**\n\n- `:id` (string, required, ObjectId) — Intervention ID\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid intervention ID\" }\n- `400` { \"message\": \"Date and title are required\" }\n- `400` { \"message\": \"Invalid date format. Use YYYY-MM-DD\" }\n- `404` { \"message\": \"Intervention not found\" }\n- `403` { \"message\": \"Forbidden\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Interventions the patient logs (one per month): list, add, edit, hide, delete."
  },
  {
   "name": "Category Recommendations",
   "item": [
    {
     "name": "GET category-recommendations",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations"
       ]
      },
      "description": "Every category's recommendation with its action items, in the person's category order.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations"
         ]
        },
        "description": "Every category's recommendation with its action items, in the person's category order.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"categoryOrder\": [\n    \"Nutrition + Metabolic Health\",\n    \"…\"\n  ],\n  \"categories\": [\n    {\n      \"category\": \"Nutrition + Metabolic Health\",\n      \"generatedAt\": \"2026-12-01T21:25:10.720Z\",\n      \"recommendations\": [\n        {\n          \"title\": \"Your Nutrition & Metabolic Health: A Strong Foundation with Room to Optimize\",\n          \"description\": \"QA test edit: Provider note - focus on lowering ApoB with more fibre and fewer saturated fats; start Vitamin D3 2000 IU …\",\n          \"priority\": 1,\n          \"reviewedByProvider\": false,\n          \"paragraphs\": [\n            \"QA test edit: Provider note - focus on lowering ApoB with more fibre and fewer saturated fats; start Vitamin D3 2000 IU …\"\n          ],\n          \"aiParagraphs\": [\n            \"Your metabolic health is genuinely impressive for your age. Your **Metabolic Health Score of 83/100** reflects a well-fu…\",\n            \"…\"\n          ],\n          \"actionItems\": [\n            {\n              \"id\": \"c2cdfda1-1ae0-f0ba-a677-9c8060eb3707\",\n              \"title\": \"Schedule a Micronutrient Test\",\n              \"body\": \"at NextHealth to map your mineral, amino acid, and fatty acid status — this will let us build a precise supplement proto…\",\n              \"fullText\": \"**Schedule a Micronutrient Test** at NextHealth to map your mineral, amino acid, and fatty acid status — this will let u…\",\n              \"category\": \"Nutrition + Metabolic Health\",\n              \"productId\": \"40d0f6d9bf7aefe7638dfb1e\",\n              \"product\": {\n                \"id\": \"40d0f6d9bf7aefe7638dfb1e\",\n                \"name\": \"<name>\",\n                \"url\": \"https://example.com/…\"\n              },\n              \"reviewStatus\": \"ai_generated\",\n              \"review\": {\n                \"status\": \"ai_generated\",\n                \"by\": null,\n                \"at\": null,\n                \"action\": null\n              }\n            },\n            \"…\"\n          ]\n        }\n      ]\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "200 Success — action item with product attachment (Buy button)",
       "originalRequest": {
        "method": "GET",
        "header": [],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations"
        }
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [],
       "cookie": [],
       "body": "{\n  \"recommendations\": [\n    {\n      \"category\": \"Longevity\",\n      \"actionItems\": [\n        {\n          \"id\": \"uuid\",\n          \"title\": \"Start NAD+ therapy\",\n          \"body\": \"...\",\n          \"productId\": \"228ffcb3a1ac3b4a9b3c2e87\",\n          \"product\": {\n            \"id\": \"228ffcb3a1ac3b4a9b3c2e87\",\n            \"name\": \"NAD+ IV [300 mg]\",\n            \"url\": \"https://example.com/…\"\n          }\n        },\n        {\n          \"id\": \"uuid-offloc\",\n          \"title\": \"Has a productId but NO product object\",\n          \"body\": \"... (not sold at this patient's location, or product deactivated -> render no button)\",\n          \"productId\": \"d1ee03628569074f4bb935fb\"\n        },\n        {\n          \"id\": \"uuid-2\",\n          \"title\": \"No product on this one\",\n          \"body\": \"...\"\n        }\n      ]\n    }\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations"
         ]
        },
        "description": "Every category's recommendation with its action items, in the person's category order.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations"
         ]
        },
        "description": "Every category's recommendation with its action items, in the person's category order.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations"
         ]
        },
        "description": "Every category's recommendation with its action items, in the person's category order.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations"
         ]
        },
        "description": "Every category's recommendation with its action items, in the person's category order.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :category",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        ":category"
       ],
       "variable": [
        {
         "key": "category",
         "value": "<category>"
        }
       ]
      },
      "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"user_id\": \"ObjectId\",\n  \"category\": \"string\",\n  \"generatedAt\": \"Date or null\",\n  \"recommendations\": [\n    {\n      \"title\": \"string\",\n      \"description\": \"string\",\n      \"priority\": \"number\"\n    }\n  ]\n}"
      },
      {
       "name": "200 Success — action item with product attachment (Buy button)",
       "originalRequest": {
        "method": "GET",
        "header": [],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category"
        }
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [],
       "cookie": [],
       "body": "{\n  \"recommendations\": [\n    {\n      \"category\": \"Longevity\",\n      \"actionItems\": [\n        {\n          \"id\": \"uuid\",\n          \"title\": \"Start NAD+ therapy\",\n          \"body\": \"...\",\n          \"productId\": \"228ffcb3a1ac3b4a9b3c2e87\",\n          \"product\": {\n            \"id\": \"228ffcb3a1ac3b4a9b3c2e87\",\n            \"name\": \"NAD+ IV [300 mg]\",\n            \"url\": \"https://example.com/…\"\n          }\n        },\n        {\n          \"id\": \"uuid-offloc\",\n          \"title\": \"Has a productId but NO product object\",\n          \"body\": \"... (not sold at this patient's location, or product deactivated -> render no button)\",\n          \"productId\": \"d1ee03628569074f4bb935fb\"\n        },\n        {\n          \"id\": \"uuid-2\",\n          \"title\": \"No product on this one\",\n          \"body\": \"...\"\n        }\n      ]\n    }\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category is required.\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "One category's recommendation with its action items.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"Category is required.\" }\n- `404` { \"message\": \"Category not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT :category/action-items/order",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        ":category",
        "action-items",
        "order"
       ],
       "variable": [
        {
         "key": "category",
         "value": "CV (Heart) Health",
         "description": "Dashboard category display name (URL-encoded)"
        }
       ]
      },
      "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"actionItems\": [\n    {\n      \"id\": \"a2bb25b2-e086-8d5d-98bb-0599c8733903\",\n      \"title\": \"Tighten your eating window\",\n      \"body\": \"to 8–10 hours daily and aim to finish your last meal at least 3 hours before bed — this single shift can meaningfully support fat loss and metabolic efficiency over the next 4–6 weeks.\",\n      \"fullText\": \"**Tighten your eating window** to 8–10 hours daily and aim to finish your last meal at least 3 hours before bed — this single shift can meaningfully support fat loss and metabolic efficiency over the next 4–6 weeks.\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    },\n    {\n      \"id\": \"5b89609e-46d3-1036-801b-73ebe83c2269\",\n      \"title\": \"Add a daily supplement foundation\",\n      \"body\": \"starting with omega-3 (2–3g EPA/DHA), magnesium glycinate (300–400mg), and vitamin D3/K2 — since you're currently taking nothing, this is a high-leverage, low-effort upgrade.\",\n      \"fullText\": \"**Add a daily supplement foundation** starting with omega-3 (2–3g EPA/DHA), magnesium glycinate (300–400mg), and vitamin D3/K2 — since you're currently taking nothing, this is a high-leverage, low-effort upgrade.\",\n      \"category\": \"Nutrition + Metabolic Health\",\n      \"productId\": \"40d0f6d9bf7aefe7638dfb1e\"\n    },\n    {\n      \"id\": \"5e992d19-4328-66bc-c8ea-ad6fb824cbb4\",\n      \"title\": \"Boost HDL naturally\",\n      \"body\": \"by increasing weekly intake of fatty fish, extra-virgin olive oil, and nuts, and by adding any form of regular movement — even 20–30 minutes of walking daily — which is one of the most effective HDL-raising strategies.\",\n      \"fullText\": \"**Boost HDL naturally** by increasing weekly intake of fatty fish, extra-virgin olive oil, and nuts, and by adding any form of regular movement — even 20–30 minutes of walking daily — which is one of the most effective HDL-raising strategies.\",\n      \"category\": \"Nutrition + Metabolic Health\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Invalid category.\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"No recommendations found for this category.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/action-items/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "action-items",
          "order"
         ],
         "variable": [
          {
           "key": "category",
           "value": "CV (Heart) Health",
           "description": "Dashboard category display name (URL-encoded)"
          }
         ]
        },
        "description": "Reorder the action items inside a category's first recommendation. Items the client didn't include are appended at the end in their original order. Open to BOTH provider and patient — reorder doesn't touch reviewedByProvider/reviewedAt because rearranging items isn't a content review.\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid category.\" }\n- `400` { \"message\": \"order must be an array of action item ids.\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE :category/recommendations",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        ":category",
        "recommendations"
       ],
       "variable": [
        {
         "key": "category",
         "value": "<category>"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"index\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category not found.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/recommendations",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "recommendations"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"index\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Delete a specific recommendation by index for a category.\n\n`index` is the zero-based position of the recommendation in the category's current list.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"<message>\" }\n- `404` { \"message\": \"No recommendations found for this category.\" }\n- `400` { \"message\": \"Index out of range.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST :category/regenerate",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        ":category",
        "regenerate"
       ],
       "variable": [
        {
         "key": "category",
         "value": "<category>"
        }
       ]
      },
      "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"generatedAt\": \"2026-12-01T16:34:57.331Z\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Category not found.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/:category/regenerate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          ":category",
          "regenerate"
         ],
         "variable": [
          {
           "key": "category",
           "value": "<category>"
          }
         ]
        },
        "description": "Trigger regeneration of category recommendations for a specific category. Fire-and-forget.\n\n**Path parameters:**\n\n- `:category` (string, required) — Category name or slug (URL-decoded)\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Category not found.\" }\n- `400` { \"message\": \"No biomarker data for this category. Recommendations require biomarker evidence.\", }\n- `400` { \"message\": \"Unable to regenerate recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT category-order",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        "category-order"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "category-order"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"…\"\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "category-order"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"order must be an array of category strings\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "category-order"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "category-order"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "category-order"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/category-order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "category-order"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"Nutrition + Metabolic Health\",\n    \"Physical Fitness\",\n    \"Sleep + Recovery\",\n    \"Toxin Exposure\",\n    \"Liver + Kidney Health\",\n    \"Emotional Health\",\n    \"Gut Health\",\n    \"Inflammation\",\n    \"Hormone Health\",\n    \"Brain Health\",\n    \"CV (Heart) Health\",\n    \"Immune Health\",\n    \"Cancer Detection\",\n    \"Skin Health\",\n    \"Longevity\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Saves the order in which the person wants their categories shown.\n\n**Possible errors:**\n\n- `400` { \"message\": \"order must be an array of category strings\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET priorities",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        "priorities"
       ]
      },
      "description": "The person's priority action items, across categories. An item that no longer exists is left out.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "The person's priority action items, across categories. An item that no longer exists is left out.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"items\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "The person's priority action items, across categories. An item that no longer exists is left out.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "The person's priority action items, across categories. An item that no longer exists is left out.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "The person's priority action items, across categories. An item that no longer exists is left out.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "The person's priority action items, across categories. An item that no longer exists is left out.\n\nAn action item may carry a `product` object (`id`, `name`, `url`) with what a Buy button needs. Show the button only when `product` is present, and never store its `url`. See the guide *Recommendations and the Buy button*.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST priorities",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        "priorities"
       ]
      },
      "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"priorities\": [\n    \"a2bb25b2-e086-8d5d-98bb-0599c8733903\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"itemId is required.\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Action item not found in your current recommendations.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"itemId\": \"uuid-of-an-action-item\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities"
         ]
        },
        "description": "Adds an action item to the person's priorities. Safe to repeat: an item that is already there answers `200` with the list unchanged. The item must belong to one of the person's current recommendations, otherwise `404`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"itemId is required.\" }\n- `404` { \"message\": \"Action item not found in your current recommendations.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE priorities/:itemId",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        "priorities",
        ":itemId"
       ],
       "variable": [
        {
         "key": "itemId",
         "value": "uuid",
         "description": "Action item id to unpin"
        }
       ]
      },
      "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          ":itemId"
         ],
         "variable": [
          {
           "key": "itemId",
           "value": "uuid",
           "description": "Action item id to unpin"
          }
         ]
        },
        "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"priorities\": [\n    \"a2bb25b2-e086-8d5d-98bb-0599c8733903\"\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          ":itemId"
         ],
         "variable": [
          {
           "key": "itemId",
           "value": "uuid",
           "description": "Action item id to unpin"
          }
         ]
        },
        "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"itemId is required.\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          ":itemId"
         ],
         "variable": [
          {
           "key": "itemId",
           "value": "uuid",
           "description": "Action item id to unpin"
          }
         ]
        },
        "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          ":itemId"
         ],
         "variable": [
          {
           "key": "itemId",
           "value": "uuid",
           "description": "Action item id to unpin"
          }
         ]
        },
        "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          ":itemId"
         ],
         "variable": [
          {
           "key": "itemId",
           "value": "uuid",
           "description": "Action item id to unpin"
          }
         ]
        },
        "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/:itemId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          ":itemId"
         ],
         "variable": [
          {
           "key": "itemId",
           "value": "uuid",
           "description": "Action item id to unpin"
          }
         ]
        },
        "description": "Removes an action item from the person's priorities. Safe to repeat: it answers `200` even when the item was not there.\n\n**Possible errors:**\n\n- `400` { \"message\": \"itemId is required.\" }\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT priorities/order",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        "priorities",
        "order"
       ]
      },
      "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          "order"
         ]
        },
        "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"priorities\": [\n    \"a2bb25b2-e086-8d5d-98bb-0599c8733903\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          "order"
         ]
        },
        "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          "order"
         ]
        },
        "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"order must be an array of item ids.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          "order"
         ]
        },
        "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          "order"
         ]
        },
        "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"order\": [\n    \"uuid-1\",\n    \"uuid-2\",\n    \"uuid-3\"\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/priorities/order",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "priorities",
          "order"
         ]
        },
        "description": "Reorder the user's priority list. Items in `order` not in the stored list are silently dropped; items in stored list missing from `order` are appended at the end in their existing relative order. Resilient to slightly-stale FE state.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"message\": \"order must be an array of item ids.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST regenerate-all",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/category-recommendations/regenerate-all",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "category-recommendations",
        "regenerate-all"
       ]
      },
      "description": "Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/regenerate-all",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "regenerate-all"
         ]
        },
        "description": "Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/regenerate-all",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "regenerate-all"
         ]
        },
        "description": "Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/regenerate-all",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "regenerate-all"
         ]
        },
        "description": "Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/regenerate-all",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "regenerate-all"
         ]
        },
        "description": "Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/category-recommendations/regenerate-all",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "category-recommendations",
          "regenerate-all"
         ]
        },
        "description": "Trigger regeneration of ALL category recommendations for the person. Fire-and-forget.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Recommendations for each health category with their action items, the person's priorities across categories, and their order. An action item can carry a product for a Buy button."
  },
  {
   "name": "Notifications",
   "item": [
    {
     "name": "GET notifications",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/notifications?limit=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "notifications"
       ],
       "query": [
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "string, optional: Max notifications to return (default 50, clamped 1-200)"
        }
       ]
      },
      "description": "Get notifications for the patient (most recent first), with unread count. Limit clamped 1-200.\n\n**Query parameters:**\n\n- `limit` — string, optional: Max notifications to return (default 50, clamped 1-200)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications?limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications"
         ],
         "query": [
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "string, optional: Max notifications to return (default 50, clamped 1-200)"
          }
         ]
        },
        "description": "Get notifications for the patient (most recent first), with unread count. Limit clamped 1-200.\n\n**Query parameters:**\n\n- `limit` — string, optional: Max notifications to return (default 50, clamped 1-200)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"notifications\": [\n    {\n      \"_id\": \"87a3eb43f5f73dbd1ea2bf9e\",\n      \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n      \"type\": \"recommendations_ready\",\n      \"title\": \"Your protocol is ready\",\n      \"description\": \"Your latest recommendations and action items are ready to view.\",\n      \"is_read\": true,\n      \"createdAt\": \"2026-11-17T19:01:57.903Z\",\n      \"updatedAt\": \"2026-12-01T21:24:34.020Z\",\n      \"__v\": 0\n    }\n  ],\n  \"unreadCount\": 0\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications?limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications"
         ],
         "query": [
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "string, optional: Max notifications to return (default 50, clamped 1-200)"
          }
         ]
        },
        "description": "Get notifications for the patient (most recent first), with unread count. Limit clamped 1-200.\n\n**Query parameters:**\n\n- `limit` — string, optional: Max notifications to return (default 50, clamped 1-200)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications?limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications"
         ],
         "query": [
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "string, optional: Max notifications to return (default 50, clamped 1-200)"
          }
         ]
        },
        "description": "Get notifications for the patient (most recent first), with unread count. Limit clamped 1-200.\n\n**Query parameters:**\n\n- `limit` — string, optional: Max notifications to return (default 50, clamped 1-200)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications?limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications"
         ],
         "query": [
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "string, optional: Max notifications to return (default 50, clamped 1-200)"
          }
         ]
        },
        "description": "Get notifications for the patient (most recent first), with unread count. Limit clamped 1-200.\n\n**Query parameters:**\n\n- `limit` — string, optional: Max notifications to return (default 50, clamped 1-200)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications?limit=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications"
         ],
         "query": [
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "string, optional: Max notifications to return (default 50, clamped 1-200)"
          }
         ]
        },
        "description": "Get notifications for the patient (most recent first), with unread count. Limit clamped 1-200.\n\n**Query parameters:**\n\n- `limit` — string, optional: Max notifications to return (default 50, clamped 1-200)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE :id",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/notifications/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "notifications",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Notification not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Delete a specific notification.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH :id/read",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "notifications",
        ":id",
        "read"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id",
          "read"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"notification\": {\n    \"_id\": \"87a3eb43f5f73dbd1ea2bf9e\",\n    \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"type\": \"recommendations_ready\",\n    \"title\": \"Your protocol is ready\",\n    \"description\": \"Your latest recommendations and action items are ready to view.\",\n    \"is_read\": true,\n    \"createdAt\": \"2026-11-17T19:01:57.903Z\",\n    \"updatedAt\": \"2026-12-01T16:34:33.064Z\",\n    \"__v\": 0\n  }\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id",
          "read"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Notification not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id",
          "read"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id",
          "read"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id",
          "read"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/:id/read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          ":id",
          "read"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Mark a specific notification as read.\n\n**Path parameters:**\n\n- `:id` (string, required) — Notification ID\n\n**Possible errors:**\n\n- `404` { \"error\": \"Notification not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE clear",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/notifications/clear",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "notifications",
        "clear"
       ]
      },
      "description": "Delete all notifications for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/clear",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "clear"
         ]
        },
        "description": "Delete all notifications for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/clear",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "clear"
         ]
        },
        "description": "Delete all notifications for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/clear",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "clear"
         ]
        },
        "description": "Delete all notifications for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/clear",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "clear"
         ]
        },
        "description": "Delete all notifications for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/clear",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "clear"
         ]
        },
        "description": "Delete all notifications for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH mark-all-read",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/notifications/mark-all-read",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "notifications",
        "mark-all-read"
       ]
      },
      "description": "Mark all unread notifications as read for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/mark-all-read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "mark-all-read"
         ]
        },
        "description": "Mark all unread notifications as read for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/mark-all-read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "mark-all-read"
         ]
        },
        "description": "Mark all unread notifications as read for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/mark-all-read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "mark-all-read"
         ]
        },
        "description": "Mark all unread notifications as read for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/mark-all-read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "mark-all-read"
         ]
        },
        "description": "Mark all unread notifications as read for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/notifications/mark-all-read",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "notifications",
          "mark-all-read"
         ]
        },
        "description": "Mark all unread notifications as read for the patient.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The patient's in-app notifications: list, mark read, delete."
  },
  {
   "name": "Care Providers",
   "item": [
    {
     "name": "GET care-providers",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/care-providers",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "care-providers"
       ]
      },
      "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-providers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-providers"
         ]
        },
        "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"care-providers\": [\n    {\n      \"id\": \"string\",\n      \"name\": \"string\",\n      \"email\": \"string\",\n      ...\n    }\n  ]\n}"
      },
      {
       "name": "200 OK (no providers on record)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-providers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-providers"
         ]
        },
        "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"care-providers\": []\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-providers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-providers"
         ]
        },
        "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-providers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-providers"
         ]
        },
        "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-providers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-providers"
         ]
        },
        "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-providers",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-providers"
         ]
        },
        "description": "The person's care providers at their clinic.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's care providers at their clinic."
  },
  {
   "name": "Blueprint",
   "item": [
    {
     "name": "GET blueprint",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/blueprint",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "blueprint"
       ]
      },
      "description": "List blueprints. Patients see all blueprints generated for them by any provider; providers see only blueprints they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint"
         ]
        },
        "description": "List blueprints. Patients see all blueprints generated for them by any provider; providers see only blueprints they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"blueprints\": [\n    {\n      \"id\": \"437539211b7b39ca163d1985\",\n      \"patientName\": \"<name>\",\n      \"providerName\": \"<name>\",\n      \"status\": \"done\",\n      \"fileName\": \"blueprint.pdf\",\n      \"fileSize\": 786381,\n      \"docxAvailable\": true,\n      \"lastError\": null,\n      \"generatedAt\": \"2026-11-30T19:07:33.253Z\",\n      \"createdAt\": \"2026-11-30T19:06:02.736Z\"\n    },\n    {\n      \"id\": \"649bbaeafda2ebea90cd78c0\",\n      \"patientName\": \"<name>\",\n      \"providerName\": \"<name>\",\n      \"status\": \"done\",\n      \"fileName\": \"blueprint.pdf\",\n      \"fileSize\": 754198,\n      \"docxAvailable\": true,\n      \"lastError\": null,\n      \"generatedAt\": \"2026-11-30T18:46:25.660Z\",\n      \"createdAt\": \"2026-11-30T18:45:04.288Z\"\n    }\n  ]\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint"
         ]
        },
        "description": "List blueprints. Patients see all blueprints generated for them by any provider; providers see only blueprints they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint"
         ]
        },
        "description": "List blueprints. Patients see all blueprints generated for them by any provider; providers see only blueprints they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Access denied.\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint"
         ]
        },
        "description": "List blueprints. Patients see all blueprints generated for them by any provider; providers see only blueprints they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint"
         ]
        },
        "description": "List blueprints. Patients see all blueprints generated for them by any provider; providers see only blueprints they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/download",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "blueprint",
        ":id",
        "download"
       ],
       "query": [
        {
         "key": "mode",
         "value": "",
         "disabled": true,
         "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
        },
        {
         "key": "format",
         "value": "",
         "disabled": true,
         "description": "`docx` for a Word document; omit for the PDF."
        }
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"downloadUrl\": \"https://example.com/…\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Blueprint not found.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Blueprint is not ready for download.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for blueprint PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Blueprint ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n- `400` { \"message\": \"Blueprint is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "blueprint",
        ":id",
        "status"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"id\": \"437539211b7b39ca163d1985\",\n  \"status\": \"done\",\n  \"fileName\": \"blueprint.pdf\",\n  \"fileSize\": 786381,\n  \"docxAvailable\": true,\n  \"lastError\": null,\n  \"generatedAt\": \"2026-11-30T19:07:33.253Z\",\n  \"createdAt\": \"2026-11-30T19:06:02.736Z\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Blueprint not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/blueprint/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "blueprint",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Whether a blueprint is ready: the status of one blueprint, by its id.\n\n**Path parameters:**\n\n- `:id` (string, required) — Blueprint ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Blueprint not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's Blueprint PDFs: list, status and download."
  },
  {
   "name": "Baseline Report",
   "item": [
    {
     "name": "GET baseline-report",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/baseline-report",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "baseline-report"
       ]
      },
      "description": "List baseline reports. Patients see all reports generated for them by any provider; providers see only reports they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report"
         ]
        },
        "description": "List baseline reports. Patients see all reports generated for them by any provider; providers see only reports they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"baselineReports\": []\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report"
         ]
        },
        "description": "List baseline reports. Patients see all reports generated for them by any provider; providers see only reports they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report"
         ]
        },
        "description": "List baseline reports. Patients see all reports generated for them by any provider; providers see only reports they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Access denied.\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report"
         ]
        },
        "description": "List baseline reports. Patients see all reports generated for them by any provider; providers see only reports they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report"
         ]
        },
        "description": "List baseline reports. Patients see all reports generated for them by any provider; providers see only reports they generated for the currently-selected patient.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/download",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "baseline-report",
        ":id",
        "download"
       ],
       "query": [
        {
         "key": "mode",
         "value": "",
         "disabled": true,
         "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
        },
        {
         "key": "format",
         "value": "",
         "disabled": true,
         "description": "`docx` for a Word document; omit for the PDF."
        }
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"downloadUrl\": \"string (presigned S3 URL)\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Baseline report not found.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Baseline report is not ready for download.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": true,
           "description": "string, optional: \"inline\" or \"attachment\" (default: \"attachment\")"
          },
          {
           "key": "format",
           "value": "",
           "disabled": true,
           "description": "`docx` for a Word document; omit for the PDF."
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get presigned download URL for baseline report PDF. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Query parameters:**\n\n- `mode` — string, optional: \"inline\" or \"attachment\" (default: \"attachment\")\n- `format` — `docx` for a Word document; omit for the PDF.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n- `400` { \"message\": \"Baseline report is not ready for download.\" }\n- `404` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "baseline-report",
        ":id",
        "status"
       ],
       "variable": [
        {
         "key": "id",
         "value": "<id>"
        }
       ]
      },
      "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"id\": \"string\",\n  \"status\": \"pending|generating|done|failed\",\n  \"fileName\": \"string or null\",\n  \"fileSize\": \"number or null\",\n  \"lastError\": \"string or null\",\n  \"generatedAt\": \"Date or null\",\n  \"createdAt\": \"Date\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Baseline report not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/baseline-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "baseline-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "<id>"
          }
         ]
        },
        "description": "Get status of a specific baseline report. Provider must own it; patient must be its subject.\n\n**Path parameters:**\n\n- `:id` (ObjectId, required) — Baseline report ID\n\n**Possible errors:**\n\n- `404` { \"message\": \"Baseline report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's Baseline Report PDFs: list, status and download."
  },
  {
   "name": "Chat",
   "item": [
    {
     "name": "GET chairman/analyze",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "chairman",
        "analyze"
       ],
       "query": [
        {
         "key": "session_id",
         "value": "",
         "disabled": false,
         "description": "string, required: Chat session ID"
        },
        {
         "key": "user_id",
         "value": "",
         "disabled": true,
         "description": "string, optional: Requested user ID (must match the person if provided)"
        }
       ]
      },
      "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"analysis\": {\n    \"chairman_analysis\": \"(the analysis text)\"\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"session_id is required.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Forbidden\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/chairman/analyze?session_id=&user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "chairman",
          "analyze"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Chat session ID"
          },
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Requested user ID (must match the person if provided)"
          }
         ]
        },
        "description": "An analysis of one chat session, named by `session_id`.\n\n**Query parameters:**\n\n- `session_id` — string, required: Chat session ID\n- `user_id` — string, optional: Requested user ID (must match the person if provided)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET history",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "history"
       ],
       "query": [
        {
         "key": "session_id",
         "value": "",
         "disabled": false,
         "description": "string, required: Session ID"
        },
        {
         "key": "limit",
         "value": "",
         "disabled": true,
         "description": "number, optional: Max messages to return (default 20, max 100)"
        },
        {
         "key": "offset",
         "value": "",
         "disabled": true,
         "description": "number, optional: Pagination offset (default 0, min 0)"
        }
       ]
      },
      "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"history\": [\n    {\n      \"turn_id\": \"pm-1796143179512\",\n      \"human\": {\n        \"content\": \"(message text)\",\n        \"timestamp\": \"2026-12-01T16:39:41.570349+00:00\"\n      },\n      \"responses\": [\n        {\n          \"message_id\": \"0a8e5871467f007e913789c1\",\n          \"provider\": \"anthropic\",\n          \"persona_id\": \"\",\n          \"content\": \"(message text)\",\n          \"timestamp\": \"2026-12-01T16:39:43.067878+00:00\"\n        }\n      ]\n    },\n    {\n      \"turn_id\": \"chairman_2026-12-01 16:39:48.908436\",\n      \"human\": {\n        \"content\": \"(message text)\",\n        \"timestamp\": \"2026-12-01T16:39:48.908418+00:00\"\n      },\n      \"responses\": [\n        {\n          \"message_id\": \"b2e3810403e5b4a3cfb77acf\",\n          \"provider\": \"chairman\",\n          \"persona_id\": \"\",\n          \"content\": \"(message text)\",\n          \"timestamp\": \"2026-12-01T16:39:48.908418+00:00\"\n        }\n      ]\n    }\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"session_id is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/history?session_id=&limit=&offset=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "history"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID"
          },
          {
           "key": "limit",
           "value": "",
           "disabled": true,
           "description": "number, optional: Max messages to return (default 20, max 100)"
          },
          {
           "key": "offset",
           "value": "",
           "disabled": true,
           "description": "number, optional: Pagination offset (default 0, min 0)"
          }
         ]
        },
        "description": "The messages of one chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID\n- `limit` — number, optional: Max messages to return (default 20, max 100)\n- `offset` — number, optional: Pagination offset (default 0, min 0)\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET personas",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/personas",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "personas"
       ]
      },
      "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/personas",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "personas"
         ]
        },
        "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"personas\": [\n    {\n      \"_id\": \"67dfee5aa335b20012c59e41\",\n      \"name\": \"<name>\",\n      \"subtitle\": \"Longevity Specialist\",\n      \"image_key\": \"images/photo.jpg\",\n      \"image_url\": \"https://example.com/…\",\n      \"provider\": \"anthropic\",\n      \"prompt\": \"(the persona's instructions)\",\n      \"created_at\": \"2026-02-19T20:35:06.659000\",\n      \"updated_at\": \"2026-09-07T12:36:30.457000\"\n    }\n  ]\n}"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/personas",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "personas"
         ]
        },
        "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/personas",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "personas"
         ]
        },
        "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/personas",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "personas"
         ]
        },
        "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/personas",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "personas"
         ]
        },
        "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/personas",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "personas"
         ]
        },
        "description": "The AI personas the person can talk to.\n\n**Possible errors:**\n\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST respond/multi",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "respond",
        "multi"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "\"(text/event-stream)\""
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"query is required.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"This assistant isn\"t available.\" }"
      },
      {
       "name": "501 ",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "",
       "code": 501,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/multi",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "multi"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What should I focus on this month?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"turn_id\": \"<your uuid for this turn>\",\n  \"mode\": \"roundtable\",\n  \"participants\": [\n    {\n      \"kind\": \"persona\",\n      \"id\": \"<persona _id from GET /chat/personas>\"\n    }\n  ],\n  \"rounds\": 1,\n  \"closing\": \"chairman\",\n  \"context\": \"\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Multi-persona reply (the Round Table): several AI personas answer in turn, streamed as Server-Sent Events. `participants` is a list of 1–5 entries `{ \"kind\": \"persona\" | \"provider\", \"id\": \"...\" }` — a persona's `_id` from GET /chat/personas, or a provider's id for the clinic's avatar; `mode` is `panel` or `roundtable`; `rounds` the number of rounds; `closing` is `none` or `chairman` (a closing summary, also readable afterwards via GET /chat/chairman/analyze); `turn_id` is your own id for this turn.\n\n**Body (JSON):**\n\n- `query`\n- `session_id`\n- `turn_id`\n- `mode`\n- `participants`\n- `rounds`\n- `closing`\n- `context`\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"mode is invalid.\" }\n- `400` { \"error\": \"closing is invalid.\" }\n- `400` { \"error\": `participants must be 1-… valid entries.` }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `501` { \"error\": \"<message>\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST respond/stream",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "respond",
        "stream"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"_streamingResponse\": \"Content-Type: text/event-stream; SSE data passed through from upstream\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"query is required.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"This assistant isn\"t available.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/respond/stream",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "respond",
          "stream"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"In one sentence, what is HbA1c?\",\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"provider\": \"anthropic\",\n  \"turn_id\": \"<your uuid for this turn>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Stream chat response from AI service. Returns Server-Sent Events (SSE) — text/event-stream.\n\n`provider` is one of `openai`, `gemini`, `grok`, `anthropic`; optional `persona_id` chooses which persona answers (see GET /chat/personas), default Nexxi. The reply is a server-sent event stream.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"turn_id is required.\" }\n- `400` { \"error\": \"provider is invalid.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE sessions",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "sessions"
       ],
       "query": [
        {
         "key": "session_id",
         "value": "",
         "disabled": false,
         "description": "string, required: Session ID to delete"
        }
       ]
      },
      "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"session_id is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?session_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "session_id",
           "value": "",
           "disabled": false,
           "description": "string, required: Session ID to delete"
          }
         ]
        },
        "description": "Deletes a chat session.\n\n**Query parameters:**\n\n- `session_id` — string, required: Session ID to delete\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET sessions",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "sessions"
       ],
       "query": [
        {
         "key": "user_id",
         "value": "",
         "disabled": true,
         "description": "string, optional: Validated against the person if present"
        }
       ]
      },
      "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Validated against the person if present"
          }
         ]
        },
        "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"sessions\": [\n    {\n      \"_id\": \"fa164bc3a968bbcace3f9886\",\n      \"session_id\": \"12a9aaa7-19fa-c0ff-c73f-00693d428dcb\",\n      \"created_at\": \"2026-12-01T16:40:41.145000\",\n      \"is_pinned\": false,\n      \"title\": \"HbA1c Explained\",\n      \"updated_at\": \"2026-12-01T16:40:41.145000\"\n    },\n    {\n      \"_id\": \"85e293de864873d46b1a4c03\",\n      \"session_id\": \"db4699b4-87f6-3433-eb51-23d1acc9498f\",\n      \"created_at\": \"2026-11-30T20:01:16.969000\",\n      \"is_pinned\": false,\n      \"title\": \"Voice Call With Nexxi\",\n      \"updated_at\": \"2026-11-30T20:01:16.969000\"\n    },\n    {\n      \"_id\": \"de4203362c770d79a7d0bc01\",\n      \"session_id\": \"8eb50282-9868-5b5e-394c-00265c3958d8\",\n      \"created_at\": \"2026-11-30T19:44:39.815000\",\n      \"is_pinned\": false,\n      \"title\": \"Vitamin D Importance Explained\",\n      \"updated_at\": \"2026-11-30T19:47:39.245000\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Validated against the person if present"
          }
         ]
        },
        "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Forbidden\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Validated against the person if present"
          }
         ]
        },
        "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Validated against the person if present"
          }
         ]
        },
        "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Validated against the person if present"
          }
         ]
        },
        "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions?user_id=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ],
         "query": [
          {
           "key": "user_id",
           "value": "",
           "disabled": true,
           "description": "string, optional: Validated against the person if present"
          }
         ]
        },
        "description": "The person's chat sessions.\n\n**Query parameters:**\n\n- `user_id` — string, optional: Validated against the person if present\n\n**Possible errors:**\n\n- `403` { \"error\": \"Forbidden\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH sessions",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/sessions",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "sessions"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"session_id is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session_id from POST /chat/sessions>\",\n  \"title\": \"Renamed session\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Renames a chat session, pins it or unpins it.\n\nOptional `is_pinned` (boolean) pins or unpins the session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"session_id is required.\" }\n- `400` { \"error\": \"title or is_pinned is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST sessions",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/sessions",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "sessions"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"session_id\": \"a04601c8-d7a7-a084-68d6-57c2a305d768\",\n  \"title\": \"HbA1c Explained\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"query is required.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/sessions",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "sessions"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What is HbA1c?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts a new chat session.\n\n**Possible errors:**\n\n- `400` { \"error\": \"query is required.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST speech",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/speech",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "speech"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "202 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Accepted",
       "code": 202,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"preparing\": \"<true >\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Voice is off.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"session_id and turn_id are required.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"This assistant isn\"t available.\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/speech",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "speech"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"session_id\": \"<session id>\",\n  \"turn_id\": \"<the turn's id>\",\n  \"speaker_key\": \"<persona id>\",\n  \"occurrence\": 0\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Text-to-speech for a reply already in the session (voice chat). Returns the audio, or `202 { preparing: true }` while it is being prepared; 404 when voice chat is off.\n\n**Body (JSON):**\n\n- `session_id`\n- `turn_id`\n- `speaker_key`\n- `occurrence`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Voice is off.\" }\n- `400` { \"error\": \"session_id and turn_id are required.\" }\n- `400` { \"error\": \"That reply can\"t be read out.\" }\n- `502` { \"error\": \"<message>\" }\n- `400` { \"error\": \"This reply can\"t be read out.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `400` { \"error\": \"This assistant has no voice.\" }\n- `404` { \"error\": \"Nexxi\"s voice is off.\" }\n- `503` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET voice",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/voice",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "voice"
       ]
      },
      "description": "Which voice features are on for this patient: `enabled` (spoken replies), `personaIds` that have a voice, `dictate` (voice input), `agent` (live voice calls).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice"
         ]
        },
        "description": "Which voice features are on for this patient: `enabled` (spoken replies), `personaIds` that have a voice, `dictate` (voice input), `agent` (live voice calls).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"enabled\": true,\n  \"personaIds\": [],\n  \"dictate\": true,\n  \"agent\": true,\n  \"callPersonaIds\": []\n}"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice"
         ]
        },
        "description": "Which voice features are on for this patient: `enabled` (spoken replies), `personaIds` that have a voice, `dictate` (voice input), `agent` (live voice calls).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice"
         ]
        },
        "description": "Which voice features are on for this patient: `enabled` (spoken replies), `personaIds` that have a voice, `dictate` (voice input), `agent` (live voice calls).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice"
         ]
        },
        "description": "Which voice features are on for this patient: `enabled` (spoken replies), `personaIds` that have a voice, `dictate` (voice input), `agent` (live voice calls).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST voice-agent/start",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "chat",
        "voice-agent",
        "start"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"engine\": \"livekit\",\n  \"livekitUrl\": \"wss://…\",\n  \"livekitToken\": \"…\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Not found.\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"This assistant isn\"t available.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/chat/voice-agent/start",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "chat",
          "voice-agent",
          "start"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"persona_id\": \"<persona id>\",\n  \"session_id\": \"<optional: continue an existing session>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Start a live voice call with an AI persona. Returns the room URL and token to join. 404 / 409 when voice calls are off or paused, 403 when the persona is not available to the patient.\n\n**Body (JSON):**\n\n- `persona_id`\n- `session_id`\n\n**Possible errors:**\n\n- `404` { \"error\": \"Not found.\" }\n- `409` { \"error\": \"Calls with Nexxi are paused right now. You can still chat with Nexxi.\" }\n- `403` { \"error\": \"This assistant isn\"t available.\" }\n- `409` { \"error\": \"Voice calls with this assistant aren\"t available.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The AI chat: sessions, history, personas, single-persona replies (SSE), the Round Table multi-persona reply (SSE), the chairman analysis, and voice features."
  },
  {
   "name": "Care Team Chat",
   "description": "Messages between a person and their care team. There is one conversation per person, so no session id is needed. Read the history and the unread count over REST. To send and receive in real time, ask for a realtime token and connect with it.",
   "item": [
    {
     "name": "GET messages",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/provider-chat/messages?limit=30",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "provider-chat",
        "messages"
       ],
       "query": [
        {
         "key": "limit",
         "value": "30",
         "disabled": false,
         "description": "number, optional: page size 1-100 (default 30)"
        },
        {
         "key": "before",
         "value": "",
         "disabled": true,
         "description": "ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards."
        }
       ]
      },
      "description": "The messages between the person and their care team: the newest page first, each page in the order to show it (oldest to newest).\n\n**Query parameters:**\n\n- `limit` — number, optional: page size 1-100 (default 30)\n- `before` — ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ messages: [...], hasMore: boolean, nextCursor: string|null }`. Each message: `{ id, roomId, senderType: 'patient'|'provider', senderId, senderName, body, clientMsgId, createdAt }`."
     },
     "response": [
      {
       "name": "200 Success",
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "body": "{\n  \"messages\": [],\n  \"hasMore\": false,\n  \"nextCursor\": null\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/messages?limit=30",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "messages"
         ],
         "query": [
          {
           "key": "limit",
           "value": "30",
           "disabled": false,
           "description": "number, optional: page size 1-100 (default 30)"
          },
          {
           "key": "before",
           "value": "",
           "disabled": true,
           "description": "ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards."
          }
         ]
        },
        "description": "The messages between the person and their care team: the newest page first, each page in the order to show it (oldest to newest).\n\n**Query parameters:**\n\n- `limit` — number, optional: page size 1-100 (default 30)\n- `before` — ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ messages: [...], hasMore: boolean, nextCursor: string|null }`. Each message: `{ id, roomId, senderType: 'patient'|'provider', senderId, senderName, body, clientMsgId, createdAt }`."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/messages?limit=30",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "messages"
         ],
         "query": [
          {
           "key": "limit",
           "value": "30",
           "disabled": false,
           "description": "number, optional: page size 1-100 (default 30)"
          },
          {
           "key": "before",
           "value": "",
           "disabled": true,
           "description": "ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards."
          }
         ]
        },
        "description": "The messages between the person and their care team: the newest page first, each page in the order to show it (oldest to newest).\n\n**Query parameters:**\n\n- `limit` — number, optional: page size 1-100 (default 30)\n- `before` — ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ messages: [...], hasMore: boolean, nextCursor: string|null }`. Each message: `{ id, roomId, senderType: 'patient'|'provider', senderId, senderName, body, clientMsgId, createdAt }`."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/messages?limit=30",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "messages"
         ],
         "query": [
          {
           "key": "limit",
           "value": "30",
           "disabled": false,
           "description": "number, optional: page size 1-100 (default 30)"
          },
          {
           "key": "before",
           "value": "",
           "disabled": true,
           "description": "ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards."
          }
         ]
        },
        "description": "The messages between the person and their care team: the newest page first, each page in the order to show it (oldest to newest).\n\n**Query parameters:**\n\n- `limit` — number, optional: page size 1-100 (default 30)\n- `before` — ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ messages: [...], hasMore: boolean, nextCursor: string|null }`. Each message: `{ id, roomId, senderType: 'patient'|'provider', senderId, senderName, body, clientMsgId, createdAt }`."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/messages?limit=30",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "messages"
         ],
         "query": [
          {
           "key": "limit",
           "value": "30",
           "disabled": false,
           "description": "number, optional: page size 1-100 (default 30)"
          },
          {
           "key": "before",
           "value": "",
           "disabled": true,
           "description": "ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards."
          }
         ]
        },
        "description": "The messages between the person and their care team: the newest page first, each page in the order to show it (oldest to newest).\n\n**Query parameters:**\n\n- `limit` — number, optional: page size 1-100 (default 30)\n- `before` — ISO-8601, optional: return messages OLDER than this timestamp. Pass the nextCursor from a previous page to paginate backwards.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ messages: [...], hasMore: boolean, nextCursor: string|null }`. Each message: `{ id, roomId, senderType: 'patient'|'provider', senderId, senderName, body, clientMsgId, createdAt }`."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST socket-token",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/provider-chat/socket-token",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "provider-chat",
        "socket-token"
       ]
      },
      "description": "A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.\n\nThe token works only for the chat connection (the REST API refuses it) and expires after 10 minutes: ask for a new one each time you connect.\n\n**Body:** none.\n\n**Response 200:** `{ token, tokenType: 'Bearer', scope: 'chat', viewerType: 'patient', expiresIn: 600, socketPath: '/socket.io' }`.\n\n**Connecting (Socket.IO v4):**\n```js\nconst socket = io(BASE_URL, {\n  path: '/socket.io', transports: ['websocket', 'polling'],\n  auth: (cb) => getToken().then((token) => cb({ token })), // a new token on every connect\n});\nsocket.emit('room:join', {}, (ack) => { /* ack.ok, ack.canSend */ });\nsocket.emit('message:send', { body, clientMsgId }, (ack) => { /* ack.ok, ack.message */ });\nsocket.emit('message:read', {});\nsocket.on('message:new', (m) => { /* add it; skip one whose clientMsgId you already have */ });\nsocket.on('unread:update', (u) => { /* u.unreadCount */ });\n```\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "body": "{\n  \"token\": \"eyJhbGciOiJIUzI1NiIsInR5…\",\n  \"tokenType\": \"Bearer\",\n  \"scope\": \"chat\",\n  \"viewerType\": \"provider\",\n  \"patientId\": \"a4dae7fbdc5a5ca3417201a0\",\n  \"expiresIn\": 600,\n  \"socketPath\": \"/socket.io\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/socket-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "socket-token"
         ]
        },
        "description": "A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.\n\nThe token works only for the chat connection (the REST API refuses it) and expires after 10 minutes: ask for a new one each time you connect.\n\n**Body:** none.\n\n**Response 200:** `{ token, tokenType: 'Bearer', scope: 'chat', viewerType: 'patient', expiresIn: 600, socketPath: '/socket.io' }`.\n\n**Connecting (Socket.IO v4):**\n```js\nconst socket = io(BASE_URL, {\n  path: '/socket.io', transports: ['websocket', 'polling'],\n  auth: (cb) => getToken().then((token) => cb({ token })), // a new token on every connect\n});\nsocket.emit('room:join', {}, (ack) => { /* ack.ok, ack.canSend */ });\nsocket.emit('message:send', { body, clientMsgId }, (ack) => { /* ack.ok, ack.message */ });\nsocket.emit('message:read', {});\nsocket.on('message:new', (m) => { /* add it; skip one whose clientMsgId you already have */ });\nsocket.on('unread:update', (u) => { /* u.unreadCount */ });\n```\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"socket_token_is_for_patients\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/socket-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "socket-token"
         ]
        },
        "description": "A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.\n\nThe token works only for the chat connection (the REST API refuses it) and expires after 10 minutes: ask for a new one each time you connect.\n\n**Body:** none.\n\n**Response 200:** `{ token, tokenType: 'Bearer', scope: 'chat', viewerType: 'patient', expiresIn: 600, socketPath: '/socket.io' }`.\n\n**Connecting (Socket.IO v4):**\n```js\nconst socket = io(BASE_URL, {\n  path: '/socket.io', transports: ['websocket', 'polling'],\n  auth: (cb) => getToken().then((token) => cb({ token })), // a new token on every connect\n});\nsocket.emit('room:join', {}, (ack) => { /* ack.ok, ack.canSend */ });\nsocket.emit('message:send', { body, clientMsgId }, (ack) => { /* ack.ok, ack.message */ });\nsocket.emit('message:read', {});\nsocket.on('message:new', (m) => { /* add it; skip one whose clientMsgId you already have */ });\nsocket.on('unread:update', (u) => { /* u.unreadCount */ });\n```\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"patient_account_missing\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/socket-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "socket-token"
         ]
        },
        "description": "A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.\n\nThe token works only for the chat connection (the REST API refuses it) and expires after 10 minutes: ask for a new one each time you connect.\n\n**Body:** none.\n\n**Response 200:** `{ token, tokenType: 'Bearer', scope: 'chat', viewerType: 'patient', expiresIn: 600, socketPath: '/socket.io' }`.\n\n**Connecting (Socket.IO v4):**\n```js\nconst socket = io(BASE_URL, {\n  path: '/socket.io', transports: ['websocket', 'polling'],\n  auth: (cb) => getToken().then((token) => cb({ token })), // a new token on every connect\n});\nsocket.emit('room:join', {}, (ack) => { /* ack.ok, ack.canSend */ });\nsocket.emit('message:send', { body, clientMsgId }, (ack) => { /* ack.ok, ack.message */ });\nsocket.emit('message:read', {});\nsocket.on('message:new', (m) => { /* add it; skip one whose clientMsgId you already have */ });\nsocket.on('unread:update', (u) => { /* u.unreadCount */ });\n```\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/socket-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "socket-token"
         ]
        },
        "description": "A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.\n\nThe token works only for the chat connection (the REST API refuses it) and expires after 10 minutes: ask for a new one each time you connect.\n\n**Body:** none.\n\n**Response 200:** `{ token, tokenType: 'Bearer', scope: 'chat', viewerType: 'patient', expiresIn: 600, socketPath: '/socket.io' }`.\n\n**Connecting (Socket.IO v4):**\n```js\nconst socket = io(BASE_URL, {\n  path: '/socket.io', transports: ['websocket', 'polling'],\n  auth: (cb) => getToken().then((token) => cb({ token })), // a new token on every connect\n});\nsocket.emit('room:join', {}, (ack) => { /* ack.ok, ack.canSend */ });\nsocket.emit('message:send', { body, clientMsgId }, (ack) => { /* ack.ok, ack.message */ });\nsocket.emit('message:read', {});\nsocket.on('message:new', (m) => { /* add it; skip one whose clientMsgId you already have */ });\nsocket.on('unread:update', (u) => { /* u.unreadCount */ });\n```\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/socket-token",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "socket-token"
         ]
        },
        "description": "A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.\n\nThe token works only for the chat connection (the REST API refuses it) and expires after 10 minutes: ask for a new one each time you connect.\n\n**Body:** none.\n\n**Response 200:** `{ token, tokenType: 'Bearer', scope: 'chat', viewerType: 'patient', expiresIn: 600, socketPath: '/socket.io' }`.\n\n**Connecting (Socket.IO v4):**\n```js\nconst socket = io(BASE_URL, {\n  path: '/socket.io', transports: ['websocket', 'polling'],\n  auth: (cb) => getToken().then((token) => cb({ token })), // a new token on every connect\n});\nsocket.emit('room:join', {}, (ack) => { /* ack.ok, ack.canSend */ });\nsocket.emit('message:send', { body, clientMsgId }, (ack) => { /* ack.ok, ack.message */ });\nsocket.emit('message:read', {});\nsocket.on('message:new', (m) => { /* add it; skip one whose clientMsgId you already have */ });\nsocket.on('unread:update', (u) => { /* u.unreadCount */ });\n```\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET unread",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/provider-chat/unread",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "provider-chat",
        "unread"
       ]
      },
      "description": "How many care-team messages the person has not read. Call it once to start a badge; after that, changes arrive over the realtime connection (`unread:update`).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ total: number, byEmail: { [email]: number } }`. For a patient subject, use `total`."
     },
     "response": [
      {
       "name": "200 Success",
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "body": "{\n  \"total\": 0,\n  \"byEmail\": {}\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/unread",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "unread"
         ]
        },
        "description": "How many care-team messages the person has not read. Call it once to start a badge; after that, changes arrive over the realtime connection (`unread:update`).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ total: number, byEmail: { [email]: number } }`. For a patient subject, use `total`."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/unread",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "unread"
         ]
        },
        "description": "How many care-team messages the person has not read. Call it once to start a badge; after that, changes arrive over the realtime connection (`unread:update`).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ total: number, byEmail: { [email]: number } }`. For a patient subject, use `total`."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/unread",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "unread"
         ]
        },
        "description": "How many care-team messages the person has not read. Call it once to start a badge; after that, changes arrive over the realtime connection (`unread:update`).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ total: number, byEmail: { [email]: number } }`. For a patient subject, use `total`."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/provider-chat/unread",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "provider-chat",
          "unread"
         ]
        },
        "description": "How many care-team messages the person has not read. Call it once to start a badge; after that, changes arrive over the realtime connection (`unread:update`).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note).\n\n**Response 200:** `{ total: number, byEmail: { [email]: number } }`. For a patient subject, use `total`."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ]
  },
  {
   "name": "Clinic Sync",
   "item": [
    {
     "name": "GET status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-sync/status",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-sync",
        "status"
       ]
      },
      "description": "The import that brings the person's lab results in from their clinic: whether one exists, and its details.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Not authenticated.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-sync/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-sync",
          "status"
         ]
        },
        "description": "The import that brings the person's lab results in from their clinic: whether one exists, and its details.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Not authenticated.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"exists\": true,\n  \"status\": \"done\",\n  \"phase\": \"notes\",\n  \"lastError\": null,\n  \"startedAt\": \"2026-11-26T19:24:23.523Z\",\n  \"completedAt\": \"2026-11-26T19:24:26.080Z\",\n  \"stats\": {\n    \"labs_found\": 1,\n    \"notes_found\": 3,\n    \"pdfs_uploaded\": 3,\n    \"pdfs_skipped\": 1,\n    \"pdfs_skipped_not_found\": 0,\n    \"pdfs_failed\": 0\n  },\n  \"triggeredByProvider\": true,\n  \"activeLabJobs\": 0,\n  \"canResync\": true,\n  \"resyncAvailableAt\": \"2026-11-27T19:24:26.080Z\",\n  \"createdAt\": \"2026-11-11T17:04:35.453Z\",\n  \"updatedAt\": \"2026-11-26T19:24:26.080Z\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-sync/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-sync",
          "status"
         ]
        },
        "description": "The import that brings the person's lab results in from their clinic: whether one exists, and its details.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Not authenticated.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Not authenticated.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-sync/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-sync",
          "status"
         ]
        },
        "description": "The import that brings the person's lab results in from their clinic: whether one exists, and its details.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Not authenticated.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-sync/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-sync",
          "status"
         ]
        },
        "description": "The import that brings the person's lab results in from their clinic: whether one exists, and its details.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Not authenticated.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-sync/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-sync",
          "status"
         ]
        },
        "description": "The import that brings the person's lab results in from their clinic: whether one exists, and its details.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Not authenticated.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The import that brings a person's lab results in from their clinic."
  },
  {
   "name": "Image Uploads",
   "item": [
    {
     "name": "POST s3-upload-url",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/s3-upload-url",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "s3-upload-url"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/s3-upload-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "s3-upload-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"uploadUrl\": \"https://<storage link, valid for 15 minutes>\",\n  \"imageKey\": \"images/photo.jpg\",\n  \"expiresIn\": 300\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/s3-upload-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "s3-upload-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"fileName and fileType are required\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/s3-upload-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "s3-upload-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/s3-upload-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "s3-upload-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/s3-upload-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "s3-upload-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/s3-upload-url",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "s3-upload-url"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"fileName\": \"profile.png\",\n  \"fileType\": \"image/png\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "A link for uploading one image straight from the device.\n\n`fileType` must start with `image/`.\n\n**Possible errors:**\n\n- `400` { \"error\": \"fileName and fileType are required\" }\n- `400` { \"error\": \"Only image uploads are allowed\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Links for uploading images straight from a device."
  },
  {
   "name": "Biomarker Flags",
   "item": [
    {
     "name": "GET biomarker-flags",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-flags?status=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-flags"
       ],
       "query": [
        {
         "key": "status",
         "value": "",
         "description": "open | resolved | all (default: all)"
        }
       ]
      },
      "description": "List the patient's biomarker flags. Optional ?status filter (open | resolved). Sorted with open flags first, then most recent. Returns the full flag record including reading details, reason, actions history, and resolution metadata.\n\n**Query parameters:**\n\n- `status` — open | resolved | all (default: all)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "description": "open | resolved | all (default: all)"
          }
         ]
        },
        "description": "List the patient's biomarker flags. Optional ?status filter (open | resolved). Sorted with open flags first, then most recent. Returns the full flag record including reading details, reason, actions history, and resolution metadata.\n\n**Query parameters:**\n\n- `status` — open | resolved | all (default: all)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"flags\": []\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "description": "open | resolved | all (default: all)"
          }
         ]
        },
        "description": "List the patient's biomarker flags. Optional ?status filter (open | resolved). Sorted with open flags first, then most recent. Returns the full flag record including reading details, reason, actions history, and resolution metadata.\n\n**Query parameters:**\n\n- `status` — open | resolved | all (default: all)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "description": "open | resolved | all (default: all)"
          }
         ]
        },
        "description": "List the patient's biomarker flags. Optional ?status filter (open | resolved). Sorted with open flags first, then most recent. Returns the full flag record including reading details, reason, actions history, and resolution metadata.\n\n**Query parameters:**\n\n- `status` — open | resolved | all (default: all)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "description": "open | resolved | all (default: all)"
          }
         ]
        },
        "description": "List the patient's biomarker flags. Optional ?status filter (open | resolved). Sorted with open flags first, then most recent. Returns the full flag record including reading details, reason, actions history, and resolution metadata.\n\n**Query parameters:**\n\n- `status` — open | resolved | all (default: all)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags?status=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ],
         "query": [
          {
           "key": "status",
           "value": "",
           "description": "open | resolved | all (default: all)"
          }
         ]
        },
        "description": "List the patient's biomarker flags. Optional ?status filter (open | resolved). Sorted with open flags first, then most recent. Returns the full flag record including reading details, reason, actions history, and resolution metadata.\n\n**Query parameters:**\n\n- `status` — open | resolved | all (default: all)\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST biomarker-flags",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-flags",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-flags"
       ]
      },
      "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "201 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Created",
       "code": 201,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"flag\": {\n    \"id\": \"803890028c7e94a6994e66ee\",\n    \"user_id\": \"a4dae7fbdc5a5ca3417201a0\",\n    \"biomarker_name\": \"WBC\",\n    \"reading\": {\n      \"value\": \"5.8\",\n      \"date\": \"2026-11-10\"\n    },\n    \"reason\": \"collection check\",\n    \"status\": \"open\",\n    \"createdBy\": {\n      \"id\": \"a4dae7fbdc5a5ca3417201a0\",\n      \"role\": \"patient\"\n    },\n    \"actions\": [],\n    \"createdAt\": \"2026-12-01T16:34:38.930Z\",\n    \"updatedAt\": \"2026-12-01T16:34:38.930Z\"\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"biomarker_name is required.\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"WBC\",\n  \"reason\": \"Lab error, repeat test ordered\",\n  \"reading\": {\n    \"value\": \"5.8\",\n    \"date\": \"2026-11-10\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags"
         ]
        },
        "description": "Create a flag for a specific biomarker reading. Enforces one-open-flag-per-reading: returns 409 with the existing flagId if a flag is already open for the same (biomarker, date, report_id-or-value) tuple. Provider acting on a patient's behalf is supported via providerPatientOverride — the createdBy.role is recorded for audit.\n\nOptional `biomarker_id` narrows the match when the name is ambiguous.\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name is required.\" }\n- `400` { \"message\": \"reason is required.\" }\n- `400` { \"message\": \"reading must include at least value and date.\" }\n- `409` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET biomarker-flags/by-reading",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-flags",
        "by-reading"
       ],
       "query": [
        {
         "key": "biomarker_name",
         "value": "",
         "description": "required"
        },
        {
         "key": "date",
         "value": "",
         "description": "required (ISO date string)"
        },
        {
         "key": "report_id",
         "value": "",
         "description": "optional (preferred match key)"
        },
        {
         "key": "lab_company",
         "value": "",
         "description": "optional fallback match key"
        },
        {
         "key": "value",
         "value": "",
         "description": "optional fallback match key"
        }
       ]
      },
      "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags",
          "by-reading"
         ],
         "query": [
          {
           "key": "biomarker_name",
           "value": "",
           "description": "required"
          },
          {
           "key": "date",
           "value": "",
           "description": "required (ISO date string)"
          },
          {
           "key": "report_id",
           "value": "",
           "description": "optional (preferred match key)"
          },
          {
           "key": "lab_company",
           "value": "",
           "description": "optional fallback match key"
          },
          {
           "key": "value",
           "value": "",
           "description": "optional fallback match key"
          }
         ]
        },
        "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"flag\": null\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags",
          "by-reading"
         ],
         "query": [
          {
           "key": "biomarker_name",
           "value": "",
           "description": "required"
          },
          {
           "key": "date",
           "value": "",
           "description": "required (ISO date string)"
          },
          {
           "key": "report_id",
           "value": "",
           "description": "optional (preferred match key)"
          },
          {
           "key": "lab_company",
           "value": "",
           "description": "optional fallback match key"
          },
          {
           "key": "value",
           "value": "",
           "description": "optional fallback match key"
          }
         ]
        },
        "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"biomarker_name and date required.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags",
          "by-reading"
         ],
         "query": [
          {
           "key": "biomarker_name",
           "value": "",
           "description": "required"
          },
          {
           "key": "date",
           "value": "",
           "description": "required (ISO date string)"
          },
          {
           "key": "report_id",
           "value": "",
           "description": "optional (preferred match key)"
          },
          {
           "key": "lab_company",
           "value": "",
           "description": "optional fallback match key"
          },
          {
           "key": "value",
           "value": "",
           "description": "optional fallback match key"
          }
         ]
        },
        "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags",
          "by-reading"
         ],
         "query": [
          {
           "key": "biomarker_name",
           "value": "",
           "description": "required"
          },
          {
           "key": "date",
           "value": "",
           "description": "required (ISO date string)"
          },
          {
           "key": "report_id",
           "value": "",
           "description": "optional (preferred match key)"
          },
          {
           "key": "lab_company",
           "value": "",
           "description": "optional fallback match key"
          },
          {
           "key": "value",
           "value": "",
           "description": "optional fallback match key"
          }
         ]
        },
        "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags",
          "by-reading"
         ],
         "query": [
          {
           "key": "biomarker_name",
           "value": "",
           "description": "required"
          },
          {
           "key": "date",
           "value": "",
           "description": "required (ISO date string)"
          },
          {
           "key": "report_id",
           "value": "",
           "description": "optional (preferred match key)"
          },
          {
           "key": "lab_company",
           "value": "",
           "description": "optional fallback match key"
          },
          {
           "key": "value",
           "value": "",
           "description": "optional fallback match key"
          }
         ]
        },
        "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-flags/by-reading?biomarker_name=&date=&report_id=&lab_company=&value=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-flags",
          "by-reading"
         ],
         "query": [
          {
           "key": "biomarker_name",
           "value": "",
           "description": "required"
          },
          {
           "key": "date",
           "value": "",
           "description": "required (ISO date string)"
          },
          {
           "key": "report_id",
           "value": "",
           "description": "optional (preferred match key)"
          },
          {
           "key": "lab_company",
           "value": "",
           "description": "optional fallback match key"
          },
          {
           "key": "value",
           "value": "",
           "description": "optional fallback match key"
          }
         ]
        },
        "description": "Return the most recent flag (open or resolved) matching the given reading, so the FE can render a 'Flagged' badge on the reading card without fetching the full list. Returns `{ flag: null }` when no match.\n\n**Query parameters:**\n\n- `biomarker_name` — required\n- `date` — required (ISO date string)\n- `report_id` — optional (preferred match key)\n- `lab_company` — optional fallback match key\n- `value` — optional fallback match key\n\n**Possible errors:**\n\n- `400` { \"message\": \"biomarker_name and date required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Readings the patient flagged as questionable, with a reason."
  },
  {
   "name": "Daily Insight",
   "item": [
    {
     "name": "GET daily-insight",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/daily-insight",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "daily-insight"
       ],
       "query": [
        {
         "key": "tz",
         "value": "",
         "disabled": true,
         "description": "IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`."
        }
       ]
      },
      "description": "A short greeting and insight for the person, for today. It is written again when a new day starts or when something changes, such as a new lab result.\n\n**Query parameters:**\n\n- `tz` — IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/daily-insight",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "daily-insight"
         ]
        },
        "description": "A short greeting and insight for the person, for today. It is written again when a new day starts or when something changes, such as a new lab result.\n\n**Query parameters:**\n\n- `tz` — IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"text\": \"<name>, do your 10-second body scan in the app to complete your Digital Twin.\",\n  \"date\": \"2026-12-01#v7\",\n  \"id\": \"2026-12-01#v7:71367dca\",\n  \"cached\": true,\n  \"source\": \"state:no-body-scan\",\n  \"action\": {\n    \"kind\": \"body-scan\",\n    \"label\": \"Do body scan\"\n  }\n}"
      },
      {
       "name": "200 OK (fallback text)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/daily-insight",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "daily-insight"
         ]
        },
        "description": "A short greeting and insight for the person, for today. It is written again when a new day starts or when something changes, such as a new lab result.\n\n**Query parameters:**\n\n- `tz` — IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"text\": \"Hi there, your dashboard is ready.\",\n  \"date\": \"2026-05-28\",\n  \"cached\": false,\n  \"source\": \"fallback\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/daily-insight",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "daily-insight"
         ],
         "query": [
          {
           "key": "tz",
           "value": "",
           "disabled": true,
           "description": "IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`."
          }
         ]
        },
        "description": "A short greeting and insight for the person, for today. It is written again when a new day starts or when something changes, such as a new lab result.\n\n**Query parameters:**\n\n- `tz` — IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/daily-insight",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "daily-insight"
         ],
         "query": [
          {
           "key": "tz",
           "value": "",
           "disabled": true,
           "description": "IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`."
          }
         ]
        },
        "description": "A short greeting and insight for the person, for today. It is written again when a new day starts or when something changes, such as a new lab result.\n\n**Query parameters:**\n\n- `tz` — IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/daily-insight",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "daily-insight"
         ],
         "query": [
          {
           "key": "tz",
           "value": "",
           "disabled": true,
           "description": "IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`."
          }
         ]
        },
        "description": "A short greeting and insight for the person, for today. It is written again when a new day starts or when something changes, such as a new lab result.\n\n**Query parameters:**\n\n- `tz` — IANA time zone that defines 'today' (default UTC), e.g. `America/Los_Angeles`.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The day's short AI insight for the patient."
  },
  {
   "name": "Store",
   "item": [
    {
     "name": "GET categories",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/store/categories",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "store",
        "categories"
       ]
      },
      "description": "Static list of product category slugs. Exposed so the FE doesn't hardcode the enum.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "categories"
         ]
        },
        "description": "Static list of product category slugs. Exposed so the FE doesn't hardcode the enum.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"categories\": [\n    \"supplements\",\n    \"peptides\",\n    \"healthy-home\",\n    \"…\"\n  ]\n}"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "categories"
         ]
        },
        "description": "Static list of product category slugs. Exposed so the FE doesn't hardcode the enum.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "categories"
         ]
        },
        "description": "Static list of product category slugs. Exposed so the FE doesn't hardcode the enum.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "categories"
         ]
        },
        "description": "Static list of product category slugs. Exposed so the FE doesn't hardcode the enum.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      }
     ]
    },
    {
     "name": "GET products",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "store",
        "products"
       ],
       "query": [
        {
         "key": "category",
         "value": "",
         "description": "optional — filter to a single category slug"
        },
        {
         "key": "featured",
         "value": "",
         "description": "optional — 'true' restricts to featured products"
        }
       ]
      },
      "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "description": "optional — filter to a single category slug"
          },
          {
           "key": "featured",
           "value": "",
           "description": "optional — 'true' restricts to featured products"
          }
         ]
        },
        "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"products\": [\n    {\n      \"_id\": \"69ba6df3954c952bf244af19\",\n      \"category\": \"supplements\",\n      \"name\": \"IM8\",\n      \"brand\": \"IM8\",\n      \"description\": \"IM8 Daily Essentials is a premium all-in-one longevity and wellness supplement designed to support energy, recovery, immune health, cognition, gut health, and healthy aging through a science-backed blend of vitamins, minerals, probiotics, adaptogens, antioxidants, and functional nutrients. The formu…\",\n      \"imageUrl\": \"https://example.com/…\",\n      \"currentPrice\": 78,\n      \"originalPrice\": 100,\n      \"featured\": false,\n      \"buyNowUrl\": \"https://example.com/…\",\n      \"createdAt\": \"2026-05-17T18:55:12.019Z\"\n    }\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "description": "optional — filter to a single category slug"
          },
          {
           "key": "featured",
           "value": "",
           "description": "optional — 'true' restricts to featured products"
          }
         ]
        },
        "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Invalid category.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "description": "optional — filter to a single category slug"
          },
          {
           "key": "featured",
           "value": "",
           "description": "optional — 'true' restricts to featured products"
          }
         ]
        },
        "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "description": "optional — filter to a single category slug"
          },
          {
           "key": "featured",
           "value": "",
           "description": "optional — 'true' restricts to featured products"
          }
         ]
        },
        "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "description": "optional — filter to a single category slug"
          },
          {
           "key": "featured",
           "value": "",
           "description": "optional — 'true' restricts to featured products"
          }
         ]
        },
        "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/store/products?category=&featured=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "description": "optional — filter to a single category slug"
          },
          {
           "key": "featured",
           "value": "",
           "description": "optional — 'true' restricts to featured products"
          }
         ]
        },
        "description": "The products on offer. Both query parameters are optional and can be combined. Each product's `imageUrl` is a link that expires after about an hour: read the list again rather than storing links.\n\n**Query parameters:**\n\n- `category` — optional — filter to a single category slug\n- `featured` — optional — 'true' restricts to featured products\n\n**Possible errors:**\n\n- `400` { \"error\": \"Invalid category.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The product store the recommendations link to: categories and products."
  },
  {
   "name": "Skin Analysis",
   "item": [
    {
     "name": "POST analyze",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "analyze"
       ]
      },
      "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"attemptId\": \"65...\",\n  \"analysisText\": \"...\",\n  \"completedAt\": \"2026-05-28T...\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"No in-progress skin-analysis attempt.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Upload at least one photo before generating evaluation.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/analyze",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "analyze"
         ]
        },
        "description": "Runs the analysis on the uploaded photos and the saved survey, and completes the attempt. The attempt must be in progress and have at least one photo. The reply carries the analysis text.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress skin-analysis attempt.\" }\n- `400` { \"message\": \"Upload at least one photo before generating evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST infographic",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "infographic"
       ]
      },
      "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"attemptId\": \"65...\",\n  \"infographicHtml\": \"<!DOCTYPE html>...\",\n  \"infographicGeneratedAt\": \"2026-05-28T...\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"No completed skin-analysis attempt found.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/infographic",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "infographic"
         ]
        },
        "description": "Turns a completed analysis into a self-contained HTML infographic. It is kept, so later calls return it without writing it again.\n\nOptional `attemptId` picks a completed attempt; without it the latest completed attempt is used.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No completed skin-analysis attempt found.\" }\n- `400` { \"message\": \"This attempt has no analysis text yet. Run /analyze first.\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE photos/:slot",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "photos",
        ":slot"
       ],
       "variable": [
        {
         "key": "slot",
         "value": "A1",
         "description": "one of A1..C3"
        }
       ]
      },
      "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"ok\": true,\n  \"slot\": \"A1\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `Invalid slot \"…\".` }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Removes the photo in one slot of the attempt in progress. Answers normally when the slot is already empty.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\".` }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST photos/:slot",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "photos",
        ":slot"
       ],
       "variable": [
        {
         "key": "slot",
         "value": "A1",
         "description": "one of A1..C3"
        }
       ]
      },
      "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"slot\": \"A1\",\n  \"s3Key\": \"uploads/lab-report.pdf\",\n  \"mediaType\": \"image/jpeg\",\n  \"signedUrl\": \"https://example.com/…\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"mediaType\": \"image/jpeg\",\n  \"base64Data\": \"<base64-encoded jpeg/png bytes>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/photos/:slot",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "photos",
          ":slot"
         ],
         "variable": [
          {
           "key": "slot",
           "value": "A1",
           "description": "one of A1..C3"
          }
         ]
        },
        "description": "Adds one photo, base64-encoded, to a slot of the attempt in progress. A slot that already has a photo is overwritten.\n\n**Possible errors:**\n\n- `400` { \"message\": `Invalid slot \"…\". \"Allowed\": ….`, }\n- `400` { \"message\": \"mediaType must be image/*.\" }\n- `400` { \"message\": \"base64Data is required.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST retake",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/retake",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "retake"
       ]
      },
      "description": "Starts over: discards the attempt in progress so the next save begins a new one. Completed attempts are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "retake"
         ]
        },
        "description": "Starts over: discards the attempt in progress so the next save begins a new one. Completed attempts are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"ok\": true\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "retake"
         ]
        },
        "description": "Starts over: discards the attempt in progress so the next save begins a new one. Completed attempts are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "retake"
         ]
        },
        "description": "Starts over: discards the attempt in progress so the next save begins a new one. Completed attempts are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "retake"
         ]
        },
        "description": "Starts over: discards the attempt in progress so the next save begins a new one. Completed attempts are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "retake"
         ]
        },
        "description": "Starts over: discards the attempt in progress so the next save begins a new one. Completed attempts are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET state",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "state"
       ]
      },
      "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. The FE distinguishes by `status`: 'in-progress' resumes the runner; 'completed' jumps to the results view.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. The FE distinguishes by `status`: 'in-progress' resumes the runner; 'completed' jumps to the results view.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"state\": {\n    \"attemptId\": \"aa48f353e5917233b8d08d2c\",\n    \"status\": \"in-progress\",\n    \"startedAt\": \"2026-12-01T16:24:50.904Z\",\n    \"completedAt\": null,\n    \"survey\": {},\n    \"noRingLight\": false,\n    \"step\": 0,\n    \"photoSlots\": {},\n    \"analysisText\": null,\n    \"analyzedAt\": null,\n    \"infographicHtml\": null,\n    \"infographicGeneratedAt\": null\n  }\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. The FE distinguishes by `status`: 'in-progress' resumes the runner; 'completed' jumps to the results view.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. The FE distinguishes by `status`: 'in-progress' resumes the runner; 'completed' jumps to the results view.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. The FE distinguishes by `status`: 'in-progress' resumes the runner; 'completed' jumps to the results view.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. The FE distinguishes by `status`: 'in-progress' resumes the runner; 'completed' jumps to the results view.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH state",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"survey\": {\n    \"<question key>\": \"<answer>\"\n  },\n  \"noRingLight\": false,\n  \"step\": 1\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "skin-analysis",
        "state"
       ]
      },
      "description": "Saves progress on the attempt in progress, creating it on the first call. `survey` is merged into the saved answers, so a save can be sent on every change. A completed attempt cannot be changed: start again with `POST /skin-analysis/retake`.\n\n`noRingLight` (boolean) and `step` (number, the step to resume at) are optional.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"survey\": {\n    \"<question key>\": \"<answer>\"\n  },\n  \"noRingLight\": false,\n  \"step\": 1\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Saves progress on the attempt in progress, creating it on the first call. `survey` is merged into the saved answers, so a save can be sent on every change. A completed attempt cannot be changed: start again with `POST /skin-analysis/retake`.\n\n`noRingLight` (boolean) and `step` (number, the step to resume at) are optional.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"state\": {\n    \"attemptId\": \"aa48f353e5917233b8d08d2c\",\n    \"status\": \"in-progress\",\n    \"startedAt\": \"2026-12-01T16:24:50.904Z\",\n    \"completedAt\": null,\n    \"survey\": {},\n    \"noRingLight\": false,\n    \"step\": 0,\n    \"photoSlots\": {\n      \"A1\": {\n        \"mediaType\": \"image/jpeg\",\n        \"signedUrl\": \"https://example.com/…\"\n      }\n    },\n    \"analysisText\": null,\n    \"analyzedAt\": null,\n    \"infographicHtml\": null,\n    \"infographicGeneratedAt\": null\n  }\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"survey\": {\n    \"<question key>\": \"<answer>\"\n  },\n  \"noRingLight\": false,\n  \"step\": 1\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Saves progress on the attempt in progress, creating it on the first call. `survey` is merged into the saved answers, so a save can be sent on every change. A completed attempt cannot be changed: start again with `POST /skin-analysis/retake`.\n\n`noRingLight` (boolean) and `step` (number, the step to resume at) are optional.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"survey\": {\n    \"<question key>\": \"<answer>\"\n  },\n  \"noRingLight\": false,\n  \"step\": 1\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Saves progress on the attempt in progress, creating it on the first call. `survey` is merged into the saved answers, so a save can be sent on every change. A completed attempt cannot be changed: start again with `POST /skin-analysis/retake`.\n\n`noRingLight` (boolean) and `step` (number, the step to resume at) are optional.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"survey\": {\n    \"<question key>\": \"<answer>\"\n  },\n  \"noRingLight\": false,\n  \"step\": 1\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Saves progress on the attempt in progress, creating it on the first call. `survey` is merged into the saved answers, so a save can be sent on every change. A completed attempt cannot be changed: start again with `POST /skin-analysis/retake`.\n\n`noRingLight` (boolean) and `step` (number, the step to resume at) are optional.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"survey\": {\n    \"<question key>\": \"<answer>\"\n  },\n  \"noRingLight\": false,\n  \"step\": 1\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/skin-analysis/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "skin-analysis",
          "state"
         ]
        },
        "description": "Saves progress on the attempt in progress, creating it on the first call. `survey` is merged into the saved answers, so a save can be sent on every change. A completed attempt cannot be changed: start again with `POST /skin-analysis/retake`.\n\n`noRingLight` (boolean) and `step` (number, the step to resume at) are optional.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The AI skin analysis flow: state, photo slots A1–C3, analysis, infographic, retake."
  },
  {
   "name": "Biomarker Evaluation",
   "item": [
    {
     "name": "PATCH attempts/:attemptId",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-evaluation",
        "attempts",
        ":attemptId"
       ],
       "variable": [
        {
         "key": "attemptId",
         "value": "",
         "description": "the completed evaluation's attempt id"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Invalid attempt id.\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Completed evaluation not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/attempts/:attemptId",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "attempts",
          ":attemptId"
         ],
         "variable": [
          {
           "key": "attemptId",
           "value": "",
           "description": "the completed evaluation's attempt id"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"<field>\": \"<new value>\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Correct recorded values on a COMPLETED in-office (Core Assessment) evaluation. `form` carries only the fields to change; derived fields (BMI and the like) are recomputed. All biomarker-evaluation routes answer 403 for patients whose clinic has no in-office assessments.\n\n**Path parameters:**\n\n- `attemptId` — the completed evaluation's attempt id\n\n**Body (JSON):**\n\n- `form`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid attempt id.\" }\n- `404` { \"message\": \"Completed evaluation not found.\" }\n- `400` { \"message\": \"Nothing to update.\" }\n- `400` { \"message\": `Invalid value for ….` }\n- `400` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST complete",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-evaluation",
        "complete"
       ]
      },
      "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "complete"
         ]
        },
        "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"attemptId\": \"65...\",\n  \"writtenCount\": 26,\n  \"writtenNames\": [\n    \"SYSTOLIC BP\",\n    \"DIASTOLIC BP\",\n    \"...\"\n  ],\n  \"skippedBecauseWearable\": [\n    \"DAILY STEPS\",\n    \"HEART RATE VARIABILITY\"\n  ]\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "complete"
         ]
        },
        "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"No in-progress biomarker evaluation.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "complete"
         ]
        },
        "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "complete"
         ]
        },
        "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "complete"
         ]
        },
        "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/complete",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "complete"
         ]
        },
        "description": "Write biomarker readings from the saved form to UserLabSummary.biomarkers and flip the attempt to 'completed'. Gap-fill rule: for the 5 wearable-overlapping metrics (steps, hrv, sleep_score, rhr, vo2), if a current wearable value exists, the form value is NOT written (wearable wins). Every reading is stamped with `report_id = attemptId` and `lab_company = 'Physical Evaluation'`.\n\n**Possible errors:**\n\n- `404` { \"message\": \"No in-progress biomarker evaluation.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST retake",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/retake",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-evaluation",
        "retake"
       ]
      },
      "description": "Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "retake"
         ]
        },
        "description": "Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"ok\": true\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "retake"
         ]
        },
        "description": "Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "retake"
         ]
        },
        "description": "Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "retake"
         ]
        },
        "description": "Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/retake",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "retake"
         ]
        },
        "description": "Starts over: discards the evaluation in progress so the next save begins a new one. Completed evaluations and the readings they produced are kept. Safe to repeat.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET state",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-evaluation",
        "state"
       ]
      },
      "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"state\": { \"attemptId\": \"65...\", \"status\": \"in-progress\", \"form\": {...}, \"biomarkerWrites\": null } }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Returns the in-progress attempt if any (so the runner can resume), else the latest completed attempt, else null. Same shape as skin-analysis /state. The serialized `form` object holds every captured field across the multi-step flow.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH state",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       },
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "body": {
       "mode": "raw",
       "raw": "{\n  \"form\": {\n    \"brachial_sys\": \"120\",\n    \"brachial_dia\": \"80\",\n    \"hr\": \"62\",\n    \"weight\": \"175\"\n  },\n  \"step\": 2\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "url": {
       "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "biomarker-evaluation",
        "state"
       ]
      },
      "description": "Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.\n\n`step` (number) is the step to resume at.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"brachial_sys\": \"120\",\n    \"brachial_dia\": \"80\",\n    \"hr\": \"62\",\n    \"weight\": \"175\"\n  },\n  \"step\": 2\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.\n\n`step` (number) is the step to resume at.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"state\": { \"attemptId\": \"65...\", \"status\": \"in-progress\", \"form\": {...} } }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"brachial_sys\": \"120\",\n    \"brachial_dia\": \"80\",\n    \"hr\": \"62\",\n    \"weight\": \"175\"\n  },\n  \"step\": 2\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.\n\n`step` (number) is the step to resume at.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"brachial_sys\": \"120\",\n    \"brachial_dia\": \"80\",\n    \"hr\": \"62\",\n    \"weight\": \"175\"\n  },\n  \"step\": 2\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.\n\n`step` (number) is the step to resume at.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"brachial_sys\": \"120\",\n    \"brachial_dia\": \"80\",\n    \"hr\": \"62\",\n    \"weight\": \"175\"\n  },\n  \"step\": 2\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.\n\n`step` (number) is the step to resume at.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         },
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "body": {
         "mode": "raw",
         "raw": "{\n  \"form\": {\n    \"brachial_sys\": \"120\",\n    \"brachial_dia\": \"80\",\n    \"hr\": \"62\",\n    \"weight\": \"175\"\n  },\n  \"step\": 2\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "url": {
         "raw": "{{baseUrl}}/api/patient/biomarker-evaluation/state",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "biomarker-evaluation",
          "state"
         ]
        },
        "description": "Saves progress on the evaluation in progress, creating it on the first call. `form` is merged into the saved form, so a save can be sent on every change.\n\n`step` (number) is the step to resume at.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The in-office (Core Assessment) evaluation: state, saving values, completing, correcting a completed attempt, retake. 403 for clinics without in-office assessments."
  },
  {
   "name": "AI Chat Imports",
   "item": [
    {
     "name": "GET ai-chat-imports",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ai-chat-imports"
       ]
      },
      "description": "Chats the patient imported from other AI assistants (ChatGPT, Claude, …): one summary row per import.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "description": "Chats the patient imported from other AI assistants (ChatGPT, Claude, …): one summary row per import.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"items\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "description": "Chats the patient imported from other AI assistants (ChatGPT, Claude, …): one summary row per import.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "description": "Chats the patient imported from other AI assistants (ChatGPT, Claude, …): one summary row per import.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "description": "Chats the patient imported from other AI assistants (ChatGPT, Claude, …): one summary row per import.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "description": "Chats the patient imported from other AI assistants (ChatGPT, Claude, …): one summary row per import.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST ai-chat-imports",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ai-chat-imports"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "201 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Created",
       "code": 201,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"item\": {\n    \"id\": \"8279c8ea782f42fab131fbbb\",\n    \"assistant\": \"chatgpt\",\n    \"assistantLabel\": \"ChatGPT\",\n    \"inputMethod\": \"paste\",\n    \"fileName\": null,\n    \"itemCount\": 1,\n    \"counts\": {\n      \"conditions\": 0,\n      \"symptoms\": 0,\n      \"medications\": 0,\n      \"supplements\": 0,\n      \"allergies\": 0,\n      \"lab_results\": 0,\n      \"procedures\": 0,\n      \"family_history\": 0,\n      \"lifestyle\": 0,\n      \"goals\": 1,\n      \"questions\": 0,\n      \"other\": 0\n    },\n    \"removed\": {\n      \"instruction_like\": 0,\n      \"invalid\": 0,\n      \"duplicates\": 0,\n      \"over_limit\": 0,\n      \"links_removed\": 0\n    },\n    \"uploadedBy\": \"patient\",\n    \"createdAt\": \"2026-12-01T16:34:41.320Z\"\n  },\n  \"removedReasons\": {},\n  \"warnings\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }"
      },
      {
       "name": "413 Payload Too Large",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Payload Too Large",
       "code": 413,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"assistant\": \"chatgpt\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"text\": \"<the exported chat text>\",\n  \"preview\": false\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Import a chat exported from another AI assistant. `assistant` is one of `chatgpt`, `claude`, `gemini`, `copilot`, `grok`, `perplexity`, `meta_ai`, `other`; `text` is the export (max 100,000 characters) in the format described by GET /ai-chat-imports/format; `preview: true` validates and returns the parsed result without saving. The import's facts feed the Health Summary at its next rebuild; `assistantOther` names the assistant when `assistant` is `other`.\n\n**Body (JSON):**\n\n- `assistant`\n- `inputMethod`\n- `fileName`\n- `text`\n- `preview`\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"code\": \"BAD_ASSISTANT\", \"message\": \"Choose which AI assistant this came from.\" }\n- `400` { \"code\": \"<message>\" }\n- `400` { \"code\": \"EMPTY\", \"message\": \"<IMPORT_ERROR_MESSAGES.EMPTY >\"}\n- `413` { \"code\": \"TOO_LONG\", \"message\": \"<IMPORT_ERROR_MESSAGES.TOO_LONG >\"}\n- `400` { \"code\": \"<result.code>\", \"message\": \"<result.message >\"}\n- `409` { \"code\": \"LIMIT\", \"message\": `You can keep up to … AI chat imports. Delete an older one first.`, }\n- `409` { \"code\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE :id",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ai-chat-imports",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "the import's id"
        }
       ]
      },
      "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Import not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "Delete one import. Its facts stop feeding the Health Summary at the next rebuild.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ai-chat-imports",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "the import's id"
        }
       ]
      },
      "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"id\": \"8279c8ea782f42fab131fbbb\",\n  \"assistant\": \"chatgpt\",\n  \"assistantLabel\": \"ChatGPT\",\n  \"inputMethod\": \"paste\",\n  \"fileName\": null,\n  \"itemCount\": 1,\n  \"counts\": {\n    \"conditions\": 0,\n    \"symptoms\": 0,\n    \"medications\": 0,\n    \"supplements\": 0,\n    \"allergies\": 0,\n    \"lab_results\": 0,\n    \"procedures\": 0,\n    \"family_history\": 0,\n    \"lifestyle\": 0,\n    \"goals\": 1,\n    \"questions\": 0,\n    \"other\": 0\n  },\n  \"removed\": {\n    \"instruction_like\": 0,\n    \"invalid\": 0,\n    \"duplicates\": 0,\n    \"over_limit\": 0,\n    \"links_removed\": 0\n  },\n  \"uploadedBy\": \"patient\",\n  \"createdAt\": \"2026-12-01T16:34:41.320Z\",\n  \"data\": {\n    \"conditions\": [],\n    \"symptoms\": [],\n    \"medications\": [],\n    \"supplements\": [],\n    \"allergies\": [],\n    \"lab_results\": [],\n    \"procedures\": [],\n    \"family_history\": [],\n    \"lifestyle\": [],\n    \"goals\": [\n      {\n        \"goal\": \"collection check: walk 30 minutes daily\"\n      }\n    ],\n    \"questions\": [],\n    \"other\": []\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Import not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the import's id"
          }
         ]
        },
        "description": "One import with its parsed `data`.\n\n**Path parameters:**\n\n- `id` — the import's id\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `404` { \"message\": \"Import not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET format",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ai-chat-imports/format",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ai-chat-imports",
        "format"
       ]
      },
      "description": "The import format the patient should ask their AI assistant to produce: the format id, the list of supported assistants and the size limit. No patient data — use it to render the import instructions.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/format",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          "format"
         ]
        },
        "description": "The import format the patient should ask their AI assistant to produce: the format id, the list of supported assistants and the size limit. No patient data — use it to render the import instructions.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"format\": \"health-nexus-ai-import\",\n  \"version\": 1,\n  \"prompt\": \"(the persona's instructions)\",\n  \"sections\": [\n    \"conditions\",\n    \"symptoms\",\n    \"medications\",\n    \"…\"\n  ],\n  \"assistants\": [\n    {\n      \"id\": \"chatgpt\",\n      \"label\": \"ChatGPT\"\n    },\n    {\n      \"id\": \"claude\",\n      \"label\": \"Claude\"\n    },\n    {\n      \"id\": \"gemini\",\n      \"label\": \"Gemini\"\n    },\n    \"…\"\n  ],\n  \"limits\": {\n    \"maxChars\": 100000,\n    \"maxFileBytes\": 204800,\n    \"acceptedFileExtensions\": [\n      \".txt\",\n      \".md\"\n    ],\n    \"maxImports\": 20\n  }\n}"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/format",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          "format"
         ]
        },
        "description": "The import format the patient should ask their AI assistant to produce: the format id, the list of supported assistants and the size limit. No patient data — use it to render the import instructions.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/format",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          "format"
         ]
        },
        "description": "The import format the patient should ask their AI assistant to produce: the format id, the list of supported assistants and the size limit. No patient data — use it to render the import instructions.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ai-chat-imports/format",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ai-chat-imports",
          "format"
         ]
        },
        "description": "The import format the patient should ask their AI assistant to produce: the format id, the list of supported assistants and the size limit. No patient data — use it to render the import instructions.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Chats exported from other AI tools that the patient imports into their record (facts feed the Health Summary)."
  },
  {
   "name": "Care Plans",
   "item": [
    {
     "name": "GET assigned",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "care-plans",
        "assigned"
       ]
      },
      "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-plans",
          "assigned"
         ]
        },
        "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"enabled\": true,\n  \"plans\": [\n    {\n      \"id\": \"6fbf6cc35496a28058f183cb\",\n      \"name\": \"<name>\",\n      \"description\": \"Test program for the Knowledge Base check. Safe to delete.\",\n      \"startDate\": \"2026-11-18\",\n      \"status\": \"active\",\n      \"completedAt\": null,\n      \"canEdit\": false,\n      \"progress\": {\n        \"finished\": 0,\n        \"total\": 2,\n        \"next\": {\n          \"id\": \"288c296851e04e5f20d10e1a\",\n          \"title\": \"Start products\",\n          \"dueDate\": \"2026-11-18\"\n        }\n      },\n      \"steps\": [\n        {\n          \"id\": \"288c296851e04e5f20d10e1a\",\n          \"type\": \"product\",\n          \"title\": \"Start products\",\n          \"patientInstructions\": \"Take one capsule daily with food\",\n          \"who\": \"patient\",\n          \"dueDate\": \"2026-11-18\",\n          \"status\": \"pending\",\n          \"completedAt\": null\n        },\n        {\n          \"id\": \"949e4aa8b6942f9ab299b392\",\n          \"type\": \"blood_test\",\n          \"title\": \"Blood test\",\n          \"patientInstructions\": \"Fast for 12 hours before\",\n          \"who\": \"clinic\",\n          \"dueDate\": \"2026-12-18\",\n          \"status\": \"pending\",\n          \"completedAt\": null\n        }\n      ]\n    }\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-plans",
          "assigned"
         ]
        },
        "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"patientId is required.\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-plans",
          "assigned"
         ]
        },
        "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Patient not found.\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-plans",
          "assigned"
         ]
        },
        "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized.\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-plans",
          "assigned"
         ]
        },
        "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/care-plans/assigned",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "care-plans",
          "assigned"
         ]
        },
        "description": "The care plans the person's clinic put them on, each with its steps and dates. `{ enabled: false, plans: [] }` when the clinic does not use care plans.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n- `401` { \"message\": \"Unauthorized.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The care plans a person's clinic put them on."
  },
  {
   "name": "Consultation Notes",
   "item": [
    {
     "name": "GET consultation",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/consultation",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "consultation"
       ]
      },
      "description": "The person's consultations as they see them: status, dates and whether a note exists.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation"
         ]
        },
        "description": "The person's consultations as they see them: status, dates and whether a note exists.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"recordings\": [\n    {\n      \"id\": \"ed77580a42bfe458fa44490e\",\n      \"patientName\": \"<name>\",\n      \"providerName\": \"<name>\",\n      \"status\": \"done\",\n      \"durationSeconds\": null,\n      \"chunkCount\": 0,\n      \"lastError\": null,\n      \"completedAt\": \"2026-11-30T19:22:42.180Z\",\n      \"createdAt\": \"2026-11-30T19:21:25.791Z\",\n      \"hasNote\": false,\n      \"emailSent\": true\n    },\n    {\n      \"id\": \"1c5745c6088d761fd7ba7911\",\n      \"patientName\": \"<name>\",\n      \"providerName\": \"<name>\",\n      \"status\": \"done\",\n      \"durationSeconds\": null,\n      \"chunkCount\": 0,\n      \"lastError\": null,\n      \"completedAt\": \"2026-11-24T18:57:55.115Z\",\n      \"createdAt\": \"2026-11-24T18:57:12.587Z\",\n      \"hasNote\": true,\n      \"emailSent\": true\n    },\n    {\n      \"id\": \"fd594fdfe14edbae33ce5eea\",\n      \"patientName\": \"<name>\",\n      \"providerName\": \"<name>\",\n      \"status\": \"done\",\n      \"durationSeconds\": null,\n      \"chunkCount\": 0,\n      \"lastError\": null,\n      \"completedAt\": \"2026-11-23T19:01:19.358Z\",\n      \"createdAt\": \"2026-11-18T18:23:18.724Z\",\n      \"hasNote\": true,\n      \"emailSent\": true\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation"
         ]
        },
        "description": "The person's consultations as they see them: status, dates and whether a note exists.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation"
         ]
        },
        "description": "The person's consultations as they see them: status, dates and whether a note exists.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation"
         ]
        },
        "description": "The person's consultations as they see them: status, dates and whether a note exists.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation"
         ]
        },
        "description": "The person's consultations as they see them: status, dates and whether a note exists.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/note",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "consultation",
        ":id",
        "note"
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "a recording id from GET /consultation"
        }
       ]
      },
      "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"id\": \"ed77580a42bfe458fa44490e\",\n  \"patientName\": \"<name>\",\n  \"patientEmail\": \"patient@example.com\",\n  \"providerName\": \"<name>\",\n  \"transcript\": \"(the words spoken in the visit)\",\n  \"noteContent\": \"\",\n  \"notes\": [],\n  \"promptUsed\": \"consultation_patient_email\",\n  \"customPromptText\": null,\n  \"emailSent\": true,\n  \"emailSentAt\": \"patient@example.com\",\n  \"emailRecipient\": \"patient@example.com\",\n  \"emailCc\": [],\n  \"emailBody\": \"patient@example.com\",\n  \"prosperaNoteId\": null,\n  \"prosperaPushedAt\": null,\n  \"noteEditedAt\": null,\n  \"clinicalNote\": \"\",\n  \"keyPoints\": [],\n  \"durationSeconds\": null,\n  \"recordingStartedAt\": \"2026-11-17T20:35:12.919Z\",\n  \"completedAt\": \"2026-11-30T19:22:42.180Z\"\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Recording not found.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Access denied.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Note is not ready yet.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/consultation/:id/note",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "consultation",
          ":id",
          "note"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "a recording id from GET /consultation"
          }
         ]
        },
        "description": "A finished consultation's note and transcript, for one of the patient's own recordings. 400 while the note is not ready; 403 for someone else's recording.\n\n**Path parameters:**\n\n- `id` — a recording id from GET /consultation\n\n**Possible errors:**\n\n- `404` { \"message\": \"Recording not found.\" }\n- `403` { \"message\": \"Access denied.\" }\n- `400` { \"message\": \"Note is not ready yet.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's consultations and their finished notes."
  },
  {
   "name": "Core Assessment Report",
   "item": [
    {
     "name": "GET core-assessment-report",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/core-assessment-report",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "core-assessment-report"
       ]
      },
      "description": "The person's Core Assessment reports, newest first, with their status.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report"
         ]
        },
        "description": "The person's Core Assessment reports, newest first, with their status.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"coreAssessmentReports\": []\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report"
         ]
        },
        "description": "The person's Core Assessment reports, newest first, with their status.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report"
         ]
        },
        "description": "The person's Core Assessment reports, newest first, with their status.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Access denied.\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report"
         ]
        },
        "description": "The person's Core Assessment reports, newest first, with their status.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report"
         ]
        },
        "description": "The person's Core Assessment reports, newest first, with their status.\n\n**Possible errors:**\n\n- `403` { \"message\": \"Access denied.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/download",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "core-assessment-report",
        ":id",
        "download"
       ],
       "query": [
        {
         "key": "mode",
         "value": "",
         "disabled": false,
         "description": "`inline` to view in the browser, `attachment` to download"
        }
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "the report's id"
        }
       ]
      },
      "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"success\": \"<true>\", downloadUrl }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Core Assessment report not found.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Core Assessment report is not ready for download.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/download?mode=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "download"
         ],
         "query": [
          {
           "key": "mode",
           "value": "",
           "disabled": false,
           "description": "`inline` to view in the browser, `attachment` to download"
          }
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "A short-lived download URL for the report PDF.\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Query parameters:**\n\n- `mode` — `inline` to view in the browser, `attachment` to download\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n- `400` { \"message\": \"Core Assessment report is not ready for download.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET :id/status",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "core-assessment-report",
        ":id",
        "status"
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "the report's id"
        }
       ]
      },
      "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"id\": \"<s.id>\", \"status\": \"<s.status>\", \"fileName\": \"<s.fileName>\", \"fileSize\": \"<s.fileSize>\", \"lastError\": \"<s.lastError>\", \"generatedAt\": \"<s.generatedAt>\", \"createdAt\": \"<s.createdAt>\", }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Core Assessment report not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/:id/status",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          ":id",
          "status"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the report's id"
          }
         ]
        },
        "description": "Generation status of one report (`pending` → `done` / `error`).\n\n**Path parameters:**\n\n- `id` — the report's id\n\n**Possible errors:**\n\n- `404` { \"message\": \"Core Assessment report not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET eligibility",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "core-assessment-report",
        "eligibility"
       ]
      },
      "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          "eligibility"
         ]
        },
        "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"inOfficeEligible\": true,\n  \"completedAttempts\": []\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          "eligibility"
         ]
        },
        "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Patient not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          "eligibility"
         ]
        },
        "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          "eligibility"
         ]
        },
        "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          "eligibility"
         ]
        },
        "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/core-assessment-report/eligibility",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "core-assessment-report",
          "eligibility"
         ]
        },
        "description": "Whether in-office assessments apply to this patient and the completed evaluation attempts a report could be built from.\n\n**Possible errors:**\n\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's Core Assessment reports: list, status and PDF download."
  },
  {
   "name": "Demo Video",
   "item": [
    {
     "name": "GET demo-video",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/demo-video",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "demo-video"
       ]
      },
      "description": "The person's progress on the introduction video: `available`, `status`, `positionSec`, `watchedSec`, `durationSec`, `watchedAt`.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "description": "The person's progress on the introduction video: `available`, `status`, `positionSec`, `watchedSec`, `durationSec`, `watchedAt`.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"available\": false\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "description": "The person's progress on the introduction video: `available`, `status`, `positionSec`, `watchedSec`, `durationSec`, `watchedAt`.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "description": "The person's progress on the introduction video: `available`, `status`, `positionSec`, `watchedSec`, `durationSec`, `watchedAt`.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "description": "The person's progress on the introduction video: `available`, `status`, `positionSec`, `watchedSec`, `durationSec`, `watchedAt`.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "description": "The person's progress on the introduction video: `available`, `status`, `positionSec`, `watchedSec`, `durationSec`, `watchedAt`.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PATCH demo-video",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/demo-video",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "demo-video"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"demoVideo\": {\n    \"status\": \"watch_later\",\n    \"positionSec\": 0,\n    \"watchedSec\": 0,\n    \"watchedAt\": null\n  },\n  \"watchedInFull\": false\n}"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Only the patient can update this\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"status must be watch_later or completed\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"User not found\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/demo-video",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "demo-video"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"status\": \"watch_later\",\n  \"positionSec\": 42\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's demo-video progress. `status` is `watch_later` or `completed`; `positionSec` the playback position in seconds.\n\n**Body (JSON):**\n\n- `status`\n- `positionSec`\n\n**Possible errors:**\n\n- `403` { \"message\": \"Only the patient can update this\" }\n- `400` { \"message\": \"status must be watch_later or completed\" }\n- `404` { \"message\": \"User not found\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's progress on the introduction video."
  },
  {
   "name": "Digital Twin",
   "item": [
    {
     "name": "GET digital-twin",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/digital-twin",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "digital-twin"
       ]
      },
      "description": "The Digital Twin home view: the patient's gender and a `completeness` score with the items (tests, questionnaires, wearables) that feed it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin"
         ]
        },
        "description": "The Digital Twin home view: the patient's gender and a `completeness` score with the items (tests, questionnaires, wearables) that feed it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"gender\": \"male\",\n  \"completeness\": {\n    \"percent\": 23,\n    \"items\": [\n      {\n        \"key\": \"questionnaires\",\n        \"label\": \"Questionnaires\",\n        \"kind\": \"fraction\",\n        \"done\": 1,\n        \"total\": 11\n      },\n      {\n        \"key\": \"biomarkers\",\n        \"label\": \"Basic Biomarkers\",\n        \"kind\": \"fraction\",\n        \"done\": 30,\n        \"total\": 68\n      },\n      {\n        \"key\": \"total-baseline\",\n        \"label\": \"Total Baseline\",\n        \"kind\": \"binary\",\n        \"done\": false,\n        \"notLabel\": \"Not done\"\n      },\n      \"…\"\n    ]\n  }\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin"
         ]
        },
        "description": "The Digital Twin home view: the patient's gender and a `completeness` score with the items (tests, questionnaires, wearables) that feed it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin"
         ]
        },
        "description": "The Digital Twin home view: the patient's gender and a `completeness` score with the items (tests, questionnaires, wearables) that feed it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin"
         ]
        },
        "description": "The Digital Twin home view: the patient's gender and a `completeness` score with the items (tests, questionnaires, wearables) that feed it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin"
         ]
        },
        "description": "The Digital Twin home view: the patient's gender and a `completeness` score with the items (tests, questionnaires, wearables) that feed it.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET checklist",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/digital-twin/checklist",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "digital-twin",
        "checklist"
       ]
      },
      "description": "The Digital Twin checklist: what the patient has done and what is left (`items`, `done`, `total`), each item with where it leads.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/checklist",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "checklist"
         ]
        },
        "description": "The Digital Twin checklist: what the patient has done and what is left (`items`, `done`, `total`), each item with where it leads.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"items\": [\n    {\n      \"key\": \"body-scan\",\n      \"status\": \"todo\",\n      \"source\": null,\n      \"date\": null,\n      \"progress\": null,\n      \"detail\": null,\n      \"questionnaires\": null,\n      \"comingSoon\": false\n    },\n    {\n      \"key\": \"health-intake\",\n      \"status\": \"done\",\n      \"source\": \"detected\",\n      \"date\": \"2026-11-17T18:58:43.562Z\",\n      \"progress\": null,\n      \"detail\": null,\n      \"questionnaires\": null,\n      \"comingSoon\": false\n    },\n    {\n      \"key\": \"order-labs\",\n      \"status\": \"done\",\n      \"source\": \"detected\",\n      \"date\": \"2026-11-28T00:00:00.000Z\",\n      \"progress\": null,\n      \"detail\": null,\n      \"questionnaires\": null,\n      \"comingSoon\": false\n    },\n    \"…\"\n  ],\n  \"done\": 3,\n  \"total\": 8\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/checklist",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "checklist"
         ]
        },
        "description": "The Digital Twin checklist: what the patient has done and what is left (`items`, `done`, `total`), each item with where it leads.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/checklist",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "checklist"
         ]
        },
        "description": "The Digital Twin checklist: what the patient has done and what is left (`items`, `done`, `total`), each item with where it leads.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/checklist",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "checklist"
         ]
        },
        "description": "The Digital Twin checklist: what the patient has done and what is left (`items`, `done`, `total`), each item with where it leads.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/checklist",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "checklist"
         ]
        },
        "description": "The Digital Twin checklist: what the patient has done and what is left (`items`, `done`, `total`), each item with where it leads.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST simulate",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "digital-twin",
        "simulate"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "simulate"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"intent\": \"simulate\",\n  \"interpretation\": \"Simulating the effect of consistently sleeping 8 hours per night on the most sleep-sensitive biomarkers over approximately 3 months.\",\n  \"changes\": [\n    {\n      \"name\": \"Cortisol AM\",\n      \"current\": 14.2,\n      \"target\": 12,\n      \"unit\": \"ug/dL\",\n      \"reason\": \"Adequate sleep reduces HPA axis activation, lowering morning cortisol toward a more optimal range.\"\n    },\n    {\n      \"name\": \"hs-CRP\",\n      \"current\": 0.8,\n      \"target\": 0.5,\n      \"unit\": \"mg/L\",\n      \"reason\": \"Sufficient sleep reduces systemic low-grade inflammation, modestly lowering hs-CRP.\"\n    },\n    {\n      \"name\": \"HOMA-IR\",\n      \"current\": 1.45,\n      \"target\": 1.15,\n      \"unit\": \"\",\n      \"reason\": \"Consistent 8-hour sleep improves insulin sensitivity, reducing HOMA-IR.\"\n    },\n    \"…\"\n  ],\n  \"overall\": {\n    \"before\": 83,\n    \"after\": 88\n  },\n  \"domains\": [\n    {\n      \"name\": \"Nutrition + Metabolic Health\",\n      \"before\": 80,\n      \"after\": 81,\n      \"delta\": 1\n    },\n    {\n      \"name\": \"Physical Fitness\",\n      \"before\": 0,\n      \"after\": 0,\n      \"delta\": 0\n    },\n    {\n      \"name\": \"Sleep + Recovery\",\n      \"before\": 100,\n      \"after\": 100,\n      \"delta\": 0\n    },\n    \"…\"\n  ],\n  \"narrative\": \"Prioritizing 8 hours of sleep could have a striking effect on your **Inflammation** and **Immune Health** scores, both jumping from 85 → 100, and driving your overall score from **83 → 88**. Gut Health also sees a meaningful lift (+5), while CV Health and Metabolic Health nudge upward as well — refl…\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "simulate"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Ask your Digital Twin a question.\" }"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "simulate"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "simulate"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "simulate"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/digital-twin/simulate",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "digital-twin",
          "simulate"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"query\": \"What if I slept 8 hours a night?\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Ask the Digital Twin a what-if question in plain words (up to 500 characters). Returns the interpreted changes and the before / after projection of the overall score and each domain (a deterministic model; only the interpretation of the question uses AI).\n\n**Body (JSON):**\n\n- `query`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Ask your Digital Twin a question.\" }\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"message\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The Digital Twin home view: performed tests, the checklist, and the what-if simulation."
  },
  {
   "name": "Fasting Marks",
   "item": [
    {
     "name": "PATCH fasting-marks",
     "request": {
      "method": "PATCH",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/fasting-marks",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "fasting-marks"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"biomarker_name\": \"Glucose\",\n  \"reading\": {\n    \"value\": \"95\",\n    \"raw_name\": \"Glucose\",\n    \"unit\": \"mg/dL\",\n    \"date\": \"2026-11-10\",\n    \"lab_company\": \"Sample Diagnostics Lab (fictional)\",\n    \"report_id\": \"f8fef9866e8f3d9761e62b36\",\n    \"source\": \"pdf\",\n    \"fasting\": true,\n    \"fasting_set_by\": \"patient\",\n    \"fasting_set_at\": \"2026-12-01T16:34:50.941Z\"\n  }\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `A fasting mark can be set on … readings only.`, }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"That reading is not on your record.\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Your lab results changed while saving. Please try again.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PATCH",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/fasting-marks",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "fasting-marks"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"biomarker_name\": \"Glucose\",\n  \"fasting\": true,\n  \"reading\": {\n    \"date\": \"2026-11-15\",\n    \"report_id\": \"<report id>\",\n    \"value\": \"92\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Mark one of the patient's glucose, insulin, LDL, HDL or apoB readings as fasting or not. `reading` names the reading by `date` plus `report_id` or `value`. HOMA-IR pairs glucose and insulin by lab day using these marks. 409 when the lab data changed meanwhile — read it again and retry.\n\n**Body (JSON):**\n\n- `biomarker_name`\n- `fasting`\n- `reading`\n\n**Possible errors:**\n\n- `400` { \"message\": `A fasting mark can be set on … readings only.`, }\n- `400` { \"message\": \"reading must include a date and a report_id or value.\" }\n- `400` { \"message\": \"fasting must be true or false.\" }\n- `404` { \"message\": \"That reading is not on your record.\" }\n- `409` { \"message\": \"Your lab results changed while saving. Please try again.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Marks a glucose / insulin / lipid reading as fasting or not (changes how HOMA-IR pairs readings)."
  },
  {
   "name": "Lab Ordering",
   "item": [
    {
     "name": "GET address",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "address"
       ]
      },
      "description": "The shipping address on file for the person (`complete` says whether it is enough to ship a kit) and the name and phone the order form needs.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "description": "The shipping address on file for the person (`complete` says whether it is enough to ship a kit) and the name and phone the order form needs.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"address\": {\n    \"line1\": \"123 Example St\",\n    \"line2\": \"\",\n    \"city\": \"Springfield\",\n    \"state\": \"CA\",\n    \"zip\": \"90000\"\n  },\n  \"complete\": true,\n  \"patient\": {\n    \"firstName\": \"<name>\",\n    \"lastName\": \"<name>\",\n    \"birthDate\": \"1990-01-31\"\n  }\n}"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "description": "The shipping address on file for the person (`complete` says whether it is enough to ship a kit) and the name and phone the order form needs.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "description": "The shipping address on file for the person (`complete` says whether it is enough to ship a kit) and the name and phone the order form needs.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "description": "The shipping address on file for the person (`complete` says whether it is enough to ship a kit) and the name and phone the order form needs.\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT address",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "address"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"address\": {},\n  \"complete\": true\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/address",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "address"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"line1\": \"123 Main St\",\n  \"line2\": \"\",\n  \"city\": \"Los Angeles\",\n  \"state\": \"CA\",\n  \"zip\": \"90001\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save the patient's shipping address on file.\n\n**Body (JSON):**\n\n- `line1`\n- `line2`\n- `city`\n- `state`\n- `zip`\n\n**Possible errors:**\n\n- `400` { \"error\": \"<input.message>\", \"code\": \"BAD_ADDRESS\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET lookup/:lookup",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "lookup",
        ":lookup"
       ],
       "variable": [
        {
         "key": "lookup",
         "value": "",
         "description": "one of the lookup names above"
        }
       ]
      },
      "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "lookup",
          ":lookup"
         ],
         "variable": [
          {
           "key": "lookup",
           "value": "",
           "description": "one of the lookup names above"
          }
         ]
        },
        "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"data\": {\n    \"kitTypes\": [\n      {\n        \"type\": \"EDSS9LW1928DS\",\n        \"name\": \"Core Health\",\n        \"integrationProductId\": 4,\n        \"credits\": 48\n      },\n      {\n        \"type\": \"HORMONE_FOCUS_EASY_DRAW\",\n        \"name\": \"Hormone Focus\",\n        \"integrationProductId\": 5,\n        \"credits\": 0\n      },\n      {\n        \"type\": \"HEART_HEALTH_EASY_DRAW\",\n        \"name\": \"Heart & Metabolic\",\n        \"integrationProductId\": 6,\n        \"credits\": 0\n      },\n      \"…\"\n    ]\n  }\n}"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "lookup",
          ":lookup"
         ],
         "variable": [
          {
           "key": "lookup",
           "value": "",
           "description": "one of the lookup names above"
          }
         ]
        },
        "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Unknown lookup.\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "lookup",
          ":lookup"
         ],
         "variable": [
          {
           "key": "lookup",
           "value": "",
           "description": "one of the lookup names above"
          }
         ]
        },
        "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Missing search value.\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "lookup",
          ":lookup"
         ],
         "variable": [
          {
           "key": "lookup",
           "value": "",
           "description": "one of the lookup names above"
          }
         ]
        },
        "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "lookup",
          ":lookup"
         ],
         "variable": [
          {
           "key": "lookup",
           "value": "",
           "description": "one of the lookup names above"
          }
         ]
        },
        "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/lookup/:lookup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "lookup",
          ":lookup"
         ],
         "variable": [
          {
           "key": "lookup",
           "value": "",
           "description": "one of the lookup names above"
          }
         ]
        },
        "description": "Vendor lookups, by name: `siphox-kit-types`, `axiom-catalog`, `axiom_vials-catalog`, `trudiagnostic-skus`, `genova-products`, `getlabs-serviceability`, `getlabs-tests`, `bodyspec-locations`, `bodyspec-availability`. Some take query parameters (a search value, a date); 400 when one is missing, 404 for an unknown lookup.\n\n**Path parameters:**\n\n- `lookup` — one of the lookup names above\n\n**Possible errors:**\n\n- `404` { \"error\": \"Unknown lookup.\" }\n- `400` { \"error\": \"Missing search value.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET orders",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "orders"
       ]
      },
      "description": "The patient's lab orders, with vendor, status and payment state.\n\n**Body (JSON):**\n\n- `clinicShipAddress`\n- `shipType`\n- `shippingAddress`\n\n**Possible errors:**\n\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "description": "The patient's lab orders, with vendor, status and payment state.\n\n**Body (JSON):**\n\n- `clinicShipAddress`\n- `shipType`\n- `shippingAddress`\n\n**Possible errors:**\n\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"orders\": [\n    {\n      \"integrationOrderId\": 1062,\n      \"patientDisplayId\": 100001,\n      \"productName\": \"CJC-1295 / Ipamorelin / Sermorelin cartridge\",\n      \"items\": [\n        {\n          \"name\": \"<name>\",\n          \"integrationProductId\": 15,\n          \"amount\": 250,\n          \"quantity\": \"1\",\n          \"sig\": null,\n          \"refills\": null,\n          \"daySupply\": null,\n          \"icd10\": null,\n          \"dispenseAsWritten\": null,\n          \"shipType\": null,\n          \"shipRate\": null,\n          \"status\": null,\n          \"trackingNumber\": null,\n          \"prescriber\": null\n        },\n        \"…\"\n      ],\n      \"billingMode\": \"charge_patient\",\n      \"amount\": 335,\n      \"currency\": \"USD\",\n      \"status\": \"placed\",\n      \"fulfillmentStatus\": \"scheduled\",\n      \"externalRef\": null,\n      \"metadata\": {\n        \"addOn\": {\n          \"penQty\": 0,\n          \"needleQty\": 0,\n          \"needleSku\": null,\n          \"penProvided\": false,\n          \"penBundleQty\": 1,\n          \"penBundleByProduct\": {\n            \"15\": 1\n          },\n          \"penBundleProductIds\": [\n            15\n          ]\n        },\n        \"shipping\": {\n          \"price\": 35\n        },\n        \"lineItems\": [\n          {\n            \"key\": \"AXM-CJC-IPA-SERM\",\n            \"name\": \"<name>\",\n            \"quantity\": 1,\n            \"unitPrice\": 250,\n            \"productMetadata\": {\n              \"bud\": 45,\n              \"sig\": \"Inject 12 units subcutaneously 5 times per week at night\",\n              \"sku\": \"AXM-CRT-CJCIPASERM-1.5-6-6MG-3ML\",\n              \"tier\": \"Blend\",\n              \"spread\": 65,\n              \"isAddOn\": false,\n              \"contents\": \"CJC 0.5 + Ipa 2 + Serm 2 mg/mL · 3 mL cartridge · 1.5 / 6 / 6 mg total\",\n              \"strength\": \"CJC 0.5 mg/mL + Ipa 2 mg/mL + Serm 2 mg/mL\",\n              \"brandName\": \"GROW\",\n              \"frequency\": \"5x/week\",\n              \"legacySku\": \"AXM-CJC-IPA-SERM\",\n              \"clinicPrice\": 250,\n              \"daysSupplied\": \"35 days (25 doses)\",\n              \"weeksPerCart\": 5\n            },\n            \"integrationProductId\": 15\n          },\n          \"…\"\n        ],\n        \"physician\": {\n          \"npi\": \"1234567890\",\n          \"name\": \"<name>\",\n          \"phone\": \"+1 555 000 0000\",\n          \"lastName\": \"<name>\",\n          \"firstName\": \"<name>\",\n          \"credential\": \"DO\"\n        },\n        \"directions\": \"test\",\n        \"itemsTotal\": 300,\n        \"itemProtocols\": [\n          {\n            \"sku\": \"AXM-CRT-CJCIPASERM-1.5-6-6MG-3ML\",\n            \"name\": \"<name>\",\n            \"quantity\": 1,\n            \"strength\": \"CJC 0.5 mg/mL + Ipa 2 mg/mL + Serm 2 mg/mL\",\n            \"brandName\": \"GROW\",\n            \"frequency\": \"5x/week\",\n            \"directions\": \"test\",\n            \"weeksPerCart\": 5,\n            \"directionsMode\": \"suggested\",\n            \"recommendedDose\": \"12 units (60 mcg CJC + 240 mcg Ipa + 240 mcg Serm)\",\n            \"injectionsPerCart\": 25\n          },\n          \"…\"\n        ],\n        \"itemDirections\": {\n          \"15\": \"test\"\n        },\n        \"shippingAddress\": {\n          \"zip\": \"90000\",\n          \"city\": \"Springfield\",\n          \"line1\": \"123 Example St\",\n          \"phone\": \"+1 555 000 0000\",\n          \"state\": \"CA\",\n          \"country\": \"US\",\n          \"recipientName\": \"<name>\",\n          \"patientShippingAddressId\": 8\n        },\n        \"scheduledSubmitAt\": \"2026-10-14T13:44:24-07:00\",\n        \"shippingSaturdayOk\": true\n      },\n      \"createdAt\": \"2026-10-14T13:43:20-07:00\",\n      \"orderedBy\": \"<name>\",\n      \"placedByPatient\": false\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "description": "The patient's lab orders, with vendor, status and payment state.\n\n**Body (JSON):**\n\n- `clinicShipAddress`\n- `shipType`\n- `shippingAddress`\n\n**Possible errors:**\n\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "description": "The patient's lab orders, with vendor, status and payment state.\n\n**Body (JSON):**\n\n- `clinicShipAddress`\n- `shipType`\n- `shippingAddress`\n\n**Possible errors:**\n\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "description": "The patient's lab orders, with vendor, status and payment state.\n\n**Body (JSON):**\n\n- `clinicShipAddress`\n- `shipType`\n- `shippingAddress`\n\n**Possible errors:**\n\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "description": "The patient's lab orders, with vendor, status and payment state.\n\n**Body (JSON):**\n\n- `clinicShipAddress`\n- `shipType`\n- `shippingAddress`\n\n**Possible errors:**\n\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST orders",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "orders"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "202 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Accepted",
       "code": 202,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": \"<true>\",\n  \"checkoutUrl\": \"<checkout.url >\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"This vendor can\"t be ordered here.\" }"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "422 Unprocessable Entity",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unprocessable Entity",
       "code": 422,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"key\": \"<vendor key from GET /ftp-labs/vendors>\",\n  \"items\": [\n    {\n      \"integrationProductId\": 0,\n      \"quantity\": 1\n    }\n  ],\n  \"metadata\": {\n    \"shippingAddress\": {\n      \"line1\": \"\",\n      \"line2\": \"\",\n      \"city\": \"\",\n      \"state\": \"\",\n      \"zip\": \"\"\n    }\n  },\n  \"labOrderDetails\": {},\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Place a lab order for this patient. `key` is a vendor key from GET /ftp-labs/vendors; `items` the products (`integrationProductId`, `quantity`); `metadata` the vendor-specific fields (shipping address, kit type, appointment …); `labOrderDetails` for GetLabs. Prescription vendors are provider-only (403 `PROVIDER_ONLY`). Patient-paid vendors answer with a checkout to complete the payment.\n\n**Body (JSON):**\n\n- `key`\n- `items`\n- `metadata`\n- `labOrderDetails`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"This vendor can\"t be ordered here.\" }\n- `403` { \"error\": \"Prescriptions are ordered by a provider at your practice.\", \"code\": \"PROVIDER_ONLY\", }\n- `503` { \"error\": \"<message>\" }\n- `422` { \"error\": \"Add your shipping address before ordering.\", \"code\": \"ADDRESS_REQUIRED\", }\n- `403` { \"error\": \"This vendor isn\"t enabled for your practice.\", \"code\": \"NOT_ENABLED\" }\n- `409` { \"error\": `… orders aren\"t held for payment at this practice. Ask Prospera to turn on payment enforcement for it.`, \"code\": \"PAYMENT_NOT_ENFORCED\", }\n- `422` { \"error\": \"Choose a kit that your practice offers.\", \"code\": \"BAD_ITEM\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST payments",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "payments"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }"
      },
      {
       "name": "409 Conflict",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Conflict",
       "code": 409,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }"
      },
      {
       "name": "422 Unprocessable Entity",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unprocessable Entity",
       "code": 422,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"orders\": [\n    {\n      \"orderId\": \"<order id from GET /ftp-labs/orders>\"\n    }\n  ],\n  \"returnPath\": \"/records\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Starts the online payment for one or more of the person's unpaid orders and returns the checkout address. `503` `PAYMENTS_UNAVAILABLE` when the clinic has no online payment. The orders come from `GET /ftp-labs/orders`.\n\n**Body (JSON):**\n\n- `orders`\n- `returnPath`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Choose the order to pay.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Order not found.\", \"code\": \"NOT_FOUND\" }\n- `409` { \"error\": \"This order isn\"t waiting for payment.\", \"code\": \"NOT_AWAITING_PAYMENT\" }\n- `422` { \"error\": \"Only an Axiom pens and vials order from the same cart can be paid together.\", \"code\": \"bad_request\", }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST payments/confirm",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "payments",
        "confirm"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/payments/confirm",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "payments",
          "confirm"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"sessionId\": \"<checkout session id>\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Confirms a payment after the checkout returns, by its `sessionId`.\n\n**Body (JSON):**\n\n- `sessionId`\n\n**Possible errors:**\n\n- `400` { \"error\": \"Unknown payment.\", \"code\": \"bad_request\" }\n- `503` { \"error\": \"<message>\" }\n- `404` { \"error\": \"Unknown payment.\", \"code\": \"NOT_FOUND\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET vendors",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/vendors",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "vendors"
       ]
      },
      "description": "The lab vendors the patient can order from at their clinic, with their products and prices; `isProvider` tells whether the caller is a provider (prescription vendors need one).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vendors",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vendors"
         ]
        },
        "description": "The lab vendors the patient can order from at their clinic, with their products and prices; `isProvider` tells whether the caller is a provider (prescription vendors need one).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"vendors\": [\n    {\n      \"key\": \"siphox\",\n      \"title\": \"SiPhox Health\",\n      \"moduleId\": 9,\n      \"billingModes\": [\n        \"charge_patient\",\n        \"log_for_settlement\"\n      ],\n      \"products\": [\n        {\n          \"integrationProductId\": 4,\n          \"key\": \"Core Health\",\n          \"name\": \"Core Health\",\n          \"description\": null,\n          \"price\": 300,\n          \"minPrice\": 225,\n          \"currency\": \"USD\",\n          \"quoteItemCostId\": 16125,\n          \"metadata\": {\n            \"sku\": \"EDSS9LW1928DS\",\n            \"isAddOn\": false,\n            \"siphoxKitType\": \"EASY_DRAW_ORIGINAL\"\n          }\n        }\n      ],\n      \"paymentEnforced\": true,\n      \"shippingPrice\": 0,\n      \"overnightShippingPrice\": 0,\n      \"submitDelayMinutes\": null,\n      \"billing\": \"patient\"\n    }\n  ],\n  \"paymentsAvailable\": true,\n  \"isProvider\": false\n}"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vendors",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vendors"
         ]
        },
        "description": "The lab vendors the patient can order from at their clinic, with their products and prices; `isProvider` tells whether the caller is a provider (prescription vendors need one).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vendors",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vendors"
         ]
        },
        "description": "The lab vendors the patient can order from at their clinic, with their products and prices; `isProvider` tells whether the caller is a provider (prescription vendors need one).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vendors",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vendors"
         ]
        },
        "description": "The lab vendors the patient can order from at their clinic, with their products and prices; `isProvider` tells whether the caller is a provider (prescription vendors need one).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST vibrant/orders",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "vibrant",
        "orders"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "202 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Accepted",
       "code": 202,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": \"<true>\",\n  \"checkoutUrl\": \"<checkout.url >\"\n}"
      },
      {
       "name": "403 Forbidden",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }"
      },
      {
       "name": "503 Service Unavailable",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Service Unavailable",
       "code": 503,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Choose at least one test.\" }"
      },
      {
       "name": "422 Unprocessable Entity",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unprocessable Entity",
       "code": 422,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/orders",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "orders"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"testCodes\": [\n    \"<test code from GET /ftp-labs/vibrant/setup>\"\n  ],\n  \"collectionDate\": \"2026-12-10\",\n  \"collectionTime\": \"09:00\",\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Los Angeles\",\n    \"state\": \"CA\",\n    \"zip\": \"90001\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Order a Vibrant test kit for the patient: `testCodes`, the blood-draw `collectionDate` (YYYY-MM-DD) and `collectionTime` (HH:MM), and the shipping `address`.\n\n**Body (JSON):**\n\n- `testCodes`\n- `collectionDate`\n- `collectionTime`\n- `address`\n\n**Possible errors:**\n\n- `403` { \"error\": \"Vibrant can\"t be ordered here right now.\", \"code\": \"VIBRANT_OFF\" }\n- `503` { \"error\": \"<message>\" }\n- `400` { \"error\": \"Choose at least one test.\" }\n- `400` { \"error\": \"Choose the date of the blood draw.\" }\n- `400` { \"error\": \"Fill in street, city, state and ZIP.\" }\n- `422` { \"error\": \"Vibrant ordering isn\"t set up for your practice yet. Please contact your practice.\", \"code\": \"VIBRANT_NOT_SET_UP\", }\n- `422` { \"error\": `These tests can\"t be ordered \"here\": ….`, \"code\": \"TEST_NOT_PRICED\", }\n- `422` { \"error\": \"These tests have no price set yet.\" }\n- `422` { \"error\": \"Some of these tests can\"t be ordered right now. Please refresh and try again.\", \"code\": \"TEST_NOT_ORDERABLE\", \"testCodes\": \"<gone>\", }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET vibrant/setup",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/setup",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-labs",
        "vibrant",
        "setup"
       ]
      },
      "description": "Vibrant kit ordering setup for this patient: available tests, the shipping address on file, and whether Vibrant ordering is on (403 `VIBRANT_OFF` otherwise).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/setup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "setup"
         ]
        },
        "description": "Vibrant kit ordering setup for this patient: available tests, the shipping address on file, and whether Vibrant ordering is on (403 `VIBRANT_OFF` otherwise).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"available\": false,\n  \"paymentsAvailable\": true,\n  \"isProvider\": false,\n  \"location\": null,\n  \"tests\": [],\n  \"address\": {\n    \"street\": \"123 Example St\",\n    \"city\": \"Springfield\",\n    \"state\": \"CA\",\n    \"zip\": \"90000\",\n    \"phone\": \"+1 555 000 0000\"\n  }\n}"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/setup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "setup"
         ]
        },
        "description": "Vibrant kit ordering setup for this patient: available tests, the shipping address on file, and whether Vibrant ordering is on (403 `VIBRANT_OFF` otherwise).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/setup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "setup"
         ]
        },
        "description": "Vibrant kit ordering setup for this patient: available tests, the shipping address on file, and whether Vibrant ordering is on (403 `VIBRANT_OFF` otherwise).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-labs/vibrant/setup",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-labs",
          "vibrant",
          "setup"
         ]
        },
        "description": "Vibrant kit ordering setup for this patient: available tests, the shipping address on file, and whether Vibrant ordering is on (403 `VIBRANT_OFF` otherwise).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Ordering lab tests for the person through their clinic: vendors, shipping address, orders and payments, and test kits sent to the home."
  },
  {
   "name": "Clinic Store",
   "item": [
    {
     "name": "GET categories",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-store/categories",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-store",
        "categories"
       ]
      },
      "description": "The clinic store's tabs for this patient (only tabs with items at the patient's facility), in order.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "categories"
         ]
        },
        "description": "The clinic store's tabs for this patient (only tabs with items at the patient's facility), in order.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"categories\": [\n    {\n      \"slug\": \"advanced-longevity\",\n      \"name\": \"Advanced Longevity\"\n    },\n    {\n      \"slug\": \"wellness-technology\",\n      \"name\": \"Wellness Technology\"\n    },\n    {\n      \"slug\": \"iv-therapy\",\n      \"name\": \"IV Therapy\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "categories"
         ]
        },
        "description": "The clinic store's tabs for this patient (only tabs with items at the patient's facility), in order.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "categories"
         ]
        },
        "description": "The clinic store's tabs for this patient (only tabs with items at the patient's facility), in order.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "categories"
         ]
        },
        "description": "The clinic store's tabs for this patient (only tabs with items at the patient's facility), in order.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/categories",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "categories"
         ]
        },
        "description": "The clinic store's tabs for this patient (only tabs with items at the patient's facility), in order.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET products",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "ftp-store",
        "products"
       ],
       "query": [
        {
         "key": "category",
         "value": "",
         "disabled": false,
         "description": "a tab slug from GET /ftp-store/categories"
        }
       ]
      },
      "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "a tab slug from GET /ftp-store/categories"
          }
         ]
        },
        "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"products\": [\n    {\n      \"_id\": \"advanced-longevity-svc-0\",\n      \"category\": \"\",\n      \"name\": \"EBOO Therapy Session a\",\n      \"brand\": \"\",\n      \"description\": \"<ul><li>Extracorporeal Blood Oxygenation and Ozonation \\\"EBOO\\\" Therapy combines blood oxygenation and ozonation to enhance cellular health, reduce inflammation, increase immune resilience, and promote longevity. Available at most Next Health locations--please inquire for details.</li></ul>\",\n      \"imageUrl\": \"https://example.com/…\",\n      \"currentPrice\": 1499,\n      \"originalPrice\": 1499,\n      \"featured\": false,\n      \"buyNowUrl\": \"https://example.com/…\",\n      \"createdAt\": \"1970-01-01T00:00:00.000Z\",\n      \"ftpId\": \"prod:12119\"\n    },\n    {\n      \"_id\": \"advanced-longevity-svc-1\",\n      \"category\": \"\",\n      \"name\": \"Executive Physical One\",\n      \"brand\": \"\",\n      \"description\": \"Experience the benefits of Executive Physical One at Next Health.\",\n      \"imageUrl\": \"https://example.com/…\",\n      \"currentPrice\": 12000,\n      \"originalPrice\": 12000,\n      \"featured\": false,\n      \"buyNowUrl\": \"https://example.com/…\",\n      \"createdAt\": \"1970-01-01T00:00:00.000Z\",\n      \"ftpId\": \"prod:7282\"\n    },\n    {\n      \"_id\": \"advanced-longevity-svc-2\",\n      \"category\": \"\",\n      \"name\": \"Executive Physical Plus\",\n      \"brand\": \"\",\n      \"description\": \"Experience the Next Health Executive Physical—the physical exam of the future that delivers transformative and life-saving outcomes through advanced diagnostics. Gain insights that can change your life by detecting diseases early, ensuring a healthier and longer future. Get started today\",\n      \"imageUrl\": \"https://example.com/…\",\n      \"currentPrice\": 14500,\n      \"originalPrice\": 14500,\n      \"featured\": false,\n      \"buyNowUrl\": \"https://example.com/…\",\n      \"createdAt\": \"1970-01-01T00:00:00.000Z\",\n      \"ftpId\": \"prod:8396\"\n    },\n    \"…\"\n  ]\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "a tab slug from GET /ftp-store/categories"
          }
         ]
        },
        "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "a tab slug from GET /ftp-store/categories"
          }
         ]
        },
        "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"A category slug is required.\" }"
      },
      {
       "name": "502 Bad Gateway",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "a tab slug from GET /ftp-store/categories"
          }
         ]
        },
        "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Gateway",
       "code": 502,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "a tab slug from GET /ftp-store/categories"
          }
         ]
        },
        "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/ftp-store/products?category=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "ftp-store",
          "products"
         ],
         "query": [
          {
           "key": "category",
           "value": "",
           "disabled": false,
           "description": "a tab slug from GET /ftp-store/categories"
          }
         ]
        },
        "description": "The cards of one store tab (`?category=<slug>`). The Buy link opens the booking page.\n\n**Query parameters:**\n\n- `category` — a tab slug from GET /ftp-store/categories\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n- `400` { \"error\": \"A category slug is required.\" }\n- `502` { \"error\": \"<message>\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The clinic's store as the person sees it: categories and products, each with a link to book or buy."
  },
  {
   "name": "Page Summary",
   "item": [
    {
     "name": "GET page-summary",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/page-summary?pageKey=&params=",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "page-summary"
       ],
       "query": [
        {
         "key": "pageKey",
         "value": "",
         "disabled": false,
         "description": "the page (see the list in the description)"
        },
        {
         "key": "params",
         "value": "",
         "disabled": false,
         "description": "JSON object of the page's parameters, URL-encoded"
        }
       ]
      },
      "description": "The 'On this page' AI summary with up to three suggested questions, for one portal page. `pageKey` is one of `home`, `dashboard`, `dashboard-category`, `biomarkers`, `biomarkers-analysis`, `health-summary`, `records`, `records-report`, `records-response`, `records-questionnaire`, `protocol`, `medications`, `blueprint`, `wearables`, `digital-twin`; `params` is a JSON object of that page's parameters (for example `{\"category\":\"Metabolic Health\"}` for `dashboard-category`). Cached per page; one AI call when stale.\n\n**Query parameters:**\n\n- `pageKey` — the page (see the list in the description)\n- `params` — JSON object of the page's parameters, URL-encoded\n\n**Possible errors:**\n\n- `401` { \"error\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/page-summary?pageKey=&params=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "page-summary"
         ],
         "query": [
          {
           "key": "pageKey",
           "value": "",
           "disabled": false,
           "description": "the page (see the list in the description)"
          },
          {
           "key": "params",
           "value": "",
           "disabled": false,
           "description": "JSON object of the page's parameters, URL-encoded"
          }
         ]
        },
        "description": "The 'On this page' AI summary with up to three suggested questions, for one portal page. `pageKey` is one of `home`, `dashboard`, `dashboard-category`, `biomarkers`, `biomarkers-analysis`, `health-summary`, `records`, `records-report`, `records-response`, `records-questionnaire`, `protocol`, `medications`, `blueprint`, `wearables`, `digital-twin`; `params` is a JSON object of that page's parameters (for example `{\"category\":\"Metabolic Health\"}` for `dashboard-category`). Cached per page; one AI call when stale.\n\n**Query parameters:**\n\n- `pageKey` — the page (see the list in the description)\n- `params` — JSON object of the page's parameters, URL-encoded\n\n**Possible errors:**\n\n- `401` { \"error\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"pageKey\": \"dashboard\",\n  \"summary\": \"This page shows a health dashboard overview with a Vitality score, category scores, and pinned biomarkers.\\n\\n• Vitality score is 83/100; 9 of 53 biomarkers are out of range.\\n• Lowest category scores: Gut Health 62, Hormone Health 79, Nutrition + Metabolic Health 80.\\n• Pinned flags: Estradiol is poor …\",\n  \"questions\": [\n    \"What does a poor low Estradiol of 23.1 pg/mL mean?\",\n    \"Why is my Gut Health score so much lower than the others?\",\n    \"What can affect a poor high Creatinine result?\"\n  ],\n  \"cached\": true,\n  \"generatedAt\": \"2026-11-30T19:42:43.956Z\"\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/page-summary?pageKey=&params=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "page-summary"
         ],
         "query": [
          {
           "key": "pageKey",
           "value": "",
           "disabled": false,
           "description": "the page (see the list in the description)"
          },
          {
           "key": "params",
           "value": "",
           "disabled": false,
           "description": "JSON object of the page's parameters, URL-encoded"
          }
         ]
        },
        "description": "The 'On this page' AI summary with up to three suggested questions, for one portal page. `pageKey` is one of `home`, `dashboard`, `dashboard-category`, `biomarkers`, `biomarkers-analysis`, `health-summary`, `records`, `records-report`, `records-response`, `records-questionnaire`, `protocol`, `medications`, `blueprint`, `wearables`, `digital-twin`; `params` is a JSON object of that page's parameters (for example `{\"category\":\"Metabolic Health\"}` for `dashboard-category`). Cached per page; one AI call when stale.\n\n**Query parameters:**\n\n- `pageKey` — the page (see the list in the description)\n- `params` — JSON object of the page's parameters, URL-encoded\n\n**Possible errors:**\n\n- `401` { \"error\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/page-summary?pageKey=&params=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "page-summary"
         ],
         "query": [
          {
           "key": "pageKey",
           "value": "",
           "disabled": false,
           "description": "the page (see the list in the description)"
          },
          {
           "key": "params",
           "value": "",
           "disabled": false,
           "description": "JSON object of the page's parameters, URL-encoded"
          }
         ]
        },
        "description": "The 'On this page' AI summary with up to three suggested questions, for one portal page. `pageKey` is one of `home`, `dashboard`, `dashboard-category`, `biomarkers`, `biomarkers-analysis`, `health-summary`, `records`, `records-report`, `records-response`, `records-questionnaire`, `protocol`, `medications`, `blueprint`, `wearables`, `digital-twin`; `params` is a JSON object of that page's parameters (for example `{\"category\":\"Metabolic Health\"}` for `dashboard-category`). Cached per page; one AI call when stale.\n\n**Query parameters:**\n\n- `pageKey` — the page (see the list in the description)\n- `params` — JSON object of the page's parameters, URL-encoded\n\n**Possible errors:**\n\n- `401` { \"error\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/page-summary?pageKey=&params=",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "page-summary"
         ],
         "query": [
          {
           "key": "pageKey",
           "value": "",
           "disabled": false,
           "description": "the page (see the list in the description)"
          },
          {
           "key": "params",
           "value": "",
           "disabled": false,
           "description": "JSON object of the page's parameters, URL-encoded"
          }
         ]
        },
        "description": "The 'On this page' AI summary with up to three suggested questions, for one portal page. `pageKey` is one of `home`, `dashboard`, `dashboard-category`, `biomarkers`, `biomarkers-analysis`, `health-summary`, `records`, `records-report`, `records-response`, `records-questionnaire`, `protocol`, `medications`, `blueprint`, `wearables`, `digital-twin`; `params` is a JSON object of that page's parameters (for example `{\"category\":\"Metabolic Health\"}` for `dashboard-category`). Cached per page; one AI call when stale.\n\n**Query parameters:**\n\n- `pageKey` — the page (see the list in the description)\n- `params` — JSON object of the page's parameters, URL-encoded\n\n**Possible errors:**\n\n- `401` { \"error\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "A short AI summary of one view of the person's data, with suggested questions: one call returns both."
  },
  {
   "name": "Patient Updates",
   "item": [
    {
     "name": "GET recent",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "patient-updates",
        "recent"
       ]
      },
      "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"enabled\": false,\n  \"updates\": []\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"patientId is required.\" }"
      },
      {
       "name": "404 Not Found",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Not Found",
       "code": 404,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Patient not found.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/patient-updates/recent",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "patient-updates",
          "recent"
         ]
        },
        "description": "Facts the AI collected from the patient's recent chats and saved visit notes (medications, supplements, symptoms …), newest first. `{ enabled: false, updates: [] }` when the feature is off.\n\n**Possible errors:**\n\n- `400` { \"message\": \"patientId is required.\" }\n- `404` { \"message\": \"Patient not found.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "Facts the AI assistant collected from the person's chats and visit notes."
  },
  {
   "name": "Regimen (Medications & Supplements)",
   "item": [
    {
     "name": "GET regimen",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/regimen",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "regimen"
       ]
      },
      "description": "The patient's three regimen lists — medications, supplements, peptides — alphabetized, plus `sync`, which says how the lists stand with the clinic's medication list (kept in step both ways where the clinic has that switched on).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "description": "The patient's three regimen lists — medications, supplements, peptides — alphabetized, plus `sync`, which says how the lists stand with the clinic's medication list (kept in step both ways where the clinic has that switched on).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"medications\": [],\n  \"supplements\": [],\n  \"peptides\": [\n    {\n      \"_id\": \"78d4a4c30c19507f928524a5\",\n      \"kind\": \"peptide\",\n      \"name\": \"<name>\",\n      \"dosage\": null,\n      \"frequency\": null,\n      \"notes\": null,\n      \"startDate\": null,\n      \"endDate\": null,\n      \"addedBy\": \"provider\",\n      \"addedByName\": \"<name>\",\n      \"source\": \"manual\",\n      \"createdAt\": \"2026-11-23T19:10:34.832Z\",\n      \"status\": \"active\",\n      \"ftpSource\": null,\n      \"prescriberName\": null,\n      \"syncState\": \"local\",\n      \"syncMessage\": null,\n      \"canEdit\": false,\n      \"canStop\": false,\n      \"canDelete\": false,\n      \"lockedFields\": []\n    }\n  ],\n  \"sync\": {\n    \"state\": \"CA\",\n    \"message\": null\n  }\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "description": "The patient's three regimen lists — medications, supplements, peptides — alphabetized, plus `sync`, which says how the lists stand with the clinic's medication list (kept in step both ways where the clinic has that switched on).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "description": "The patient's three regimen lists — medications, supplements, peptides — alphabetized, plus `sync`, which says how the lists stand with the clinic's medication list (kept in step both ways where the clinic has that switched on).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "description": "The patient's three regimen lists — medications, supplements, peptides — alphabetized, plus `sync`, which says how the lists stand with the clinic's medication list (kept in step both ways where the clinic has that switched on).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "description": "The patient's three regimen lists — medications, supplements, peptides — alphabetized, plus `sync`, which says how the lists stand with the clinic's medication list (kept in step both ways where the clinic has that switched on).\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST regimen",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/regimen",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "regimen"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "201 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 201,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true,\n  \"itemId\": \"598c5657bdcd03a2a2e0719e\"\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Invalid kind.\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"kind\": \"supplement\",\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"200 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"startDate\": \"2026-12-01\",\n  \"endDate\": null,\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Add an item to a regimen list. `kind` is `medication`, `supplement` or `peptide`; `status` is `active` or `stopped`.\n\n**Body (JSON):**\n\n- `kind`\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `startDate`\n- `endDate`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"Invalid kind.\" }\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "DELETE :id",
     "request": {
      "method": "DELETE",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/regimen/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "regimen",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "the item's id from GET /regimen"
        }
       ]
      },
      "description": "Remove an item from its list (and from the clinic's list when sync is on).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "description": "Remove an item from its list (and from the clinic's list when sync is on).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "description": "Remove an item from its list (and from the clinic's list when sync is on).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "description": "Remove an item from its list (and from the clinic's list when sync is on).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "description": "Remove an item from its list (and from the clinic's list when sync is on).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "DELETE",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "description": "Remove an item from its list (and from the clinic's list when sync is on).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "PUT :id",
     "request": {
      "method": "PUT",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/regimen/:id",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "regimen",
        ":id"
       ],
       "variable": [
        {
         "key": "id",
         "value": "",
         "description": "the item's id from GET /regimen"
        }
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"success\": true\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "PUT",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/regimen/:id",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "regimen",
          ":id"
         ],
         "variable": [
          {
           "key": "id",
           "value": "",
           "description": "the item's id from GET /regimen"
          }
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"name\": \"Magnesium glycinate\",\n  \"dosage\": \"400 mg\",\n  \"frequency\": \"nightly\",\n  \"notes\": \"\",\n  \"status\": \"active\"\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Update an item (same fields as POST /regimen; `kind` cannot change).\n\n**Path parameters:**\n\n- `id` — the item's id from GET /regimen\n\n**Body (JSON):**\n\n- `name`\n- `dosage`\n- `frequency`\n- `notes`\n- `status`\n\n**Possible errors:**\n\n- `400` { \"message\": \"<read.error>\", \"fields\": { [read.field]: \"<read.error >\"} }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The person's three regimen lists: medications, supplements and peptides. Kept in step with the clinic's medication list where the clinic has that switched on."
  },
  {
   "name": "Wellness Wheel",
   "item": [
    {
     "name": "GET wellness-wheel",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/wellness-wheel",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "wellness-wheel"
       ]
      },
      "description": "The home-page Wellness Wheel: the 15 categories with score, status and the metrics behind each (labs, questionnaires, wearables, self-reported values).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel"
         ]
        },
        "description": "The home-page Wellness Wheel: the 15 categories with score, status and the metrics behind each (labs, questionnaires, wearables, self-reported values).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"categories\": []\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel"
         ]
        },
        "description": "The home-page Wellness Wheel: the 15 categories with score, status and the metrics behind each (labs, questionnaires, wearables, self-reported values).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel"
         ]
        },
        "description": "The home-page Wellness Wheel: the 15 categories with score, status and the metrics behind each (labs, questionnaires, wearables, self-reported values).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"error\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel"
         ]
        },
        "description": "The home-page Wellness Wheel: the 15 categories with score, status and the metrics behind each (labs, questionnaires, wearables, self-reported values).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel"
         ]
        },
        "description": "The home-page Wellness Wheel: the 15 categories with score, status and the metrics behind each (labs, questionnaires, wearables, self-reported values).\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "GET food-sensitivity",
     "request": {
      "method": "GET",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/wellness-wheel/food-sensitivity",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "wellness-wheel",
        "food-sensitivity"
       ]
      },
      "description": "The inputs behind the Food Sensitivity Score: the sensitivities found and their grades.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/food-sensitivity",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "food-sensitivity"
         ]
        },
        "description": "The inputs behind the Food Sensitivity Score: the sensitivities found and their grades.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"markers\": [\n    \"Almond IgA\",\n    \"Almond IgG\",\n    \"Amaranth IgA\",\n    \"…\"\n  ],\n  \"positiveThreshold\": 10,\n  \"latest\": null,\n  \"previous\": null\n}"
      },
      {
       "name": "401 Unauthorized",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/food-sensitivity",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "food-sensitivity"
         ]
        },
        "description": "The inputs behind the Food Sensitivity Score: the sensitivities found and their grades.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/food-sensitivity",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "food-sensitivity"
         ]
        },
        "description": "The inputs behind the Food Sensitivity Score: the sensitivities found and their grades.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/food-sensitivity",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "food-sensitivity"
         ]
        },
        "description": "The inputs behind the Food Sensitivity Score: the sensitivities found and their grades.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "GET",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/food-sensitivity",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "food-sensitivity"
         ]
        },
        "description": "The inputs behind the Food Sensitivity Score: the sensitivities found and their grades.\n\n**Possible errors:**\n\n- `401` { \"message\": \"Unauthorized\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    },
    {
     "name": "POST self-biomarker",
     "request": {
      "method": "POST",
      "header": [
       {
        "key": "X-Api-Key",
        "value": "{{apiKey}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Email",
        "value": "{{subjectEmail}}",
        "type": "text"
       },
       {
        "key": "X-Subject-Account-Id",
        "value": "{{subjectAccountId}}",
        "type": "text",
        "disabled": true,
        "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
       },
       {
        "key": "X-Request-Id",
        "value": "{{$guid}}",
        "type": "text",
        "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
       },
       {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text"
       }
      ],
      "url": {
       "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
       "host": [
        "{{baseUrl}}"
       ],
       "path": [
        "api",
        "patient",
        "wellness-wheel",
        "self-biomarker"
       ]
      },
      "body": {
       "mode": "raw",
       "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
       "options": {
        "raw": {
         "language": "json"
        }
       }
      },
      "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
     },
     "response": [
      {
       "name": "200 Success",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "self-biomarker"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "OK",
       "code": 200,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{\n  \"ok\": true,\n  \"written\": [\n    \"SYSTOLIC BP\"\n  ]\n}"
      },
      {
       "name": "400 Bad Request",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "self-biomarker"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Bad Request",
       "code": 400,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": `Enter a number for ….` }"
      },
      {
       "name": "500 Internal Server Error",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "self-biomarker"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Internal Server Error",
       "code": 500,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"<message>\" }"
      },
      {
       "name": "401 Unauthorized (X-Api-Key missing, malformed, unknown or disabled)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "self-biomarker"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Unauthorized",
       "code": 401,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Unauthorized\" }"
      },
      {
       "name": "403 Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "self-biomarker"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Forbidden",
       "code": 403,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"This user has not signed in through your integration yet.\", \"code\": \"user_not_linked\" }"
      },
      {
       "name": "429 Too Many Requests (rate limit exceeded)",
       "originalRequest": {
        "method": "POST",
        "header": [
         {
          "key": "X-Api-Key",
          "value": "{{apiKey}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Email",
          "value": "{{subjectEmail}}",
          "type": "text"
         },
         {
          "key": "X-Subject-Account-Id",
          "value": "{{subjectAccountId}}",
          "type": "text",
          "disabled": true,
          "description": "Optional check: `user.accountId` from the sign-in reply. When sent, the person must be known at this account (the API answers 404 otherwise). When one email holds two records it tells them apart. Send it on every request."
         },
         {
          "key": "X-Request-Id",
          "value": "{{$guid}}",
          "type": "text",
          "description": "Optional: your own trace id, echoed in our audit log. Postman fills a fresh UUID per send."
         },
         {
          "key": "Content-Type",
          "value": "application/json",
          "type": "text"
         }
        ],
        "url": {
         "raw": "{{baseUrl}}/api/patient/wellness-wheel/self-biomarker",
         "host": [
          "{{baseUrl}}"
         ],
         "path": [
          "api",
          "patient",
          "wellness-wheel",
          "self-biomarker"
         ]
        },
        "body": {
         "mode": "raw",
         "raw": "{\n  \"entries\": [\n    {\n      \"key\": \"SYSTOLIC BP\",\n      \"value\": \"120\"\n    }\n  ]\n}",
         "options": {
          "raw": {
           "language": "json"
          }
         }
        },
        "description": "Save values the patient typed themselves (shown as 'Self-Reported' on the wheel): `entries` of `{ key, value }`, where `key` is a wheel metric key such as `SYSTOLIC BP`. 400 names the first entry that is not a number or is out of range.\n\n**Body (JSON):**\n\n- `entries`\n\n**Possible errors:**\n\n- `400` { \"message\": `Enter a number for ….` }\n- `400` { \"message\": `… must be between … and … ….`, }\n- `400` { \"message\": \"No valid values to save.\" }\n\n**Auth:** Send `X-Api-Key` (your partner key) and `X-Subject-Email` (the person's email, lowercase). The person must be one your key can reach: see *Whom your key can reach* in the collection's description. `X-Subject-Account-Id` is optional (see its header note)."
       },
       "status": "Too Many Requests",
       "code": 429,
       "_postman_previewlanguage": "json",
       "header": [
        {
         "key": "Content-Type",
         "value": "application/json"
        }
       ],
       "cookie": [],
       "body": "{ \"message\": \"Rate limit exceeded. Retry after 30s.\" }"
      }
     ]
    }
   ],
   "description": "The home-page Wellness Wheel: the 15 categories with their scores, the food-sensitivity view, and patient-typed (self-reported) values."
  }
 ],
 "auth": {
  "type": "apikey",
  "apikey": [
   {
    "key": "key",
    "value": "X-Api-Key",
    "type": "string"
   },
   {
    "key": "value",
    "value": "{{apiKey}}",
    "type": "string"
   },
   {
    "key": "in",
    "value": "header",
    "type": "string"
   }
  ]
 },
 "event": [
  {
   "listen": "prerequest",
   "script": {
    "type": "text/javascript",
    "exec": [
     "// Validate that required collection variables are set.",
     "const required = ['baseUrl', 'apiKey', 'subjectEmail'];",
     "for (const key of required) {",
     "  const v = pm.collectionVariables.get(key);",
     "  if (!v || v.startsWith('<')) {",
     "    throw new Error(`Collection variable \"${key}\" is not set. Open the collection → Variables and set it.`);",
     "  }",
     "}"
    ]
   }
  },
  {
   "listen": "test",
   "script": {
    "type": "text/javascript",
    "exec": [
     "// Every request: the server answered (no 5xx) and, unless it is a file or a stream, with JSON.",
     "pm.test('no server error (status < 500)', () => pm.expect(pm.response.code).to.be.below(500));",
     "const ct = String(pm.response.headers.get('Content-Type') || '');",
     "if (!/pdf|octet-stream|event-stream|audio|image/.test(ct)) {",
     "  pm.test('JSON reply', () => pm.expect(ct).to.include('application/json'));",
     "}",
     "pm.test('answered within 30 s', () => pm.expect(pm.response.responseTime).to.be.below(30000));"
    ]
   }
  }
 ],
 "variable": [
  {
   "key": "baseUrl",
   "value": "https://staging-api-portal-nh.prospera.ai",
   "type": "string",
   "description": "The API's address: `https://staging-api-portal-nh.prospera.ai` for the sandbox, `https://api-portal-nh.prospera.ai` for production."
  },
  {
   "key": "apiKey",
   "value": "<your pk_live_... key>",
   "type": "secret",
   "description": "Your partner API key (`pk_live_…`). It is shown once when it is issued: keep it in a secret manager."
  },
  {
   "key": "subjectEmail",
   "value": "<the person's email>",
   "type": "string",
   "description": "The email of the person you are working with, lowercase."
  },
  {
   "key": "subjectAccountId",
   "value": "",
   "type": "string",
   "description": "`user.accountId` from the sign-in reply (recommended on every call). A finished sign-in fills it in."
  },
  {
   "key": "userPassword",
   "value": "",
   "type": "secret",
   "description": "The password the person typed (Sign-in & Sign-up only). Never store a real one in a shared collection."
  },
  {
   "key": "verificationToken",
   "value": "",
   "type": "string",
   "description": "Filled in by the Sign-in & Sign-up requests."
  },
  {
   "key": "identityToken",
   "value": "",
   "type": "string",
   "description": "Filled in when a reply says accountSelectionRequired."
  },
  {
   "key": "uploadId",
   "value": "",
   "type": "string",
   "description": "Filled in by POST lab/uploads."
  },
  {
   "key": "uploadUrl",
   "value": "",
   "type": "string",
   "description": "Filled in by POST lab/uploads."
  },
  {
   "key": "recaptchaToken",
   "value": "",
   "type": "string",
   "description": "Production only: a fresh reCAPTCHA v3 token for the steps that send a code (enable the header on the request)."
  },
  {
   "key": "recaptchaTokenReset",
   "value": "",
   "type": "string",
   "description": "Production only: the second token of password-reset/start."
  }
 ]
}