{"openapi":"3.0.1","info":{"title":"InsideTracker Integration Guide","version":"1.0.0","description":"# Introduction\n\n## Overview\n\nInsideTracker is a cutting-edge platform designed to optimize health and wellness through personalized insights based on\nblood biomarkers, DNA, data from wearables devices, lifestyle data. By integrating scientific research with advanced\nanalytics, InsideTracker empowers individuals to achieve their health goals through actionable, data-driven deeply\npersonalized recommendations.\n\nFor partners, InsideTracker offers robust API capabilities to seamlessly integrate its insights and services into their\nown applications, enabling enhanced user experiences and expanded functionality. Whether you are building a wellness\napplication, fitness tracker, or healthcare solution, InsideTracker’s API provides the tools to enrich your ecosystem\nwith personalized health data.\n\n## Purpose\n\nThis documentation serves as a comprehensive guide for InsideTracker partners to integrate with the InsideTracker API.\nIt outlines the features, endpoints, authentication processes, and best practices needed to leverage the API\neffectively. By using this guide, developers can create seamless connections between their platforms and InsideTracker,\nenabling a shared mission of advancing personalized health and wellness for users.\n\nThis documentation is designed to ensure a smooth integration experience, providing all the technical details, sample\nuse cases, and troubleshooting support you’ll need to unlock the full potential of the InsideTracker API.\n\n# Getting started\n\n## Prerequisites\n\nBefore starting the integration, ensure that you have a registered InsideTracker partner’s account, which is necessary\nto access API and test environments.  \nEnsure that you have access to any necessary third-party libraries or SDKs that support HTTP requests.  \nFor using OAuth 2.0 for authentication, you will need the client ID and client secret provided by InsideTracker when\nregistering as a partner.\n\n## Authentication\n\nInsideTracker provides two authentication levels for partner integrations: enterprise-level authentication and\ncustomer-level authentication.\n\nPartner integrations should use the following flow:\n\n- Request an enterprise access token from `POST /oauth/token` using the `client_credentials` grant.\n- Use the enterprise access token to call partner APIs (such as [Partner customers](#tag/Partner-customers)).\n- When you need to act on behalf of a specific customer, exchange the enterprise token for a customer access token via\n  `POST /oauth/token` using the token-exchange grant.\n- See the [OAuth2](#tag/OAuth2) section for details about supported grant types and example request payloads.\n\nFor each API request, include the access token in the `Authorization` header as a Bearer token:\n`Authorization: Bearer <access_token>`.\n\n_Enterprise access token_\n\nUse the `client_credentials` grant to obtain an enterprise access token. The token is intended for partner APIs and for\ntoken exchange.\n\n- The token request must include the partner `client_id` and `client_secret`.\n- Enterprise access tokens are long-lived and do not have refresh tokens. A new access token must be requested after\n  expiration.\n\n_Customer access token_\n\nUse the token-exchange grant to obtain a customer access token. The token is intended for customer APIs and is scoped to\na specific customer.\n\nThe token exchange request must include:\n\n- The enterprise access token as `subject_token`.\n- The value `urn:ietf:params:oauth:token-type:jwt` as `subject_token_type`.\n- The customer identifier `customer:{extId}` as `requested_subject`.\n- The `audience` must be set to `customer-api`.\n\n_Notes_\n\n- Customer access tokens are short-lived, do not have refresh tokens, and must be requested again through token exchange\n  after expiration.\n- The enterprise access token acts as the long-lived credential that partner integrations can reuse to obtain new\n  customer access tokens when needed.\n\n## Audience\n\nThis documentation is intended for developers, engineers, and technical teams who are responsible for integrating their\nsystems with the InsideTracker API.   \nIt is also relevant for project managers and solution architects who need to understand the capabilities of the\nInsideTracker API and how it can be utilized to enhance their products or services.  \nThe guide assumes that the audience has a basic understanding of RESTful APIs, authentication protocols like OAuth 2.0,\nand experience with JSON data structures.\n\n# Webhooks\n\nThe webhooks integration is a crucial feature of InsideTracker platform, facilitating real-time data exchange and\nevent-driven communication with partner systems. It acts as an intelligent intermediary, monitoring the platform for\nsignificant events. Upon detection, it transforms these events into standardized webhook payloads and dispatches them to\ndesignated partner endpoints. This robust architecture ensures partners receive prompt notifications of relevant\nactivities, enabling them to integrate these events into their workflows with minimal delay.\n\nFor the full list of documented webhook events, payload schemas, and request examples, see\n[Webhook Events](#tag/Webhook-Events).\n","x-logo":{"url":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIPEBUQDxAVEBAXFRUXFRYYFhgWGRcYFxgXFxUVFhUYICggGBooGxUYJTElJSkrLi8uFx8zODMtNygtLysBCgoKDg0OGxAQGy8mHyUtLS0rLSstLS0tLy0tLS0tLS8tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAKsBJgMBEQACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABQYBBAcDAgj/xABCEAABAwIEAwQGBgcIAwAAAAABAAIDBBEFBhIhMUFREyJhcQcygZGhsRQjUrLB0RUzNEJic5JDU3J0gsLh8DWi8f/EABoBAQACAwEAAAAAAAAAAAAAAAABBAIDBQb/xAAzEQEAAgECBAMGBgICAwAAAAAAAQIDBBEFEiExE0GBIjJRYXGhM0KRsdHwFOFSwSND8f/aAAwDAQACEQMRAD8A7igICAgICAgICAgICAgICAgw5wAuTYKJmIjeRqYfiLKgOMRu1rtN+RNgbjw3WjBqaZ4madonZhTJF99mDicYn+juOmTSHC/B177A9duCj/Kxxm8Gek9/qjxK83J5t1WWwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEHxNK1jS55DWjckrG960rNrT0RMxEbyoOYswuqCY47th+LvPw8F5XiHEpz+xTpX93NzZ5v0jsmsg/qH/zT91q6XA/wLfX/AKhY0fuz9UNnY2q7jY6GW95XN4zMxqd/lDRqvxPRKZazNrtDUHvcGvPPwd4+Kv8ADuKc+2PNPXyn4/Vuwajf2bLYu6uCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIPOonbG0veQ1oFySsL3rSs2tO0QiZiI3lzzMOOuqnaW92IHYdfEryWv4hbUW5Y6V/f6uZmzTknbyR+H0T55BHGLk+4DmSqenwXz3ilWqlJvO0Ol4Vh7aaIRs8yep5kr2mm01dPjilf7LrY8cUrtDTzHgoqmXbYSt9U9f4T4KvxDQxqadPejt/DXmwxkj5udSxuY4tcC1wNiDyK8felqWmto2mHMmJidpWvLGY7WhnO3Brz8iu/w3ifbFln6T/K5p9R+Wy4hehXmUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEHxLIGNLnGzQLk9Fja0VjeeyJmIjeXPMx446pdpbtCDsOv8RXkeIa+dRblr7sff5uZmzTedo7ImnhdI4MYNTibAKhjx2yWite8tMVmZ2h0jAMHbSx24yH1nfgPBex0Oirpqbec95dTDijHHzSivNwgr2acC7dvaxj61o4faHTzXI4noPHrz096Puq6jBzxzR3UEi3HYrykxMTtLnLhlTMF7QTHwY4/dK9HwziO+2LJP0le0+f8ALZb1310QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBBQs14727uxiP1TTuR++fyXleJ8Q8afDxz7Mff/AE52ozc08sdldaL7DcrjxG/SFV0DK+BinZ2kg+ucP6R08167hugjBXnt70/b5Olp8PJG890+uosiAgIKhnDAuNREP5jR94fivP8AFtBv/wCbH6x/2o6nD+ePVTgvOqS+ZTx3tm9jKfrQNj9oD8QvU8L1/jR4d/ej7/7dHT5uaOWe6yLsrQgICAgICAgICAgICAgICAgICAgICAgICAgq+csZ7Nv0eM99w75+y08vM/LzXD4vruSvg0nrPf5R/v8Ab6qepzbexCjrzKgt2TcFvapkH8sf7l6DhGh/99/T+V3TYfzz6LkvRLwgICAgwRfYpPUc8zTg30aTUwfVO4fwnm1eR4novAvzV92ft8nM1GLkneOyGhlcxwe06XA3B6Fc2l7UtFqztMNETMTvDpeA4oKqIP4PGzx0P5Fe00OrjU4ubz8/q6uHJ4ld0krjaICAgICAgICAgICAgICAgICAgICAgICDUxStbTxOldyGw6nkPetGpz1wYpyT5MMl4pWbS5dUTuke57zdziST4leHyZLZLTe3eXImZmd5b+X8MNTMGn1Bu8+HT2q3oNLOoyxE9o7tmHHz22dLYwNAAFgBYDwXs4iIjaHViNn0pSICAgICDVxKibPE6N3AjY9DyK06jBXNjmlvNhkpF67S5fV07onujeLOabFeHy4rYrzS3eHItWaztLey7if0aYOJ+rd3X+XX2fmrXD9V/j5ome09J/vybMOTktv5Olgr2kOsygICAgICAgICAgICAgICAgICAgICAgIKTnuuu9sAOzRqd5nh8PmvNcb1G9oxR5dZUNXfeeVVVwlN0bKeH9jTgkd9/ePkfVHu+a9jwvT+DgiZ7z1l1NPj5afVNLot4gwTbc7BBDVebKGFxZJVxNcOI1i6naUbw2MNx6lqTanqI5SOTXApsndJKAQEFNz1QWLZ2jj3XfgV57jen7ZY+kqOrp2sqK88pOh5Pr+2pw0m7ozpPl+6fdt7F67hOo8XBtPevT08v78nT01+am3wTq6iwICAgICAgICAgICAgICAgICAgICAgIOWY1P2lRI7q828hsF4fW5OfPe3zcfLO95lr0keuRrermj3my04q82StfjLGsbzEOtNFthwXvYjbpDtMqRhzgASTYDclBw7P+epKuR0FO8x0zSRsbGQjYkkfu+C2RVhMqMpYvqOQtcHNJa4cCDYjyI4IOwejHPDqk/Q6t2qW143ni8Di138SwtDOJdJWLIQRWZ4g+kkvyFx5gqjxGkW01mnURvjlzReLcpZshz2nezk5l/a0i3wcV2uB5JjNavxj9v7K3pJ9uYXpeodAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQcmrm2leP4nfNeCzxtktHzca/vS+aWTS9rujgfcVjity3ifmis7TEutAr37tMoK36Q64wYbO5pIcW6ARyLtlMd0T2fnhbGsUgg28IqnQ1EUrDZzZGEH2hRKYfp9rri44FamxlBF5nk00kniLD2kKlxG3Lpr/RpzztjlzNeKcpYMjtvVeUbj8Wj8V1uCxvqfSVnSfiejoC9Y6QgICAgICAgICAgICAgICAgICAgICAg5lmSDs6qUdXah5O3/ABXiuI05NTePnv8Aq5OeNskoxUmp07LtZ21Mx3MDS7zbt8rH2r22gzeLgrb0n0dbBfmpEpJXG1A54w41WHzxNF36C5vm3cKY7ons/OS2NYpBBI5dw91VVQwsG7nt9gBuSbcgAolMP0yAtTYygqme6yzGQji46j5DguFxvPtSMfx6qerv0iqlLzSgteQILvlk6Na0f6jc/dHvXe4Fj9u9/hG36/8Axc0cdZldV6RfEBAQEBAQEBAQEBAQEBAQEBAQEBAQEFMz5RWLJwNj3HeY3b8L+5ec45g61yx9JUdXTrFlSXAUlgyjiwgk7N5tG+3sdyK63CdZGHJyW7T+6zpsvJbae0ugL1jpCDk2f/R08yOqqBusON3xDiCeJYOY8FnFmMw5lPTvjOl7HMI5EEfNZMGxhuEz1LwyCF8jj0Bt5k8AE3Ts7T6PckDDm9tNZ9U4WNtxGDxa08z1P/ThM7s4jZdVil5VM7Y2F7zZoFysMmSuOs2t2hFrRWN5cwxauNRK6Q8zsOgHALxGr1E58s3n0+jkZLze27TVdg6PlKi7GmbcWc/vn2+r/wCoC9jwvB4WnjfvPX+Ps6mmpy0+qZXRbxAQEBAQEBAQEBAQEBAQEBAQEBAQEBBqYpRCoidE7mNj0PI+9aNTgjPinHPmwyUi9ZrLl1RA6N7mPFnNNiF4fJjtjtNLd4ci0TE7S81ghb8s5lAAhqD4Nefk7816Hh3FI2jFln6T/K7g1H5bLgDfcbhehid15lB4z0kcn6yNj7cNTQ75oPuGJrBpY0Nb0AAHuCD7QeVTUNiaXyODWjmVhkyVx15rTtDG1orG8uf5jx41TtLLthB2H2vEryfEOITqJ5a9Kx93NzZ5vO0dkIuY0JTLuGGpmDSPq27v8unt/NXuH6WdRmiJ7R1n+/Ntw4+e23k6WAvaOsygICAgICAgICAgICAgICAgICAgICAgICCt5swLtx20Q+taNx9oD8QuPxTh/jR4lPej7wq6jDzRzR3UMheVmNnOEErhWYJqfYHWz7LvwPJX9LxLNg6RO8fCW7HntRZ6POELv1gdGfePeF28XGcFvf3hbrq6T3SLMfpj/btVyOIaafzw2xnxz5vmXMVK0frgfK5WNuI6asb88eiJ1GOPNEV2c2jaGMuPV2w9yoZ+N0jpjjf6tN9XH5YVbEMSlqHXlffoOAHkFwtRqsued7z/AAp3yWvPVqKuwe1HSvmeI4xqcf8Atz4LZhw3y3ilI6prWbTtDpWC4W2liDBu47ud1P5L2ej0tdPj5Y7+c/N1cWOMddkgrbaICAgICAgICAgICAgICAgICAgICAgICAgIK3mHLImvLDZsvMcnfkVx9fwuM3t4+lv3Vc2n5var3UeogdG4se0tcOIK8xkx2x25bxtLnzExO0vNYIEBAQEBBu4ZhclS7TG3bm48B5lWdNpMmottSPXyZ48drztDoGCYMylbZveefWceJ8B0C9Zo9FTTV2jv5y6eLDGOPmk1dbRAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEGpX4dFUN0ysDuh4EeR4haM+mxZ42yRuwvjrePahV6/JbhvBICPsv2P9Q4+5cPPwO0dcVvSf5U76Sfyyg6jAqmP1oHn/CNf3brmZOH6mnek+nX9le2HJHeGk6neOLHDzaQq047x3iWHLPwfUdHI71Ynu8muPyCmuDJb3azPoRW09oSNLluqk/stA6vIb8OPwVvFwvU5Py7fXp/v7NtdPknyWDDsmsbYzv7Q/Zbs32nifguvp+C0r1yzv8o7f39FmmkiOtpWWCBsbQ1jQ1o4ACwXapStI5axtC3EREbQ9FkkQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBBExZmonyCJtXC6Qu0hoe3Vq4Wt1U7SjdLKEiAgICCt55zP+jKcStj7R7naWgmwvxJJUxG6JnZo+j7OjsT7VkkQjkjDTdpJaQ69uPA7KZjYid1yWKUTmTMEOHRNmqNWhzwwaRqOotc7gPBhUxG6JnZ8ZazLBiLXvp9VmEA6m6dzukxsRO6ZUJEGvU10URAkkawnhc2Wu+WlPenZjN6x3l4/pmn/v4/6gsf8jF/yj9UeLT4n6Zp/wC/j/qCf5GL/lH6ni0+LdY4EAg3BFweoK2xO8bwzZUggICAgII7E8Zipi0SXu4EiwvwWjNqKYpiLNd8tad2zQ1bZmCRl9J4X2WzHki9eaGVbRaN4bCzZCAgICAgICAgICDDuCD874F/5dn+ad99y2T2a/N1fO2ef0ZMyLsO11s131WtuRb4LGI3ZzOyCq/S9GGt7KmLnloL7us0E8Wg8TZOVHMncm+kCHEZOwcwwz2JaCbh1tzpPW3JJrsmJe2b89wYa7si0yzkX0Nt3QeBcTwURG5M7KpF6Yu936Tu+D9/isuRHMsebccgdhbKqelMsUhZaN+xGrgb8isYjqmZ6PH0W4jTTxyilpRTBrm6t9RdcbElTZEPHMvpQgpZHQwRmoe02c69mAjiAeaRUmym50z2zE6NkJhMUrZ2v46mloZI02PW7gsojZEzus3oQ/Z6j+Yz7pWNk1bmY/SjT00jooIzUOabOdezARxAPP2JFSbNbBfS1DK8MqYTCCbawdTR580mpzLbjWCisLJGyANDdtr3B3uqWp0vjTE77NWXDzzvuqGM4d9Gk7PVq2Bvw4rk58PhX5d1TJTknZK4flbtomSdrbUL2twVnFoeekW37ttNPzRvulcSxz6EWQaNdo273t1b/tVnLqvAmKbb9Ibb5fD2rs+GZra57GMjJ1EAkngT0URr4m0ViEf5ETMREPXFsytgeYxG5zhxvsP+Vnn1sY7cu3VlkzxWdtmnBnIE9+Kw6g3WmvEY36w1xqvjCzU87ZGB7DdpFwV0a3i1eaOy1ExMbwgcQzZGxxbG0yW53sPZ1VLLr6Vnasbq99REdIedFm9jnBsrNAPMG4HmscfEKzO1o2K6mJ7w088m74iNxpd8wtXEfeq16nvCUwWtZBRMfIbDew5k34BWMGSuPBFrNuO0VxxMvjDsyOqJBHHAfE32A6lRi1k5LctalM82naIbuMY5HTbO7zz+6Pmei3Z9TTF0nuzyZYoh485796Hu+B3VSOI9etWmNV8YWKkr2TR9rGbix8wRyKv0y1vXmqs1vFo3hAwZxaT34i0WPA38gqVeI1nvCvGpjzhK4Fi30oPdo0BpA43vcXVnT6jxomdttm3Fk590orLaICAgIMO4IPzvgX/l2f5p333LZPZhHdZfTd+1wfyT98qKlk/6Psn0c2HMkngbLJKHFznC5A1EANP7tgBw5qJmd0xHRzfKV4sUp2g8KljL9Rr0n4LKezGO6z+kzKlV9NfVwxOnik0HujUWlrWt0lg3I7t9upUVnomYagzzIxohrcOheywBa6Mxmw6AhNjdZM/YrFWYGyaAaYzJGA37JabFvsUR3TPZFejGZ0dBiD2esGEjwOg7qbd0R2Vz0dYdFV4jHHUAOZZ7tJ4Pc0XDT16+xTPZEd1v9MOBU0EEM8MbYpTL2ZDRbU0se43A42LRv4+KissrQj8i1D4sHxF8ezw3Yjl3Hb+xJ7ojsq2Tp5I6jXDSCskDTZhubfxWHFTKITOaaWtxB7ZP0UYHgWJY094crhI2hM9XUvR2yZuHQsqWOZI3U3S7iGtcQ34WWE92UdkPnP8Aaf8AQ1cTX/i+ijqPfWvL37LF/gC6Wl/Br9FvF7kKtnb9pH8pv3nrm8Q/F9I/eVXU+/6JrLuDQiFkjmB0h71zy6W6K5pdNj5ItMdW7FiryxLSxjGIROdMAmkHd1H5Ac1qz6jHGTpXeWGTLXm7byh8blc/S51N2B33sRq96qai022mabNOWZnvGyUw+dzcMlIO4cQPJxbf7xVnFaY0ltm2kz4MtPKNHHLOe0AdpZcA8CbgX9l1p0OOt8ntfBhp6xa3VZajAaZ8jXFoBse6DYOtztzXRtpcNrRMx6LM4aTO6DzuwNfEALAMcAPC4VLiEbWrEfBo1PeFeknc4BpJLW8ByCozeZiInyV5mZ6L3lVsXYAxcf378dXiu1o4p4fs+q/g5eXop2JyF1S8uGo9oduu/qrk5pmcszPxU7zved0rXSzzR9kaENG2kgG7bdFayWyXpy+G22m1o25WxlWnli7VsjHMaWX3Ftx/wVno6XpzRaNo2ZYK2jfdAYJSCaZkbvVJ38gqOnxxe8VlXx15rREui0dFHCCImBgPG3PzXepirSNqxs6NaxXs2FsZCAgICDB4IOJ4Rk+vZiTJn0rmxCoc8u1R206ib2Dr8D0WyZjZhtO6e9K+WqutqYX0tOZmtiLXEOYLHUTbvOHJY1mE2hcci0MlPh8EM7DHK1pDmkg27xPFpI5qJ7pjs5fguTMQjxGKZ9I5sTalry7XHs0SXLrB1+HgspmNmO07rFnGhxr6c6ei1GHS1rBHI0d0C51seRc6ieF+SiNtkzur2KYFjmIljKmElrTcFzomtBO1zpNz7ip3iEdZWbHcmzRYKyhp2/SJhI17rFrbkklxGojZRE9U7dHr6LMu1FLFUR1kBjEhAALmu1N0kO9QnqlpKwqeN+jqupajXQtM0Ydqjex7WvZ0BDiNx1F/Ypi0I2l4YjlPGqxvaVMckjmWDWvljLt+JaNVgNt7kcuKneDaV19GOXJqemqIa2AxiRwGklrtTdJB9UnqsbSmIVXE/R7iFDUdph95WAnQ5j2skaOjg4i/svdTzRPdG0vaDDMwzzRueZI9DgQ58jAxviWtcS7bwKeydXYYQ4NGsgusNRAsCedh0WDNU80YTPNPrijLm6QL3aPmVytZgyXyb1jdUzY7WtvELFgsLo6eNjxpcGgEdD7Ff09ZrjrE91jHExWIlX814VNNOHxRl7ezaL3aN7uNtz4hUdZgyXyb1jeNvl81fPjta28QsOEROZBGx4s4NsR/8V/BWa44iVjHExWIlVMRwGojnMkLdY1amkEXBvexBK5mXS5a5Oakb9d1W+G8W3qziNBXVLQ6Vl7GwaC0ceJ42TLi1OWN7R6dC9Mt+6Yy7hrm0zoZ2adTnXFwdiAL7K3pcMximl47t2GkxSYsg58u1MEmqC7wPVc0hpA8QSPgqVtJmx23p1+bROC9Z9lmLBayaQOl1MP23OFwPAA3Uxp9Rktvbp8yMWS07y3804VNKYuyYZA1pBNxe+3G547LfrMGS815Y32bM+O1ttnvS4AH0YikZ2cu5vtcO5XI4rOml5sHLaNpTXDvj2nujcGoayll1CEuYdnDU3cdRvxVbBiz4b78vTz7NeOmSk9m3mHLjpHmaDid3MJtv1B4LdqtHN556fozy4JmearRNNiJb2dpNPD1m8Ol7rRyavbl6/rH8tfLm22WbC4Jm0+ichz7EC3S2wJ5ldHDXJGPa/dapFortZW8v4NURVDHyRFrRe5u08vArn6XT5aZIm1enorYsV62iZhdl2F0QEBAQEBAQYQZQEBAQYQZQEBAQEBAQYQZQEBBhBlBhBlBhAQEBAQZQEGEGUBAQEH/2Q==","backgroundColor":"#FFFFFF","altText":"InsideTracker"}},"servers":[{"url":"https://api.sandbox.insidetracker.com","description":"Server url"}],"tags":[{"name":"OAuth2","x-displayName":"OAuth2"},{"name":"Partner customers","x-displayName":"Partner customers"},{"name":"Inventory","x-displayName":"Inventory"},{"name":"Sandbox","x-displayName":"Sandbox"},{"name":"Health PROMs","description":"Endpoints for the Health PROMs API.","x-redocly-group":"UGHD API Documentation","x-displayName":"Health PROMs"},{"name":"Health Tags: Master Data Management","description":"Partner operations for managing custom tag definitions.","x-redocly-group":"UGHD API Documentation","x-displayName":"Health Tags: Master Data Management"},{"name":"Health Tags: User Operations","description":"User operations for selecting tags for tracking and recording or reading tag check-ins.","x-redocly-group":"UGHD API Documentation","x-displayName":"Health Tags: User Operations"},{"name":"Customer OAuth2","x-displayName":"Customer OAuth2"},{"name":"BRU (Blood Result Upload)","description":"## What This Flow Is For\n\nUse the Blood Result Upload (BRU) flow when your application needs to submit one\nor more blood result files for asynchronous processing on behalf of a customer.\n\nBRU supports the following processing types:\n\n- Document/OCR: PDF and supported image files\n- FHIR: FHIR R4 NDJSON containing `Observation` resources\n- HL7: HL7 v2 laboratory result messages of type `ORU^R01`\n\nThis is an asynchronous, two-step submission flow. Upload every file first,\nthen create a BRU process using the returned file IDs. Process submission\nreturns a process ID immediately, while parsing, mapping, validation, and\npublication continue in the background.\n\n## What You Need\n\n- a customer bearer token obtained through the agreed on-behalf-of flow\n- the `bru.upload` scope to upload files and submit a process\n- the `bru.status` scope to retrieve process status\n- one or more supported source files\n- support for polling process status\n- a webhook endpoint if you want event-driven updates\n\n## Recommended Client Flow\n\n1. Upload each file separately to `POST /bru/customer/v1/files`.\n   - Each upload returns an `uploadedFileId` that you will need for process submission.\n   - Parallel uploads are allowed, but each file must be uploaded separately.\n   - Files are stored temporarily and not associated with any process until submission.\n2. Store every returned `uploadedFileId` on the client side.\n3. Submit a BRU process to `POST /bru/customer/v1/processes` with the full `uploadedFileIds` list and store the returned `processId`.\n   - A process must contain at least one uploaded file.\n   - All files in one process must belong to the same processing type.\n   - Do not mix Document/OCR, FHIR, and HL7 files in one process.\n4. Receive webhook updates and use them to correlate the process in your system.\n   - Webhooks are the recommended way to track process progress and completion.\n   - Use `GET /bru/customer/v1/processes/{processId}` when you need the latest process state or need to recover after a missed webhook.\n   - When processing has finished, the response may include `bloodResults` containing the legacy IDs of any published blood results.\n\n## Accepted Upload Files\n\nAll files must be smaller than 50 MB. HL7 files have a stricter limit and must\nbe smaller than 10 MB.\n\n| Processing type | Filename or extension | Accepted detected MIME types |\n| --- | --- | --- |\n| Document/OCR | PDF document | `application/pdf` |\n| Document/OCR | Supported image file | `image/gif`, `image/jpeg`, `image/png`, `image/webp` |\n| FHIR | `.ndjson` or `.jsonl` | `application/json`, `application/ndjson`, `application/x-ndjson`, `text/plain` |\n| HL7 | `.hl7` | `application/hl7`, `application/hl7-v2`, `text/plain` |\n\nVirus scanning is performed on all uploaded files, and infected files are\nrejected. Sliding-window rate limiting is applied per customer: 14 files per\n300 seconds. Files expire after 24 hours if they are not submitted in a BRU\nprocess.\n\nUnsupported file types return `400 Bad Request`:\n\n```json\n{\n  \"message\": \"BRU upload accepts PDF, image, FHIR NDJSON, and HL7 files only.\"\n}\n```\n\n## FHIR R4 NDJSON\n\nFHIR uploads use NDJSON: one FHIR JSON resource per non-empty line. Blank lines\nare ignored. Every non-empty line must be a valid FHIR R4 `Observation`; JSON\narrays and other FHIR resource types are not supported.\n\nEach `Observation` must contain:\n\n- at least one usable `code.coding` entry with both `system` and `code`\n- `valueQuantity.value`\n- `valueQuantity.unit`\n\nWhen several usable codings exist, a LOINC coding with system\n`http://loinc.org` is preferred. Otherwise, the first usable coding is used.\n\nThe observation date is read from `effectiveDateTime`, with `issued` used as a\nfallback. A date that can be parsed from one of these fields is required for\nsuccessful automatic mapping and publication. Reference ranges are extracted\nfrom `referenceRange` when present.\n\nMinimal `observation.ndjson` example (the resource must remain on one line):\n\n```json\n{\"resourceType\":\"Observation\",\"id\":\"glucose-001\",\"status\":\"final\",\"code\":{\"coding\":[{\"system\":\"http://loinc.org\",\"code\":\"2345-7\",\"display\":\"Glucose [Mass/volume] in Blood\"}]},\"effectiveDateTime\":\"2026-07-28T08:00:00Z\",\"valueQuantity\":{\"value\":99,\"unit\":\"mg/dL\",\"system\":\"http://unitsofmeasure.org\",\"code\":\"mg/dL\"},\"referenceRange\":[{\"low\":{\"value\":70,\"unit\":\"mg/dL\"},\"high\":{\"value\":110,\"unit\":\"mg/dL\"}}]}\n```\n\nUpload the file through `POST /bru/customer/v1/files`:\n\n```bash\ncurl --request POST \\\n  --url \"${BASE_URL}/bru/customer/v1/files\" \\\n  --header \"Authorization: Bearer ${CUSTOMER_TOKEN}\" \\\n  --form \"file=@observation.ndjson;type=application/ndjson\"\n```\n\n## HL7 v2 ORU^R01\n\nEach `.hl7` file must contain exactly one HL7 v2 message:\n\n- the file must begin with `MSH|`; a UTF-8 BOM and leading whitespace are tolerated\n- the message type must be `ORU^R01`\n- files containing more than one `MSH` message are rejected\n- observations are read from `OBX` segments\n- supported OBX value types for parsing are `NM`, `SN`, `ST`, and `TX`\n- every OBX must include a usable observation code, value, and unit\n- only observation values that normalize to a number can be automatically\n  mapped and published\n- the observation date is read from the OBX observation datetime, falling back\n  to the current OBR observation or specimen datetime\n- a date resolved from the OBX or current OBR is required for successful\n  automatic mapping and publication\n- the file must be smaller than 10 MB\n\nMinimal `result.hl7` example:\n\n```text\nMSH|^~\\&|LAB|LABFACILITY|BRU|INSIDETRACKER|20260728080000||ORU^R01|MSG00001|P|2.5.1\nOBR|1|||2345-7^Glucose panel^LN|||20260728074500\nOBX|1|NM|2345-7^Glucose [Mass/volume] in Blood^LN||99|mg/dL|70-110|N|||F|||20260728074500\n```\n\nUpload the file through `POST /bru/customer/v1/files`:\n\n```bash\ncurl --request POST \\\n  --url \"${BASE_URL}/bru/customer/v1/files\" \\\n  --header \"Authorization: Bearer ${CUSTOMER_TOKEN}\" \\\n  --form \"file=@result.hl7;type=application/hl7-v2\"\n```\n\n## Process Submission And Review\n\n`POST /bru/customer/v1/processes` accepts an optional caller-supplied\n`externalId` for correlation. A duplicate value for the customer is rejected\nwith `409 Conflict`.\n\nSuccessfully mapped blood results are published automatically.\n\n`validator` is optional at submission. For a `MANUAL_REVIEW` process, use\n`CUSTOMER` to select its owning customer as reviewer, or `OPS` to select the\nOps review queue. A customer always has ownership-scoped list, detail, review\nread, and source-file access. A customer may mutate and approve only its own\nprocess while it is `ON_VALIDATION` and `validator=CUSTOMER`; for\n`validator=OPS`, mutation and approval return `403 Forbidden`.\n\nUse `GET /bru/customer/v1/processes/{processId}/review` to read parsed data,\nevidence, immutable AUTO mappings, and current VALIDATED mappings. Apply\nordered, atomic VALIDATED mutations with `PATCH` on the same path. Finish a\ncustomer review with `POST /review/approval`; approval is explicit even when\nthere are no edits or zero VALIDATED results. Source files can be retrieved\nwith `GET /processes/{processId}/files/{processFileId}/raw-file`.\n\n## Process Statuses\n\nClients can observe these process statuses:\n\n- `DOCUMENT_UPLOADED`: the process was accepted and its uploaded files are ready for processing\n- `PARSING_IN_PROGRESS`: attached document files are being processed by OCR\n- `DOCUMENT_PARSED`: the source files were parsed\n- `ON_VALIDATION`: manual review is waiting for its `validator`\n- `DOCUMENT_MAPPED`: parsed markers were mapped; processing will next either publish the results or finish without publication\n- `PUBLISHED`: automatic publication created at least one Blood result.\n- `PUBLISHED_WITH_NO_RESULTS`: automatic publication created no Blood results.\n- `COMPLETE`: processing finished without publishing blood results\n- `CANCELED`: processing was canceled before publication\n\nWhen `autoPublishResult` is `true`, a process transitions from `DOCUMENT_MAPPED`\nto `PUBLISHED_WITH_NO_RESULTS` if publication creates no Blood results. If at\nleast one result is created, the terminal status is `PUBLISHED`. When it is\n`false`, processing finishes as `COMPLETE`.\n\n## Webhooks And Process Completion\n\nBRU can send a webhook for `ON_VALIDATION`, `CANCELED`, terminal\n`PUBLISHED`/`COMPLETE`, and `PUBLISHED_WITH_NO_RESULTS` statuses. Every BRU webhook\nidentifies the customer with a UUID `extId`.\nOCR error-paused processes do not send a webhook. See the\n[Webhook Events](#tag/Webhook-Events) section for payload details and request\nexamples.","x-displayName":"BRU (Blood Result Upload)"},{"name":"Blood Results","description":"This section of the API covers all operations related to blood test activation, processing, and results retrieval for InsideTracker customers. It includes:\n- Activating tests for customers, with detailed handling for both general lab testing and Mobile Blood Draw (MBD) services.\n- For non-MBD tests, the system sends electronic orders to Quest Diagnostics, and the customer is advised to schedule an appointment to reduce wait time.\n- For MBD tests, customer contact details must be provided, and the system selects the lab and routes the order for physician review and approval (`isLabSlipApproved`).\n- Depending on the selected MBD partner (`mbdPartner`), communication with the customer may include phone calls, emails, or requiring the customer to self-schedule (e.g., via GetLabs).\n- By default InsideTracker sends email notifications to all customers; please inform us if these should be turned off for your integration.\n- After activation, customer goes through a blood draw blood, and the system gets results automatically upon analysis completion. Results then are reviewed by a physician and can be retrieved","x-displayName":"Blood Results"},{"name":"Customer account","x-displayName":"Customer account"},{"name":"References","x-displayName":"References"},{"name":"Biomarker Categories","x-displayName":"Biomarker Categories"},{"name":"Customer Onboarding","x-displayName":"Customer Onboarding"},{"name":"Profile","x-displayName":"Profile"},{"name":"Onboarding References","x-displayName":"Onboarding References"},{"name":"InnerAge","x-displayName":"InnerAge"},{"name":"Recommendations","x-displayName":"Recommendations"},{"name":"Customer Profile","x-displayName":"Customer Profile"},{"name":"Plan","x-displayName":"Plan"},{"name":"Plan Check-in","x-displayName":"Plan Check-in"},{"name":"Goals","x-displayName":"Goals"},{"name":"ProTips","x-displayName":"ProTips"},{"name":"Report Hub/Service","x-displayName":"Report Hub/Service"},{"name":"Report Hub","x-displayName":"Report Hub"},{"name":"Physio references","description":"Use this API to fetch the public reference data for physio markers and activity types supported by the wearables service.","x-displayName":"Physio references"},{"name":"Physio data","description":"Use this API to retrieve a connected user’s aggregated wearable and physio measurements for a given date range.","x-displayName":"Physio data"},{"name":"Wearables connect","description":"Use this API to connect a user’s wearable data source. At the moment, Apple HealthKit is the only supported provider, and the provider list is expected to expand over time.","x-displayName":"Wearables connect"},{"name":"Apple HealthKit raw data submission","description":"Use this API to submit a user’s Apple HealthKit data to our platform. Your mobile app should request the required HealthKit permissions on device, collect the allowed data locally, and submit the raw records for the user’s connected profile. We ingest the uploaded samples and aggregate them into physio data that can then be queried through the Physio data API.","x-displayName":"Apple HealthKit raw data submission"},{"name":"Webhook Events","description":"Events that InsideTracker sends to partner-configured webhook endpoints.","x-displayName":"Webhook Events"}],"paths":{"/oauth/token":{"post":{"tags":["OAuth2"],"summary":"Token request endpoint","description":"Polymorphic token request endpoint. Use the `grant_type` to select the proper request shape.","operationId":"auth_TokenRequest","security":[],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AuthorizationCodeRequest"},{"$ref":"#/components/schemas/RefreshTokenRequest"},{"$ref":"#/components/schemas/ClientCredentialsRequest"},{"$ref":"#/components/schemas/TokenExchangeRequest"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2ErrorResponse"},"example":{"error":"invalid_request","error_description":"Invalid token request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2ErrorResponse"},"example":{"error":"invalid_client","error_description":"Invalid client credentials"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2ErrorResponse"},"example":{"error":"too_many_requests","error_description":"Too many requests"}}}}},"x-security":["public"]}},"/enterprise/customers/sa/v1/customers":{"post":{"deprecated":true,"description":"Deprecated endpoint.\nUse `POST /enterprise/customers/sa/v1/customers/register` instead.\n\nCreates customers in batch mode (max=1000) and returns results containing customer credentials.\n\nResponse contains results for each customer in request (can be mapped by `extId` or `email`).\n\nIf result status is success - token pair is provided to access customer API.\nFor each succeed result `extId` is generated (if not provided in request) - it must be stored on\nthe client side as customer id, to be able access other partner endpoints related to customers.\n\nIf result status is failure - errors describing problems are provided.\n\nEndpoint always returns 200 as a response code,\neven if 1 failure met in result or all the requests are failed.\n\nIMPORTANT: If you want to create one user, just pass data for one user to this endpoint\n","operationId":"enterprise_createCustomersForPartner","requestBody":{"content":{"application/json":{"schema":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/CreateCustomerForPartnerRequest"}}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateCustomerForPartnerResult"}}}},"description":"OK"},"400":{"content":{"application/json":{}},"description":"Bad request"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"}},"security":[{"company":["customer:w"]}],"summary":"Creating customers accounts in batch mode","tags":["Partner customers"],"x-security":["company"]}},"/enterprise/customers/sa/v1/customers/recreate-tokens":{"post":{"deprecated":true,"description":"Deprecated endpoint.\nThis endpoint should NOT be used for customers created via\n`POST /enterprise/customers/sa/v1/customers/register`.\n\nGenerates new tokens for customers in batch mode (max=1000) and returns them.\n\nResponse contain results for each customer in request (can be mapped by `extId`).\n\nIf result status is success - new token pair is provided to access customer API.\nPrevious token pair MAY NOT WORK ANYMORE since this moment\n\nIf result status is failure - errors are provided.\nEndpoint always returns 200 as a response code, even if 1 failure met in result or all the requests are failed.\n\nIMPORTANT: This endpoint only for token recovery if current token pair is lost or broken for some reason. In normal situation please use refreshToken","operationId":"enterprise_recreateCustomersTokensForPartner","requestBody":{"content":{"application/json":{"schema":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/RenewCustomerCredentialsForPartnerRequest"}}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RenewCustomerCredentialsForPartnerResult"}}}},"description":"OK"},"400":{"content":{"application/json":{}},"description":"Bad request: request format is invalid / did not pass validation"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"}},"security":[{"company":["customer:w"]}],"summary":"Recovering customers tokens in batch mode","tags":["Partner customers"],"x-security":["company"]}},"/enterprise/customers/sa/v1/customers/register":{"post":{"description":"Registers customers in batch mode (maximum 1000 items per request) and returns\nper-customer registration results.\n\nThe response includes one result for each processed customer and can be correlated by `extId`\nor `email`.\n\nFor each successful result, `extId` is generated if it was not provided in the request.\nStore this value on the client side as the partner customer identifier for future customer-related\npartner endpoints.\n\nFailed results include error details.\n\nThis endpoint always returns `200 OK` for business-level results, including partial success\nor full business-level failure.\n\nTo register a single customer, send a request array containing one item.\n","operationId":"enterprise_registerCustomersForPartner","requestBody":{"content":{"application/json":{"schema":{"type":"array","minItems":0,"maxItems":1000,"items":{"$ref":"#/components/schemas/CreateCustomerForPartnerRequest"}}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateCustomerForPartnerRegisterResult"}}}},"description":"OK"},"400":{"content":{"application/json":{}},"description":"Bad request"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"}},"security":[{"company":["customer:w"]}],"summary":"Register customer accounts in batch mode","tags":["Partner customers"],"x-security":["company"]}},"/enterprise/customers/sa/v1/customers/{extId}/status":{"put":{"description":"Updates the status of a customer.\n\nThe customer is identified by `extId`, which is the external customer identifier returned during\ncustomer creation.\n\nSupported target statuses are `ACTIVE` and `INACTIVE`.\n\nIf the requested status is the same as the current one, the request is treated as a no-op and\nstill returns `204 No Content`.\n","operationId":"enterprise_updateCustomerStatusForPartner","parameters":[{"in":"path","name":"extId","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerCustomerStatusRequest"}}},"required":true},"responses":{"204":{"description":"Successful operation"},"400":{"content":{"application/json":{}},"description":"Invalid request"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"},"404":{"content":{"application/json":{}},"description":"Customer not found"}},"security":[{"company":["customer:w"]}],"summary":"Update customer status","tags":["Partner customers"],"x-security":["company"]}},"/enterprise/inventory/sa/v1/assignment":{"delete":{"description":"Unassigns the item from a customer. Only unused item can be unassigned.\n","operationId":"enterprise_deleteEnterpriseInventoryItemAssigment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseInventoryItemAssigmentRequest"}}},"required":true},"responses":{"200":{"description":"The item was unassigned from the customer"},"400":{"content":{"application/json":{}},"description":"Bad Request: `inventoryItemSku` or `customerExtId` is incorrect,\nor the item is not unassignable.\n"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"}},"security":[{"company":["inventory"]}],"summary":"Unassign the item from the customer","tags":["Inventory"],"x-security":["company"]},"post":{"description":"Assigns the available (non-assigned) item to a customer.\n\nThe assigned item can be activated by the customer to be used.\n\nThe assigned item can be unassigned from a customer until used,\nmaking it available for assignment again.\n","operationId":"enterprise_postEnterpriseInventoryItemAssigment","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterpriseInventoryItemAssigmentRequest"}}},"required":true},"responses":{"200":{"description":"The item was assigned to the customer"},"400":{"content":{"application/json":{}},"description":"Bad Request: `inventoryItemSku` or `customerExtId` is incorrect,\nor there is no item for assignment available.\n"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"}},"security":[{"company":["inventory"]}],"summary":"Assign an item to a customer","tags":["Inventory"],"x-security":["company"]}},"/enterprise/inventory/sa/v1/customer/{customerExtId}":{"get":{"description":"Provides information about the items assigned to the partner's customer.\n","operationId":"enterprise_getEnterpriseInventorySummaryByCustomer","parameters":[{"description":"ExternalId attached to customer","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c","in":"path","name":"customerExtId","required":true,"schema":{"type":"string","description":"ExternalId attached to customer","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c"}},{"description":"Page number, starting from 0","example":0,"in":"query","name":"page","schema":{"type":"integer","format":"int32"}},{"description":"Number of items per page","example":100,"in":"query","name":"size","schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnterpriseCustomerInventoryItem"}}}},"description":"OK"},"400":{"content":{"application/json":{}},"description":"Bad Request: `customerExtId` is malformed\n"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"},"404":{"content":{"application/json":{}},"description":"Not Found: No customer with provided `customerExtId` exists\n"}},"security":[{"company":["inventory"]}],"summary":"Get partner's customer inventory","tags":["Inventory"],"x-security":["company"]}},"/enterprise/inventory/sa/v1/summary":{"get":{"description":"Provides information about the kinds and the numbers of available,\nused, and total items for the partner.\n","operationId":"enterprise_getEnterpriseInventorySummary","responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EnterpriseInventoryItem"}}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExceptionDto"}}},"description":"Bad Request"},"401":{"content":{"application/json":{}},"description":"Unauthorized: Valid authentication is required"},"403":{"content":{"application/json":{}},"description":"Forbidden: Required scope is not provided in authentication"}},"security":[{"company":["inventory"]}],"summary":"Get partner's inventory summary","tags":["Inventory"],"x-security":["company"]}},"/enterprise/sandbox/sa/v1/customer/{externalId}/blood-test/{testId}/publishResult":{"post":{"description":"Sandbox does not work with real clinics, so this endpoint is used to emulate clinical test result\non the high level\n\nThis endpoint is used for testing purposes only, and available only for sandbox environment.\n","operationId":"enterprise_EmulateCustomerTestResultPublished","parameters":[{"in":"path","name":"externalId","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"testId","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmulateResultPublishRequest"}}},"required":true},"responses":{"200":{"description":"OK"},"400":{"content":{},"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not found"},"422":{"description":"Validation error"}},"security":[{"company":["sandbox"]}],"summary":"Emulate customer test result published","tags":["Sandbox"],"x-security":["company"]}},"/health-proms/customer/v1/answers/{date}":{"put":{"tags":["Health PROMs"],"summary":"Create PROM answers for a date","description":"Stores the authenticated customer's Patient-Reported Outcome Measure (PROM) answers for the provided date.\n\nThe date must be today.\nThe request body must contain a non-empty list that covers every configured questionnaire\nquestion exactly once, and each answer must use a valid answer option for its question.\nAnswers can be submitted only once per customer and date.\n","operationId":"health-proms_createPromAnswers","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromAnswerItem"}}}},"required":true},"responses":{"204":{"description":"PROM answers created"},"400":{"description":"Invalid request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["health-proms"]}],"x-security":["customer"]}},"/health-proms/customer/v1/questionnaire":{"get":{"tags":["Health PROMs"],"summary":"Get PROM questionnaire","description":"Returns the Patient-Reported Outcome Measure (PROM) questionnaire with questions and answer options.","operationId":"health-proms_getPromQuestionnaire","responses":{"200":{"description":"PROM questionnaire","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromQuestionnaire"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["health-proms"]}],"x-security":["customer"]}},"/health-proms/customer/v1/answers":{"get":{"tags":["Health PROMs"],"summary":"Get PROM answers for a period","description":"Returns the authenticated customer's Patient-Reported Outcome Measure (PROM) answers in the selected period.\n\nBoth startDate and endDate are required, startDate must not be after endDate,\nand the requested period must not exceed 90 days.\n","operationId":"health-proms_getPromAnswers","parameters":[{"name":"startDate","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":true,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"PROM answers in selected period","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PromAnswerRecord"}}}}},"400":{"description":"Invalid request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["health-proms"]}],"x-security":["customer"]}},"/health-tags/partner/v1/tags":{"get":{"tags":["Health Tags: Master Data Management"],"summary":"Get tag definitions","description":"Returns a page of non-deleted tag definitions from the requested source, sorted by tag ID.","operationId":"health-tags_getPartnerTags","parameters":[{"name":"tagSet","in":"query","description":"Tag source: `BASE` returns InsideTracker-owned tags; `CUSTOM` returns tags owned by the authenticated partner; `COMBINED` returns both sources, resolving duplicate titles in favor of the partner tag.","required":false,"schema":{"type":"string","default":"BASE","description":"Tag set selector for partner master-data management.","enum":["BASE","CUSTOM","COMBINED"]}},{"name":"categoryId","in":"query","description":"Optional category identifier. Omit it to return all categories.","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","description":"Zero-based page index. Must be zero or greater.","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"Maximum number of items per page. Must be greater than zero.","required":false,"schema":{"type":"integer","format":"int32","default":20,"minimum":1}}],"responses":{"200":{"description":"Paged list of tags available to the partner","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasePageDto"}}}},"400":{"description":"Invalid query parameters: `tagSet` must be `BASE`, `CUSTOM`, or `COMBINED`; `page` must be zero or greater; `size` must be greater than zero."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"company":["health-tags:r","health-tags:w"]}],"x-security":["company"]},"post":{"tags":["Health Tags: Master Data Management"],"summary":"Create partner tag","description":"Creates an active tag definition owned by the authenticated partner. The stored identifier is the supplied key for the base organization and `P{partnerId}_{key}` for every other partner. The resulting identifier must be globally unused, the category must exist, and the title must be unique among the partner's active tags (case-insensitive).","operationId":"health-tags_createPartnerTag","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCreateRequest"}}},"required":true},"responses":{"200":{"description":"Tag created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagPartnerView"}}}},"400":{"description":"Validation failed: a required field is blank, a field exceeds its maximum length, the key is malformed, the category does not exist, the resulting ID already exists (including a soft-deleted tag), or the partner already has an active tag with this title ignoring case."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"company":["health-tags:w"]}],"x-security":["company"]}},"/health-tags/partner/v1/tags/{tagId}":{"put":{"tags":["Health Tags: Master Data Management"],"summary":"Update partner tag","description":"Updates an active tag owned by the authenticated partner. At least one request field must contain a non-blank value. Tags that have any customer check-in response cannot be updated; a supplied category must exist, and a supplied title must be unique among the partner's active tags (case-insensitive).","operationId":"health-tags_updatePartnerTag","parameters":[{"name":"tagId","in":"path","description":"Identifier of an active tag owned by the authenticated partner. It must contain only uppercase letters, digits, and underscores.","required":true,"schema":{"type":"string","pattern":"^[A-Z0-9_]+$"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerTagUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Tag updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagPartnerView"}}}},"400":{"description":"Validation failed: malformed identifier, no populated update field, an invalid field length, a missing category, a duplicate active title, or the tag already has customer responses."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"No active tag with this identifier is owned by the authenticated partner."}},"security":[{"company":["health-tags:w"]}],"x-security":["company"]},"delete":{"tags":["Health Tags: Master Data Management"],"summary":"Delete partner tag","description":"Soft-deletes an active tag owned by the authenticated partner. Historical customer responses are retained.","operationId":"health-tags_deletePartnerTag","parameters":[{"name":"tagId","in":"path","description":"Identifier of an active tag owned by the authenticated partner. It must contain only uppercase letters, digits, and underscores.","required":true,"schema":{"type":"string","pattern":"^[A-Z0-9_]+$"}}],"responses":{"200":{"description":"Tag deleted"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"No active tag with this identifier is owned by the authenticated partner. Already deleted tags are not found."}},"security":[{"company":["health-tags:w"]}],"x-security":["company"]}},"/health-tags/partner/v1/tag-categories":{"get":{"tags":["Health Tags: Master Data Management"],"summary":"Get tag categories","description":"Returns tag categories sorted by ascending category sort order.","operationId":"health-tags_getTagCategories","parameters":[{"name":"page","in":"query","description":"Zero-based page index. Must be zero or greater.","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"Maximum number of items per page. Must be greater than zero.","required":false,"schema":{"type":"integer","format":"int32","default":20,"minimum":1}}],"responses":{"200":{"description":"Tag categories","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagCategoryPage"}}}},"400":{"description":"Invalid pagination parameters: `page` must be zero or greater and `size` must be greater than zero."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"company":["health-tags:r"]}],"x-security":["company"]}},"/health-tags/customer/v1/tags":{"get":{"tags":["Health Tags: User Operations"],"summary":"Get customer tags","description":"Returns tags visible to the authenticated customer, grouped by category, with the customer's selected tags indicated.","operationId":"health-tags_getCustomerTags","parameters":[{"name":"tagSet","in":"query","description":"Tag source: `BASE` returns InsideTracker-owned tags; `CUSTOM` returns tags owned by the customer's partner; `COMBINED` returns both sources, resolving duplicate titles in favor of the partner tag.","required":false,"schema":{"type":"string","default":"BASE","description":"Tag set selector for customer journal configuration.","enum":["BASE","CUSTOM","COMBINED"]}}],"responses":{"200":{"description":"Tags grouped by category","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagByCategoryCustomerView"}}}}},"400":{"description":"Invalid `tagSet`; accepted values are `BASE`, `CUSTOM`, and `COMBINED`."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/health-tags/customer/v1/tags/{tagId}":{"post":{"tags":["Health Tags: User Operations"],"summary":"Select a tag for tracking","description":"Marks a visible tag as selected for tracking. A tag is visible only when it is base-owned or belongs to the authenticated customer's partner organization. Repeating this operation is safe.","operationId":"health-tags_selectTag","parameters":[{"name":"tagId","in":"path","description":"Identifier of a visible tag. No format restriction is enforced by this endpoint.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tag selected"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"The tag does not exist or is not visible to the authenticated customer."}},"security":[{"customer":["basic"]}],"x-security":["customer"]},"delete":{"tags":["Health Tags: User Operations"],"summary":"Deselect a tag for tracking","description":"Marks a visible tag as no longer selected for tracking. Repeating this operation is safe.","operationId":"health-tags_deselectTag","parameters":[{"name":"tagId","in":"path","description":"Identifier of a visible tag. No format restriction is enforced by this endpoint.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tag deselected"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"The tag does not exist or is not visible to the authenticated customer."}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/health-tags/customer/v1/check-ins":{"put":{"tags":["Health Tags: User Operations"],"summary":"Write customer check-ins","description":"Creates or updates a check-in when `checkInValue` is `true` or `false`; removes that tag's check-in for the specified date when it is `null`. Every tag must be visible to the authenticated customer and each date must be within the one week window.","operationId":"health-tags_putCustomerCheckIns","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagCheckInRequest"}}}},"required":true},"responses":{"200":{"description":"Check-ins stored"},"400":{"description":"Validation failed: a list item is null, `tagId` is blank, `checkInDate` is missing or outside the one week window, or a date is not in `YYYY-MM-DD` form."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"A tag ID does not exist or is not visible to the authenticated customer."}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/health-tags/customer/v1/check-ins-with-refs":{"get":{"tags":["Health Tags: User Operations"],"summary":"Read customer check-ins","description":"Returns check-ins in the inclusive requested date range, together with metadata for selected tags and tags that have responses in the range. Every date in the range appears in `data`, including dates with no check-ins. Returned tag metadata is sorted with selected tags first, then by case-insensitive title and ID.","operationId":"health-tags_getCustomerCheckInsWithRefs","parameters":[{"name":"startDate","in":"query","description":"Inclusive range start, in `YYYY-MM-DD` form. It must be on or before `endDate`.","required":true,"schema":{"type":"string","format":"date","example":"2025-09-22"}},{"name":"endDate","in":"query","description":"Inclusive range end, in `YYYY-MM-DD` form. It must be on or after `startDate`, and the difference between the two dates must not exceed 90 days.","required":true,"schema":{"type":"string","format":"date","example":"2025-10-22"}}],"responses":{"200":{"description":"Check-in history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagDataCustomerResponse"}}}},"400":{"description":"Missing or malformed date parameter, `startDate` after `endDate`, or a range longer than 90 days."},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/customer/oauth/token":{"post":{"tags":["Customer OAuth2"],"deprecated":true,"summary":"Token request endpoint","description":"Deprecated endpoint. Use `POST /oauth/token` with token exchange instead.","operationId":"it-auth_Token_endpoint","security":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTokenRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/oauthErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/oauthErrorResponse"}}}}},"x-security":["public"]}},"/bru/customer/v1/files":{"post":{"tags":["BRU (Blood Result Upload)"],"summary":"Upload one temporary BRU source file","description":"Uploads one PDF, image, FHIR R4 NDJSON, or HL7 v2 source file for later asynchronous processing. Each file must be uploaded separately before process submission. Uploaded files are stored temporarily, are not associated with any process until submission, and expire after 24 hours if they are not included in a BRU process.","operationId":"uploadCustomerBruFile","security":[{"customer":["bru.upload"]}],"requestBody":{"required":true,"description":"Multipart upload containing one supported BRU source file. All files must be smaller than 50 MB; HL7 files must be smaller than 10 MB. All uploads are virus scanned.","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BruFileUploadRequest"}}}},"responses":{"201":{"description":"Temporary BRU file uploaded successfully. Store the returned `uploadedFileId` and include it in a later process submission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruFileUploadResponse"},"example":{"uploadedFileId":"0196ea8c-91c7-70aa-9c0f-a0b123456789"}}}},"400":{"description":"Invalid upload, including a missing file, unsupported type, or exceeded size limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"unsupportedFile":{"summary":"Unsupported file type","value":{"message":"BRU upload accepts PDF, image, FHIR NDJSON, and HL7 files only."}},"fileTooLarge":{"summary":"General file size limit","value":{"message":"BRU upload file size must be below 50 MB."}},"hl7FileTooLarge":{"summary":"HL7 file size limit","value":{"message":"BRU HL7 upload file size must be below 10 MB."}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenUpload"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]}},"/bru/customer/v1/processes":{"post":{"tags":["BRU (Blood Result Upload)"],"summary":"Submit an asynchronous BRU process","description":"Creates a BRU processing job from one or more previously uploaded files. Submit the full `uploadedFileIds` list in one request and store the returned `processId`. All files in one process must belong to the same processing type; do not mix Document/OCR, FHIR, and HL7 files. Processing continues asynchronously after the request is accepted.","operationId":"createCustomerBruProcess","security":[{"customer":["bru.upload"]}],"requestBody":{"required":true,"description":"A non-empty list of previously returned `uploadedFileId` values, with an optional caller-supplied correlation ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBruProcessRequest"},"example":{"uploadedFileIds":["0196ea8c-91c7-70aa-9c0f-a0b123456789"],"externalId":"partner-import-2026-07-28-001","validator":"CUSTOMER"}}}},"responses":{"202":{"description":"BRU processing request accepted. Use the returned `processId` to poll status or correlate webhook updates.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruCustomerProcess"},"example":{"processId":"0196ea8d-2f34-7a11-8a3c-123456789abc","status":"DOCUMENT_UPLOADED","validationMode":"AUTO","validator":null,"hasError":false,"autoPublishResult":true,"externalId":"partner-import-2026-07-28-001","createdAt":"2026-07-28T10:15:30+00:00","updatedAt":"2026-07-28T10:15:30+00:00","bloodResults":[]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenUpload"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]},"get":{"tags":["BRU (Blood Result Upload)"],"summary":"List customer BRU processes","description":"Lists only processes owned by the authenticated customer.","operationId":"listCustomerBruProcesses","security":[{"customer":["bru.status"]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/BruProcessStatus"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Customer-owned processes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruCustomerProcessList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenStatus"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]}},"/bru/customer/v1/processes/{processId}":{"get":{"tags":["BRU (Blood Result Upload)"],"summary":"Get BRU process status","description":"Returns the latest known state of an asynchronous BRU process. Use this endpoint to track progress, determine whether processing has finished, or recover after a missed webhook notification.","operationId":"getCustomerBruProcess","security":[{"customer":["bru.status"]}],"parameters":[{"$ref":"#/components/parameters/ProcessId"}],"responses":{"200":{"description":"Current BRU process state. `bloodResults` contains the legacy IDs of created blood results. When automatic publication creates no Blood results, the terminal status is `PUBLISHED_WITH_NO_RESULTS` and `bloodResults` is empty; otherwise the status is `PUBLISHED`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruCustomerProcess"},"examples":{"published":{"summary":"At least one Blood result published","value":{"processId":"0196ea8d-2f34-7a11-8a3c-123456789abc","status":"PUBLISHED","validationMode":"AUTO","validator":null,"hasError":false,"autoPublishResult":true,"externalId":"partner-import-2026-07-28-001","createdAt":"2026-07-28T10:15:30+00:00","updatedAt":"2026-07-28T10:15:38+00:00","bloodResults":[{"legacyId":12321}]}},"publishedWithNoResults":{"summary":"Automatic publication created no Blood results","value":{"processId":"0196ea8d-2f34-7a11-8a3c-123456789abc","status":"PUBLISHED_WITH_NO_RESULTS","validationMode":"AUTO","validator":null,"hasError":false,"autoPublishResult":true,"externalId":"partner-import-2026-07-28-001","createdAt":"2026-07-28T10:15:30+00:00","updatedAt":"2026-07-28T10:15:38+00:00","bloodResults":[]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenStatus"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]}},"/bru/customer/v1/processes/{processId}/review":{"get":{"tags":["BRU (Blood Result Upload)"],"summary":"Get BRU review detail","description":"Returns source-file metadata, parsed OCR data and evidence, immutable AUTO mappings, and the current editable VALIDATED mappings. The process must belong to the authenticated customer; another customer's process returns `404`.","operationId":"getCustomerBruReview","security":[{"customer":["bru.status"]}],"parameters":[{"$ref":"#/components/parameters/ProcessId"}],"responses":{"200":{"description":"Review detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruReviewDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenStatus"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]},"patch":{"tags":["BRU (Blood Result Upload)"],"summary":"Apply ordered VALIDATED review mutations","description":"Applies all operations atomically and in order. Only a customer-owned process in `ON_VALIDATION` with `validator=CUSTOMER` may be changed. AUTO mappings, parsed results, source files, and evidence are immutable.","operationId":"applyCustomerBruReviewMutations","security":[{"customer":["bru.status"]}],"parameters":[{"$ref":"#/components/parameters/ProcessId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyBruReviewMutationsRequest"}}}},"responses":{"200":{"description":"Updated review detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruReviewDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenStatus"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/ReviewConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]}},"/bru/customer/v1/processes/{processId}/review/approval":{"post":{"tags":["BRU (Blood Result Upload)"],"summary":"Explicitly approve BRU review","description":"Requires no request body. Approval is allowed for a customer-owned process only in `ON_VALIDATION` with `validator=CUSTOMER`; it may contain no VALIDATED results and need not have edits.","operationId":"approveCustomerBruReview","security":[{"customer":["bru.status"]}],"parameters":[{"$ref":"#/components/parameters/ProcessId"}],"responses":{"200":{"description":"Approved process.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruCustomerProcess"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenStatus"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/ReviewConflict"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]}},"/bru/customer/v1/processes/{processId}/files/{processFileId}/raw-file":{"get":{"tags":["BRU (Blood Result Upload)"],"summary":"Download a BRU source file","description":"Returns a source file only when it belongs to the requested process and that process belongs to the authenticated customer. Customer read access remains available for `validator=OPS` processes.","operationId":"downloadCustomerBruRawFile","security":[{"customer":["bru.status"]}],"parameters":[{"$ref":"#/components/parameters/ProcessId"},{"$ref":"#/components/parameters/ProcessFileId"},{"name":"disposition","in":"query","required":false,"description":"Response content disposition.","schema":{"type":"string","enum":["inline","attachment"],"default":"attachment"}}],"responses":{"200":{"description":"Binary source file.","headers":{"Content-Disposition":{"schema":{"type":"string"}}},"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ForbiddenStatus"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalError"}},"x-security":["customer"]}},"/api/customer/v1/account/full":{"get":{"tags":["Customer account"],"summary":"Account information","description":"Deprecated. Use `/it-web/account/customer/v1/info/full` instead.","operationId":"it-web_a976380c65d53e2eeb402cdf6429e368","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"customer":{"$ref":"#/components/schemas/CustomerAccountFullSchema"},"settings":{"$ref":"#/components/schemas/CustomerSettingsSchema"},"address":{"$ref":"#/components/schemas/CustomerAddressSchema"},"rosetta":{"type":"array","items":{"properties":{"status":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/customer/account/change-email":{"patch":{"tags":["Customer account"],"summary":"Change email","description":"Deprecated. Use `/it-web/account/customer/v1/change-email` instead.","operationId":"it-web_7cd745a7d838a201994a6865517a4a32","deprecated":true,"security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEmailChangeRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/pages/account/names-post":{"post":{"tags":["Customer account"],"summary":"Update customer names","description":"Update customer first, last, and middle names","operationId":"it-web_updateCustomerNamesV1","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerNamesUpdateRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/pages/account/address-post":{"post":{"tags":["Customer account"],"summary":"Update customer address","description":"Update customer address information","operationId":"it-web_updateCustomerAddressV1","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAddressRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/pages/account/birth-date-post":{"post":{"tags":["Customer account"],"summary":"Update customer birth date","description":"Update customer birth date information","operationId":"it-web_updateCustomerBirthDateV1","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerBirthDateRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/pages/account/gender-post":{"post":{"tags":["Customer account"],"summary":"Update customer gender","description":"Update customer gender","operationId":"it-web_updateCustomerGenderV1","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGenderRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/customer/v1/blood/markers-for-view":{"get":{"tags":["References"],"summary":"Available markers","description":"Deprecated. Use `/it-web/markers/customer/v1/blood/markers-for-view` instead.","operationId":"it-web_afe886ae615c9a54c08d3d1e5c8e16c4","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"abbrs":{"type":"array","items":{"type":"string","example":"Glu"}}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/public/references/marker-categories":{"get":{"tags":["Biomarker Categories"],"security":[],"summary":"Marker Categories","description":"Retrieves a list of marker categories and their details including blood and physiological markers.","operationId":"it-web_getMarkerCategories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"abbr":{"type":"string","example":"METABOLISM","description":"ID of the marker category"},"name":{"type":"string","example":"Metabolism","description":"Name of the marker category"},"forGender":{"type":"string","enum":["all","m","f"],"example":"all","description":"Indicates which gender this marker category is applicable for. 'all' - applicable to all genders, 'm' - only for males, 'f' - only for females"},"description":{"type":"string","example":"Your body's metabolism reflects the processes in the body that consume and use energy for the growth, repair, and maintenance of cells, tissues, and organs. Your metabolic biomarkers reflect the efficiency of this process.","description":"Detailed description of the marker category"},"ranges":{"type":"array","items":{"properties":{"state":{"type":"string","enum":["NEEDS_WORK","FAIR","GOOD","OPTIMAL"],"example":"GOOD","description":"State of the category, indicating health status"},"from":{"type":"number","format":"integer","minimum":0,"example":70,"description":"Lower boundary of the range"},"to":{"type":"number","format":"integer","maximum":100,"example":85,"description":"Upper boundary of the range"}},"type":"object"},"description":"Ranges for marker category values with associated health states"},"bloodMarkerAbbrs":{"type":"array","items":{"type":"string","example":"Glu"},"description":"List of blood marker abbreviations associated with this category"},"physioMarkerAbbrs":{"type":"array","items":{"type":"string","example":"RHR_M"},"description":"List of physiological marker abbreviations associated with this category"}},"type":"object"}}},"type":"object"}}}}},"x-security":["public"]}},"/api/customer/v1/blood/results":{"get":{"tags":["Blood Results"],"summary":"All blood results","description":"Deprecated. Use `/it-web/blood/customer/v1/results` instead.","operationId":"it-web_36607baae8c2d791d1f65449e679fe9f","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"id":{"type":"number","format":"integer","example":23},"isEditable":{"type":"boolean","example":false},"countryCode":{"type":"string","example":"US"},"note":{"type":"string","example":null},"publishedAt":{"type":"string","example":"2023-07-27"},"testedAt":{"type":"string","example":"2023-07-27"},"testedTimeAt":{"type":"string","example":"2023-07-01T00:00:00"},"package":{"properties":{"id":{"type":"number","format":"integer","example":10},"name":{"type":"string","example":"Ultimate"}},"type":"object"},"markerValues":{"type":"array","items":{"properties":{"markerId":{"type":"number","format":"integer","example":12},"markerAbbr":{"type":"string","example":"HDL"},"calculated":{"type":"boolean","example":false},"optimizationStateAbbr":{"type":"string","example":"LOW","enum":["LOW","BORDERLINE_LOW","NEAR_NORMAL_LOW","NORMAL_LOW","OPTIMAL","NORMAL_HIGH","NEAR_NORMAL_HIGH","BORDERLINE_HIGH","HIGH","CANNOT_DETERMINE"]},"optimizationStateValue":{"type":"number","format":"integer","example":-4},"precision":{"type":"number","format":"integer","example":0},"value":{"type":"number","format":"float","example":12.4}},"type":"object"}}},"type":"object"}},"totalPages":{"type":"number","format":"integer","example":1},"totalElements":{"type":"number","format":"integer","example":12}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/customer/v1/blood/results/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The ID of the blood test result"}],"get":{"tags":["Blood Results"],"summary":"Get specific blood result","description":"Deprecated. Use `/it-web/blood/customer/v1/results/{id}` instead.","operationId":"it-web_0545886e759112b630c557aab43eecb1","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultExtendedResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"}},"x-security":["customer"]}},"/api/pages/orders/activateMbd":{"post":{"tags":["Blood Results"],"summary":"Activate mbd-order","description":"Activate given mbd-order, provide customer contacts and note for phlebotomist to contact customer","operationId":"it-web_activateMbdOrderV1","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"testId":{"type":"number","example":563,"description":"Result Id to activate"},"note":{"type":"string","example":"Sample text","description":"Note for phlebotomist to contact customer"},"phone":{"type":"string","example":"+12223333333","description":"Customer contact phone number"},"countryId":{"type":"number","example":233,"description":"Internal country code. 233 for US"},"stateAbbr":{"type":"string","example":"NY","description":"US state in 2-letter abbreviation format"},"city":{"type":"string","example":"New York","description":"City name"},"street":{"type":"string","example":"123 Main St","description":"Street and building number"},"apartment":{"type":"string","example":"123","description":"Apartment number, null if not applicable"},"zipCode":{"type":"string","example":"12311","description":"Zip code"},"firstName":{"type":"string","example":"John","description":"First name"},"lastName":{"type":"string","example":"Doe","description":"Last name"}},"required":["testId","note","phone","countryId","stateAbbr","city","street","zipCode","firstName","lastName"]}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/customer/blood/ranges":{"get":{"tags":["Blood Results"],"summary":"Blood marker ranges","description":"Deprecated. Use `/it-web/blood/customer/v1/ranges` instead.","operationId":"it-web_getBloodMarkerRangesV1","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"markerId":{"type":"number","format":"integer","deprecated":true,"description":"Numeric Marker ID. Deprecated, use markerAbbr instead","example":123},"markerAbbr":{"type":"string","example":"Glu","description":"Marker ID (Abbreviation)"},"minBorderLine":{"type":"number","format":"float","example":123.2,"description":"Low/BorderlineLow threshold"},"minNearNormal":{"type":"number","format":"float","example":133.2,"description":"BorderlineLow/NearNormalLow threshold"},"minA":{"type":"number","format":"float","example":143.2,"description":"NearNormalLow/NormalLow threshold"},"minG":{"type":"number","format":"float","example":153.2,"description":"NormalLow/OptimizedLow threshold"},"maxG":{"type":"number","format":"float","example":163.2,"description":"OptimizedHigh/NormalHigh threshold"},"maxA":{"type":"number","format":"float","example":173.2,"description":"NormalHigh/NearNormalHigh threshold"},"maxNearNormal":{"type":"number","format":"float","example":183.2,"description":"NearNormalHigh/BorderlineHigh threshold"},"maxBorderLine":{"type":"number","format":"float","example":193.2,"description":"BorderlineHigh/High threshold"}},"type":"object"}}},"type":"object"}}}},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/customer/blood/results-upload/available-markers-for-new-result":{"get":{"tags":["References"],"description":"Deprecated. Use `/it-web/results-upload/customer/v1/available-markers-for-new-result` instead.","summary":"Get markers available for upload","operationId":"it-web_044664b7d8d2f6101e87b30c330b5ea8","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"Returns available marker abbreviations","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"type":"string","example":"Glu"}}},"type":"object"}}}},"401":{"description":"Not allowed"}},"x-security":["customer"]}},"/api/customer/v1/blood/results-upload/add-result":{"post":{"tags":["Blood Results"],"summary":"Add blood result","description":"Deprecated. Use `/it-web/results-upload/customer/v1/add-result` instead.","operationId":"it-web_bf2671f7f1465296bfbd2b97384194e1","deprecated":true,"security":[{"customer":["basic"]}],"requestBody":{"description":"Blood result upload request","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultUploadRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultUploadResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/customer/blood/results-upload/{resultId}/available-markers":{"parameters":[{"name":"resultId","in":"path","required":true,"schema":{"type":"string"},"description":"The ID of the blood test result"}],"get":{"tags":["Blood Results"],"description":"Deprecated. Use `/it-web/results-upload/customer/v1/results/{resultId}/available-markers` instead.","summary":"Get available marker for a specific result","operationId":"it-web_33e22738f6fa907b1dce178d573c7c87","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"Return available marker abbreviations for the given result","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"type":"string","example":"Glu"}}},"type":"object"}}}},"401":{"description":"Not allowed"}},"x-security":["customer"]}},"/api/customer/blood/results/{resultId}/activate":{"post":{"tags":["Blood Results"],"summary":"Activate blood result","description":"Activate blood result for the customer","operationId":"it-web_a2f3b0c4e5d6f7g8h9i0j1k2l3m4n5o6","security":[{"customer":["basic"]}],"parameters":[{"name":"resultId","in":"path","required":true,"description":"Blood result ID. Could be received from the blood results list with isActivated=false","schema":{"type":"number","format":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"stateAbbr":{"type":"string","example":"CA"},"countryId":{"type":"number","format":"integer","example":233},"city":{"type":"string","example":"Vampula"},"street":{"type":"string","example":"Virkatie 7"},"apartment":{"type":"string","example":""},"zipCode":{"type":"string","example":"32610"}},"required":["stateAbbr","countryId","city","street","zipCode"]},"contact":{"type":"object","properties":{"phone":{"type":"string","example":"11111111111"}},"required":["phone"]},"bloodDrawLocation":{"type":"object","properties":{"countryId":{"type":"number","format":"integer","example":233},"stateAbbr":{"type":"string","example":"AL"}},"required":["countryId","stateAbbr"]}},"required":["address","contact","bloodDrawLocation"]}}}},"responses":{"200":{"description":"OK - Blood result activated successfully","content":{"application/json":{"schema":{"type":"array","items":{}},"example":[]}}},"422":{"description":"Validation error - One or more fields are incorrect","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"array","items":{"type":"object","properties":{"loc":{"type":"array","items":{"type":"string"}},"msg":{"type":"string"},"type":{"type":"string"}}}}}},"example":{"detail":[{"loc":["body","contact","phone"],"msg":"Phone number must be valid","type":"value_error"}]}}}}},"x-security":["customer"]}},"/api/customer/v1/blood/results-upload/{resultId}":{"parameters":[{"name":"resultId","in":"path","required":true,"schema":{"type":"string"},"description":"The ID of the blood test result"}],"patch":{"tags":["Blood Results"],"summary":"Update blood result with a specific ID","description":"Deprecated. Use `/it-web/results-upload/customer/v1/results/{resultId}` instead.","operationId":"it-web_4a658fa8273a43b4e079eabb4d91bee9","deprecated":true,"security":[{"customer":["basic"]}],"parameters":[{"name":"resultId","in":"path","required":true,"schema":{"type":"number","format":"integer"},"example":42890}],"requestBody":{"description":"Existing blood result update request","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultUploadRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"403":{"description":"Result not editable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/customer/markers/categories-for-each-result":{"get":{"tags":["Biomarker Categories"],"summary":"Get biomarker categories state for all results","description":"Deprecated. Use `/it-web/categories/customer/v1/categories-for-each-result` instead.","operationId":"it-web_eee6f6535185d6d673af0e1999d6e3fb","deprecated":true,"parameters":[{"name":"forLastResults","in":"query","required":false,"schema":{"type":"number","format":"integer"},"description":"Number of last results to include in response"}],"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoriesByResultsResponse"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["customer"]}},"/api/pages/physioMarkers/physioMarkersPost":{"post":{"tags":["Customer Onboarding"],"summary":"Add Physio data for the user","description":"This endpoint validation strictly depends on customer setting `isMetricCountSystem`.\n>\n This setting is responsible for telling a front-end if it is necessary to convert measurements.\n>\n**When sending the data please keep in mind that you need to convert them to the corresponding system**\n\n**Acceptable ranges:**\n\n>`rhr`: [23 - 110], measure system independent \n\n>`bodyFatPercent`: [0.30 - 90], measure system independent\n\n>`waist`: metric - cm[50.8 - 190.5], imperial - inches[20 - 75]\n\n>`hip`: metric - cm[50.8 - 190.5], imperial - inches[20 - 75]\n\n>`height1` and `height2`: total height is a combination of both. \n>\n>metric : `height1` - meters, `height2` - cm, f.e. `height1`=1 + `height2`=88 = 188 cm, range cm[122 - 241]\n>\n>imperial - `height1` - feet, `height2` - inches, f.e. `height1`=5 + `height2`=11 = 71 inches, range inches[48 - 95]\n\n>`weight`: metric - kg[23 - 453] including bounding values, imperial - lbs(50 - 1000), excluding bounding values\n\n**NOTE:** If you want to validate data on client side, it's recommended to convert them to imperial system and use imperial ranges.","operationId":"it-web_add-physio-markers-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Physio data","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhysioMarkersRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/dietary/constraintsPost":{"post":{"tags":["Customer Onboarding"],"summary":"Add dietary constraints","operationId":"it-web_add-dietary-constraints-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Dietary restrictions","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DietaryRestrictionsRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/foods/foodsPost":{"post":{"tags":["Customer Onboarding"],"summary":"Add user's food frequency","operationId":"it-web_add-foods-frequency-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Foods consumption frequencies","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoodFrequencyRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/foods/beveragesPost":{"post":{"tags":["Customer Onboarding"],"summary":"Add user's beverages frequency","operationId":"it-web_add-beverages-frequency-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Beverages consumption frequency","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoodFrequencyRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/takeout/takeoutPost":{"post":{"tags":["Customer Onboarding"],"summary":"Takeout food frequency","operationId":"it-web_add-takeout-frequency-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Takeout food consumption consumption frequency","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoutFrequencyRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/supplement/supplements-post":{"post":{"tags":["Customer Onboarding"],"summary":"Common supplements questions","description":"NOTE: if the currentlyTakes parameter is 'No', the next step (details about supplements) should be skipped","operationId":"it-web_add-supplements-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Supplements","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonSupplementsRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/supplement/dosage-post":{"post":{"tags":["Customer Onboarding"],"summary":"Supplements dosages","description":"For each supplement selected on the previous step, the dosage should be provided using the request body","operationId":"it-web_add-supplements-dosage-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Supplements dosage","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplementsDosageRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/exercise/exercises-post":{"post":{"tags":["Customer Onboarding"],"summary":"Exercise frequency","description":"Exercise frequency. you can find all references values for all sports and exercises in the references section: [sport categories](#tag/Onboarding-References/paths/~1api~1pages~1exercise~1sport-categories/get), [sports and exercises](#tag/Onboarding-References/paths/api~1pages~1exercise~1sports/get)","operationId":"it-web_add-exercise-frequency-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Exercise frequency","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExerciseFrequencyRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/lifestyle/lifestylePost":{"post":{"tags":["Customer Onboarding"],"summary":"Lifestyle questions","description":"Lifestyle questions","operationId":"it-web_add-lifestyle-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Lifestyle questions","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifestyleRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/pages/desiredFocus/post":{"post":{"tags":["Customer Onboarding"],"summary":"Desired focus","description":"Desired focus","operationId":"it-web_add-desired-focus-post","security":[{"customer":["basic"]}],"requestBody":{"description":"Desired focus","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseGoal":{"type":"string","example":"Strength","enum":["Strength","Endurance","Health & wellness","Healthy aging"]}}}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/customer/v1/onboarding/status":{"get":{"tags":["Customer Onboarding"],"summary":"Get onboarding status","description":"Deprecated. Use `/it-web/onboarding/customer/v1/status` instead.","operationId":"it-web_184ffb1dea2fa380b715aa6eff3703ba","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatusSchema"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/customer/profile/woman-health":{"get":{"summary":"Get woman health","tags":["Customer Onboarding"],"description":"Deprecated. Use `/it-web/profile/customer/v1/woman-health` instead.","operationId":"it-web_e3e6c5b3bc860099a76cd1cadfa51b45","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WomanHealthResponse"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]},"patch":{"summary":"Update woman health","tags":["Customer Onboarding"],"description":"Deprecated. Use `/it-web/profile/customer/v1/woman-health` instead.","operationId":"it-web_eca9499ab1f38359b4968d69dcd7bc32","deprecated":true,"security":[{"customer":["basic"]}],"requestBody":{"description":"Woman Health","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WomanHealthRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/api/customer/profile/weight":{"put":{"summary":"Add weight","tags":["Profile"],"description":"Deprecated. Use `/it-web/profile/customer/v1/weight` instead.","operationId":"it-web_0b7497551b85262c86300b8adbdb62be","deprecated":true,"security":[{"customer":["basic"]}],"requestBody":{"description":"Weight value","required":true,"content":{"application/json":{"schema":{"properties":{"weight":{"type":"number","format":"float","example":122}},"type":"object"}}}},"responses":{"200":{"description":"OK"},"422":{"description":"Unprocessable entity"}},"x-security":["customer"]}},"/api/customer/v1/tests":{"get":{"tags":["Blood Results"],"summary":"Provides all blood results","description":"Deprecated. Use `/it-web/blood/customer/v1/tests` instead.","operationId":"it-web_cb659fc3d5b2eacb49ea51c13ac7e694","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"diyOrderInfo":{"properties":{"actions":{"type":"array","items":{"type":"string"}},"resultId":{"type":"number","format":"integer"},"innerAge":{"type":"boolean"},"orderId":{"type":"number","format":"integer"},"packageId":{"type":"number","format":"integer"},"biomarkersCount":{"type":"number","format":"integer"},"orderDate":{"type":"string","format":"date"},"packageTextAbout":{"type":"string"},"packageMarkersJson":{"type":"array","items":{"type":"string"}},"groupsWithMarkers":{"type":"array","items":{"properties":{"name":{"type":"string"},"markers":{"type":"array","items":{"type":"string"}}},"type":"object"}}},"type":"object"},"availableTests":{"$ref":"#/components/schemas/BloodResultExtendedResponse"},"previousTests":{"$ref":"#/components/schemas/BloodResultExtendedResponse"},"transferredTests":{"$ref":"#/components/schemas/TransferredTest"}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/api/public/marker-categories/{categoryAbbr}/extra-information":{"get":{"security":[],"tags":["References"],"description":"Deprecated. Use `/it-web/categories/public/v1/categories/{categoryAbbr}/extra-information` instead.","operationId":"it-web_3312b1bfd7b5c10454378c6c173d7ded","deprecated":true,"summary":"Extra information for biomarker category","parameters":[{"name":"categoryAbbr","in":"path","required":true,"schema":{"type":"string"},"example":"METABOLISM"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkerCategoriesResponse"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"404":{"description":"Category not found"},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"503":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["public"]}},"/api/public/blood/markers/{markerAbbr}/extra-information":{"get":{"security":[],"parameters":[{"name":"markerAbbr","in":"path","required":true,"schema":{"type":"string"},"example":"Glu","description":"Abbreviation of the blood marker"}],"tags":["References"],"summary":"Extra information for blood biomarker","description":"Deprecated. Use `/it-web/markers/public/v1/marker/{markerAbbr}/extra-information` instead.","operationId":"it-web_7b3782c2e8b144948c42ea90ebad5c92","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"name":{"type":"string","example":"Glucose"},"abbr":{"type":"string","example":"Glu"},"description":{"type":"string","example":"Glu is ..."},"video":{"type":"array","items":{"properties":{"previewImage":{"type":"string"},"url":{"type":"string"},"downloadUrl":{"type":"string"}},"type":"object"}},"articles":{"type":"array","items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"shortDescription":{"type":"string"},"previewImage":{"type":"string"},"author":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}},"type":"object"}},"physioRelatedTexts":{"type":"array","items":{"properties":{"physioMarkerAbbr":{"type":"string"},"description":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"404":{"description":"Marker not found"}},"x-security":["public"]}},"/api/public/references/blood-markers":{"get":{"security":[],"tags":["References"],"summary":"Blood biomarkers reference data","description":"Deprecated. Use `/it-web/references/public/v1/blood-markers` instead.","operationId":"it-web_494f223408151dedcdf8d18d9d6761c9","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1,"deprecated":true,"description":"Marker id. Deprecated. Use abbr instead where possible"},"abbr":{"type":"string","example":"Glu","description":"Abbreviation of the blood marker. Used as ID in newer apis"},"abbrForView":{"type":"string","example":"Glu","description":"Abbreviation of the blood marker for displaying customer"},"name":{"type":"string","example":"Glucose","description":"Name of the blood marker"},"isNew":{"type":"boolean","example":false,"description":"Is the marker new in system. To mark it on frontend. Deprecated. For removal in future","deprecated":true},"fullName":{"type":"string","example":"Glucose","description":"Full name of the blood marker"},"naming":{"type":"object","properties":{"inTitle":{"type":"string","example":"Glucose"},"inSentence":{"type":"string","example":"glucose"}},"description":"Naming of the blood marker. Used to display on Frontend in different situations"},"synonyms":{"type":"array","items":{"type":"string"},"example":["Fasting Plasma Glucose","Fasting Blood Sugar","Blood sugar","FPG","FBS","FBG"],"description":"Set of synonyms for the marker. Used on BRU page to help customer. Deprecated. See synonymsForList instead","deprecated":true},"unit":{"type":"string","example":"mg/dL","description":"Default unit of the blood marker"},"markerGroupTag":{"type":"string","example":"energy_metabolism","deprecated":true,"description":"Marker group tag. Groups replaced with categories. Deprecated. For removal in future"},"description":{"type":"string","example":"Glucose is one of the body's main sources of energy, and is particularly responsible for providing energy to the brain and muscles. Carbohydrates from the food you eat are broken down to glucose, causing an increase in blood glucose levels. In response to these elevated levels, the body releases insulin which ushers glucose into cells for energy."},"shortDescription":{"type":"string","example":"Blood sugar","description":"Short description of the blood marker"},"direction":{"type":"number","format":"integer","example":1,"description":"Direction of the marker. 1 - increase is bad, -1 - decrease is bad"},"precision":{"type":"number","format":"integer","example":0,"description":"Precision of the marker. Number of digits after dot"},"sortOrder":{"type":"number","format":"integer","example":1,"description":"Sort order of the marker. Used to sort markers in the list on the frontend"},"defaultDirection":{"type":"number","format":"integer","example":1},"isTableViewOnly":{"type":"boolean","example":false,"description":"Is the marker table view only. Used to show the marker on the frontend on specific page"},"minInputValue":{"type":"number","format":"integer","example":10,"description":"Minimum input value for the marker. Used to validate the input on the BRU frontend"},"maxInputValue":{"type":"number","format":"integer","example":300,"description":"Maximum input value for the marker. Used to validate the input on the BRU frontend"},"extra":{"type":"boolean","example":false,"deprecated":true},"relatedPhysioMarkerAbbrs":{"type":"array","items":{"type":"string"},"example":["RHR_M","DSD_M","TTIB_M","VO2MAX_D"],"description":"List of physio markers IDs related to the marker"},"forGender":{"type":"string","enum":["m","f","all"],"example":"all","description":"Defines if marker is gender specific or for any gender"},"nameForList":{"type":"string","deprecated":true},"synonymsForList":{"type":"array","items":{"type":"string"},"example":["Glucose (fasting, plasma, blood sugar, FBS, FPG, FBG)"],"description":"Set of synonyms for the marker. Used on BRU page to help customer to input marker name"}}}}},"type":"object"}}}}},"x-security":["public"]}},"/api/public/references/blood-marker-units":{"get":{"security":[],"tags":["References"],"summary":"Blood biomarkers units","description":"Deprecated. Use `/it-web/references/public/v1/blood-marker-units` instead.","operationId":"it-web_700b9068b36b1e32919f9fc1c1b46bfe","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"markerAbbr":{"type":"number","format":"integer","example":44},"name":{"type":"string","example":"mg/dl"},"factor":{"type":"number","format":"float","example":0.5222}},"type":"object"}}},"type":"object"}}}}},"x-security":["public"]}},"/api/public/references/contraception-types":{"get":{"security":[],"tags":["References"],"summary":"Contraception types","description":"Deprecated. Use `/it-web/references/public/v1/contraception-types` instead.","operationId":"it-web_691ec222985a6079e05d9469305bbb12","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContraceptionTypeResponse"}}}}},"x-security":["public"]}},"/api/pages/references/hormone-therapy":{"get":{"security":[],"tags":["References"],"summary":"Hormone therapy","description":"Deprecated. Use `/it-web/references/pages/v1/hormone-therapy` instead.","operationId":"it-web_41abf63b1604d95dab0e7fa644b8b3bd","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HormoneTherapyResponse"}}}}},"x-security":["public"]}},"/api/public/v1/markers/relations":{"get":{"security":[],"tags":["References"],"summary":"Markers relations","description":"Deprecated. Use `/it-web/references/public/v1/markers/relations` instead.","operationId":"it-web_836e65543c056990147fde791c9e62db","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"physioToBlood":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"relations":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"description":{"type":"string"}},"type":"object"}}},"type":"object"}},"bloodToPhysio":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"relations":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"description":{"type":"string"}},"type":"object"}}},"type":"object"}}},"type":"object"}}}}},"x-security":["public"]}},"/api/public/references/physio-marker-groups":{"get":{"security":[],"tags":["References"],"summary":"Physio marker groups","description":"Deprecated. Use `/it-web/references/public/v1/physio-marker-groups` instead.","operationId":"it-web_897b2e12bc8c79fd2e276681af68016f","deprecated":true,"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"id":{"type":"number","example":12},"abbr":{"type":"string","example":"STEPS"},"name":{"type":"string","example":"Steps"},"description":{"type":"string","example":"Steps is a..."},"isShownOnAppYouSection":{"type":"boolean","example":true},"primaryPhysioMarkerAbbr":{"type":"string","example":"STEPS_D"},"includesMarkerAbbrs":{"type":"array","items":{"type":"string","example":"STEPS_D"}}},"type":"object"}}}}},"x-security":["public"]}},"/api/pages/references/reproductive-stages":{"get":{"security":[],"tags":["References"],"description":"Deprecated. Use `/it-web/references/pages/v1/reproductive-stages` instead.","operationId":"it-web_f35e85db1958d4c3cc417e0ec8509ea6","deprecated":true,"summary":"Reproductive stages","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReproductiveStagesResponse"}}}}},"x-security":["public"]}},"/api/public/references/supplement":{"get":{"security":[],"tags":["References"],"operationId":"it-web_ec45abe85d7dd8ea0d1cc46e2ea4a5c3","summary":"Supplements reference data","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"tag":{"type":"string","example":"vitaminB12"},"title":{"type":"string","example":"Vitamin B12"},"description":{"type":"string","nullable":true,"example":"Also called Cobalamin, usually found in pill or liquid form"},"units":{"type":"string","nullable":true,"example":"mcg"},"dosage":{"type":"array","items":{"properties":{"tag":{"type":"string","example":"<500mcg"},"customerTag":{"type":"string","example":"B12_less500"},"value":{"type":"number","format":"integer","example":499}},"type":"object"}}},"type":"object"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["public"]}},"/api/pages/references/all-states":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all states","operationId":"it-web_get-all-states","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllStatesResponse"}}}}},"x-security":["public"]}},"/api/pages/references/countries":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all countries","operationId":"it-web_get-all-countires","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountriesResponse"}}}}},"x-security":["public"]}},"/api/pages/references/ethnicities":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all ethnicities","operationId":"it-web_get-all-ethnicities","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EthnicitiesResponse"}}}}},"x-security":["public"]}},"/api/pages/supplement/supplements":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all supplements for the questionnaire","operationId":"it-web_get-all-supplements-for-questionnaire","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplementsResponse"}}}}},"x-security":["public"]}},"/api/pages/supplement/dosage":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get dosage reference object","operationId":"it-web_get-dosage-reference-object","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DosageResponse"}}}}},"x-security":["public"]}},"/api/pages/exercise/sport-categories":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all sport categories","operationId":"it-web_get-all-sport-categories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SportCategoriesResponse"}}}}},"x-security":["public"]}},"/api/pages/exercise/sports":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all sports","operationId":"it-web_get-all-sports","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SportsResponse"}}}}},"x-security":["public"]}},"/api/pages/dietary/dietaryValues":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all diets","operationId":"it-web_get-diets","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DietsResponse"}}}}},"x-security":["public"]}},"/api/pages/foods/foodsReference":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get all Food references","operationId":"it-web_get-foods-reference","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoodsResponse"}}}}},"x-security":["public"]}},"/api/pages/foods/beverages":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get beverages reference","operationId":"it-web_get-beverages-reference","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeveragesReferenceResponse"}}}}},"x-security":["public"]}},"/api/pages/takeout/takeoutFrequencies":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get takeout frequencies","operationId":"it-web_get-takeout-frequencies","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoutFrequenciesResponse"}}}}},"x-security":["public"]}},"/api/pages/desiredFocus/values":{"get":{"security":[],"tags":["Onboarding References"],"summary":"Get desired focus values","operationId":"it-web_get-desired-focus-values","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesiredFocusResponse"}}}}},"x-security":["public"]}},"/inner-age/customer/v1/results":{"get":{"tags":["InnerAge"],"summary":"Get all InnerAge results","description":"Deprecated. Use `/it-web/inner-age/customer/v1/results/all` instead.","operationId":"it-web_a976380c65d53e2eebgrthrthfwefwe","deprecated":true,"security":[{"customer":["ia:r"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"results":{"type":"array","items":{"properties":{"id":{"type":"number","format":"integer","example":213042},"bloodResultId":{"type":"number","format":"integer","example":412412312},"testedAt":{"type":"string","example":"2024-07-16"},"chronologicalAge":{"type":"number","example":30.2},"biologicalAge":{"type":"number","example":29.1},"projectedBestBioAge":{"type":"number","example":25},"projectedWorstBioAge":{"type":"number","example":45},"strength":{"description":"Accuracy of calculation. More data - more strength. Value from 1 to 5.","type":"number","example":5},"markerContributions":{"type":"array","items":{"properties":{"id":{"description":"Marker abbreviation","type":"string","example":"Glu"},"value":{"description":"How many years the marker increases/reduces","type":"number","example":3.1},"isOutOfRange":{"type":"boolean","example":"true"}},"type":"object"}}},"type":"object"}}},"type":"object"}}}}},"x-security":["customer"]}},"/api/customer/v1/inner-age/markers":{"get":{"tags":["InnerAge"],"summary":"Get full InnerAge response","description":"Deprecated. Use `/it-web/inner-age/customer/v1/markers` instead.","operationId":"it-web_customer-marker-categories-for-each-result-api","deprecated":true,"security":[{"customer":["ia:r"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InnerAgeMarkersResponseType"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["customer"]}},"/inner-age/customer/v1/result/latest/recommendations":{"get":{"tags":["InnerAge"],"summary":"Get recommendations for the latest InnerAge result","description":"Deprecated. Use `/it-web/inner-age/customer/v1/recommendations` instead.","operationId":"it-web_vdsnv9hr239hf932re237yr8723y9h23","deprecated":true,"security":[{"customer":["ia:r"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"innerAgeResultId":{"type":"number","format":"integer","example":213042},"markers":{"type":"array","items":{"properties":{"id":{"type":"string","example":"Alb"},"interpretation":{"type":"string","example":"Congrats! Your albumin is higher compared to the average for men your age, decreasing your InnerAge by 1 years.<br/><br/>\\r\\nAlbumin is a marker of liver function that generally peaks at age 20, then decreases with age. People who maintain higher albumin levels into older years tend to have greater muscle mass and lower inflammation than people with lower albumin levels"},"blogLink":{"type":"string","example":"http://blog.insidetracker.com/get-a-more-restful-nights-sleep-without-changing-bedtime"},"recommendations":{"type":"array","items":{"properties":{"title":{"type":"string","example":"Continue to sleep 7-9 hours per night"},"text":{"type":"string","example":"<b>How will this change benefit my biomarkers?</b><br/>In men, sleep duration of ..."},"image":{"type":"string","example":"https://test.insidetracker.com/skin/img/recommendation_images/rules/lifestyle/Sleep_G.M_Age.65_BMI.3-4_Eth.B.jpg"},"frequency":{"description":"How many times per week need to do","type":"number","format":"integer","example":7},"blogLinks":{"type":"array","items":{"type":"string","example":["http://blog.insidetracker.com/get-a-more-restful-nights-sleep-without-changing-bedtime"]}},"references":{"type":"array","items":{"properties":{"url":{"type":"string","example":"https://pubmed.ncbi.nlm.nih.gov/25683266/"},"year":{"type":"string","example":"2015"},"title":{"type":"string","example":"Metabolic and hormonal effects of catch-up sleep in men with chronic, repetitive, lifestyle-driven sleep restriction."},"type":{"type":"string","example":"pubmed"}}}}}}}},"type":"object"}}},"type":"object"}}}}},"x-security":["customer"]}},"/api/customer/recommendations/distributed-by-marker-abbrs":{"get":{"tags":["Recommendations"],"summary":"Get recommendations distributed by marker abbreviations","description":"Deprecated. Use `/it-web/recommendations/customer/v1/distributed-by-marker-abbrs` instead.","operationId":"it-web_customer-recommendations-distributed-by-marker-abbrs","deprecated":true,"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedByMarkerAbbrResponse"},"example":{"items":{"RDW":{"LIFESTYLE":[{"type":"LIFESTYLE","title":"Daily Walking","text":"Walking for 30 minutes every day can help improve overall health.","frequencyDescription":"Daily","impactScore":8.5,"gradeScore":4.2,"basedOn":["Exercise studies","Health data"],"imageUrl":"https://example.com/images/walking.jpg","references":[{"title":"The Health Benefits of Walking","date":"2023-03-01","sourceName":"Health Journal","url":"https://example.com/articles/walking-benefits"}]}],"NUTRITION":[{"type":"NUTRITION","title":"Increase Iron Intake","text":"Consume foods rich in iron such as spinach and red meat.","basedOn":["Nutritional guidelines"]}]},"ENDURANCE":{"LIFESTYLE":[{"type":"LIFESTYLE","title":"Cardio Workouts","text":"Perform cardio workouts 3 times per week to improve endurance.","frequencyDescription":"3 times per week","impactScore":9,"gradeScore":4.5,"basedOn":["Cardio training research"]}],"NUTRITION":[{"type":"NUTRITION","title":"Hydration","text":"Drink at least 2 liters of water daily.","basedOn":["Hydration studies"]}]}}}}}}},"x-security":["customer"]}},"/api/pages/lifestyle":{"get":{"tags":["Customer Profile"],"summary":"Get lifestyle data","operationId":"it-web_get-lifestyle-data","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifestyleResponse"}}}}},"x-security":["customer"]}},"/api/pages/nutrition/diets":{"get":{"tags":["Customer Profile"],"summary":"Get diets data","operationId":"it-web_get-diets-data","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DietResponse"}}}}},"x-security":["customer"]}},"/api/pages/nutrition/foods":{"get":{"tags":["Customer Profile"],"summary":"Get foods data","operationId":"it-web_get-foods-data","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileFoodsResponse"}}}}},"x-security":["customer"]}},"/api/pages/nutrition/beverages":{"get":{"tags":["Customer Profile"],"summary":"Get beverages data","operationId":"it-web_getBeveragesData","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileBeveragesReferenceResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["customer"]}},"/api/pages/supplement/dosages":{"get":{"tags":["Customer Profile"],"summary":"Get supplements data","operationId":"it-web_get-supplements-data","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileSupplementsResponse"}}}}},"x-security":["customer"]}},"/api/pages/exercise/exercises":{"get":{"tags":["Customer Profile"],"summary":"Get exercises data","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileExercisesResponse"}}}}},"x-security":["customer"]}},"/it-web/account/customer/v1/info/full":{"get":{"tags":["Customer account"],"summary":"Account information","description":"Returns full account information including customer details, settings, address, etc.","operationId":"it-web_a976380c65d53e2eeb402cdf6429e368ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"customer":{"$ref":"#/components/schemas/CustomerAccountFullSchema"},"settings":{"$ref":"#/components/schemas/CustomerSettingsSchema"},"address":{"$ref":"#/components/schemas/CustomerAddressSchema"},"rosetta":{"type":"array","items":{"properties":{"status":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/account/customer/v1/change-email":{"patch":{"tags":["Customer account"],"summary":"Change email","description":"Change customer email","operationId":"it-web_7cd745a7d838a201994a6865517a4a32ItWeb","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerEmailChangeRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/markers/customer/v1/blood/markers-for-view":{"get":{"tags":["References"],"summary":"Available markers","description":"Available marker abbreviations for blood result view","operationId":"it-web_afe886ae615c9a54c08d3d1e5c8e16c4ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"abbrs":{"type":"array","items":{"type":"string","example":"Glu"}}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/blood/customer/v1/results":{"get":{"tags":["Blood Results"],"summary":"All blood results","description":"Returns all blood results for the customer","operationId":"it-web_36607baae8c2d791d1f65449e679fe9fItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"id":{"type":"number","format":"integer","example":23},"isEditable":{"type":"boolean","example":false},"countryCode":{"type":"string","example":"US"},"note":{"type":"string","example":null},"publishedAt":{"type":"string","example":"2023-07-27"},"testedAt":{"type":"string","example":"2023-07-27"},"testedTimeAt":{"type":"string","example":"2023-07-01T00:00:00"},"package":{"properties":{"id":{"type":"number","format":"integer","example":10},"name":{"type":"string","example":"Ultimate"}},"type":"object"},"markerValues":{"type":"array","items":{"properties":{"markerId":{"type":"number","format":"integer","example":12},"markerAbbr":{"type":"string","example":"HDL"},"calculated":{"type":"boolean","example":false},"optimizationStateAbbr":{"type":"string","example":"LOW","enum":["LOW","BORDERLINE_LOW","NEAR_NORMAL_LOW","NORMAL_LOW","OPTIMAL","NORMAL_HIGH","NEAR_NORMAL_HIGH","BORDERLINE_HIGH","HIGH","CANNOT_DETERMINE"]},"optimizationStateValue":{"type":"number","format":"integer","example":-4},"precision":{"type":"number","format":"integer","example":0},"value":{"type":"number","format":"float","example":12.4}},"type":"object"}}},"type":"object"}},"totalPages":{"type":"number","format":"integer","example":1},"totalElements":{"type":"number","format":"integer","example":12}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/blood/customer/v1/tests/{testId}/results":{"get":{"tags":["Blood Results"],"summary":"Get blood test results by test ID","description":"Returns one published, non-deleted blood result and its marker values for the authenticated customer. Deleted or unpublished results return 404. `testId` is the blood result ID, matching `id` in GET `/it-web/blood/customer/v1/results`. The response is a single object in the same format as an item in that list, without pagination fields. Visible markers with a non-null value are included, including calculated markers. Optimization states use the existing v1 values, such as `OPTIMIZED`. Customers can only retrieve their own results.","operationId":"it-web_getBloodTestResultsByTestIdItWeb","security":[{"customer":[]}],"parameters":[{"name":"testId","in":"path","description":"Blood result ID (test ID). Use the id returned by the blood results endpoint.","required":true,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":2147483647},"example":23}],"responses":{"200":{"description":"Blood result and its marker values","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodTestResultResponse"},"example":{"id":23,"testedAt":"2023-07-27","testedTimeAt":"2023-07-27T08:00:00","publishedAt":"2023-07-27","publishedTimeAt":"2023-07-27T12:00:00","isEditable":false,"countryCode":"US","markerValues":[{"markerId":12,"markerAbbr":"HDL","precision":1,"value":45.2,"calculated":false,"optimizationStateValue":0,"optimizationStateAbbr":"OPTIMIZED"}],"package":{"id":10,"name":"Ultimate"}}}}},"400":{"description":"Invalid test ID. The value must be a positive 32-bit integer (1 to 2147483647).","content":{"application/json":{"schema":{"type":"array","items":{},"maxItems":0},"example":[]}}},"401":{"description":"Authentication required. The customer JWT token is missing or invalid.","content":{"application/json":{"schema":{"type":"array","items":{},"maxItems":0},"example":[]}}},"403":{"description":"Forbidden. The blood result belongs to another customer.","content":{"application/json":{"schema":{"type":"array","items":{},"maxItems":0},"example":[]}}},"404":{"description":"The blood result does not exist, has been deleted, or is not published.","content":{"application/json":{"schema":{"type":"array","items":{},"maxItems":0},"example":[]}}}},"x-security":["customer"]}},"/it-web/blood/customer/v1/results/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The ID of the blood test result"}],"get":{"tags":["Blood Results"],"summary":"Get specific blood result","operationId":"it-web_0545886e759112b630c557aab43eecb1ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultExtendedResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not found"}},"x-security":["customer"]}},"/it-web/blood/customer/v1/ranges":{"get":{"tags":["Blood Results"],"summary":"Blood marker ranges","description":"Returns customer reference ranges for blood markers","operationId":"it-web_getBloodMarkerRangesV1ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"markerId":{"type":"number","format":"integer","deprecated":true,"description":"Numeric Marker ID. Deprecated, use markerAbbr instead","example":123},"markerAbbr":{"type":"string","example":"Glu","description":"Marker ID (Abbreviation)"},"minBorderLine":{"type":"number","format":"float","example":123.2,"description":"Low/BorderlineLow threshold"},"minNearNormal":{"type":"number","format":"float","example":133.2,"description":"BorderlineLow/NearNormalLow threshold"},"minA":{"type":"number","format":"float","example":143.2,"description":"NearNormalLow/NormalLow threshold"},"minG":{"type":"number","format":"float","example":153.2,"description":"NormalLow/OptimizedLow threshold"},"maxG":{"type":"number","format":"float","example":163.2,"description":"OptimizedHigh/NormalHigh threshold"},"maxA":{"type":"number","format":"float","example":173.2,"description":"NormalHigh/NearNormalHigh threshold"},"maxNearNormal":{"type":"number","format":"float","example":183.2,"description":"NearNormalHigh/BorderlineHigh threshold"},"maxBorderLine":{"type":"number","format":"float","example":193.2,"description":"BorderlineHigh/High threshold"}},"type":"object"}}},"type":"object"}}}},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/results-upload/customer/v1/available-markers-for-new-result":{"get":{"tags":["References"],"description":"Get available marker abbreviations for blood result upload","summary":"Get markers available for upload","operationId":"it-web_044664b7d8d2f6101e87b30c330b5ea8ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"Returns available marker abbreviations","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"type":"string","example":"Glu"}}},"type":"object"}}}},"401":{"description":"Not allowed"}},"x-security":["customer"]}},"/it-web/results-upload/customer/v1/add-result":{"post":{"tags":["Blood Results"],"summary":"Add blood result","operationId":"it-web_bf2671f7f1465296bfbd2b97384194e1ItWeb","security":[{"customer":["basic"]}],"requestBody":{"description":"Blood result upload request","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultUploadRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultUploadResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/it-web/results-upload/customer/v1/results/{resultId}/available-markers":{"parameters":[{"name":"resultId","in":"path","required":true,"schema":{"type":"string"},"description":"The ID of the blood test result"}],"get":{"tags":["Blood Results"],"description":"Get available markers' abbreviations for a specific blood result","summary":"Get available marker for a specific result","operationId":"it-web_33e22738f6fa907b1dce178d573c7c87ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"Return available marker abbreviations for the given result","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"type":"string","example":"Glu"}}},"type":"object"}}}},"401":{"description":"Not allowed"}},"x-security":["customer"]}},"/it-web/results-upload/customer/v1/results/{resultId}":{"parameters":[{"name":"resultId","in":"path","required":true,"schema":{"type":"string"},"description":"The ID of the blood test result"}],"patch":{"tags":["Blood Results"],"summary":"Update blood result with a specific ID","operationId":"it-web_4a658fa8273a43b4e079eabb4d91bee9ItWeb","security":[{"customer":["basic"]}],"parameters":[{"name":"resultId","in":"path","required":true,"schema":{"type":"number","format":"integer"},"example":42890}],"requestBody":{"description":"Existing blood result update request","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultUploadRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"403":{"description":"Result not editable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/it-web/categories/customer/v1/categories-for-each-result":{"get":{"tags":["Biomarker Categories"],"summary":"Get biomarker categories state for all results","operationId":"it-web_eee6f6535185d6d673af0e1999d6e3fbItWeb","parameters":[{"name":"forLastResults","in":"query","required":false,"schema":{"type":"number","format":"integer"},"description":"Number of last results to include in response"}],"security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoriesByResultsResponse"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["customer"]}},"/it-web/onboarding/customer/v1/status":{"get":{"tags":["Customer Onboarding"],"summary":"Get onboarding status","operationId":"it-web_184ffb1dea2fa380b715aa6eff3703baItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatusSchema"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/profile/customer/v1/woman-health":{"get":{"summary":"Get woman health","tags":["Customer Onboarding"],"operationId":"it-web_e3e6c5b3bc860099a76cd1cadfa51b45ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WomanHealthResponse"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]},"patch":{"summary":"Update woman health","tags":["Customer Onboarding"],"operationId":"it-web_eca9499ab1f38359b4968d69dcd7bc32ItWeb","security":[{"customer":["basic"]}],"requestBody":{"description":"Woman Health","required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WomanHealthRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}}},"x-security":["customer"]}},"/it-web/profile/customer/v1/weight":{"put":{"summary":"Add weight","tags":["Profile"],"operationId":"it-web_0b7497551b85262c86300b8adbdb62beItWeb","security":[{"customer":["basic"]}],"requestBody":{"description":"Weight value","required":true,"content":{"application/json":{"schema":{"properties":{"weight":{"type":"number","format":"float","example":122}},"type":"object"}}}},"responses":{"200":{"description":"OK"},"422":{"description":"Unprocessable entity"}},"x-security":["customer"]}},"/it-web/blood/customer/v1/tests":{"get":{"tags":["Blood Results"],"summary":"Provides all blood results","description":"Provides all blood results for the customer. The response contains the list of blood results, each with its own details including used and unused blood tests.\n\n> **Note:** The best practice for ENUMs is to map unknown values to `other` or `unknown`. Even though ENUMs do not change frequently and the `mbdPartner` is not planned to be updated, it's good practice to have a fallback option.","operationId":"it-web_cb659fc3d5b2eacb49ea51c13ac7e694ItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"diyOrderInfo":{"properties":{"actions":{"type":"array","items":{"type":"string"}},"resultId":{"type":"number","format":"integer"},"innerAge":{"type":"boolean"},"orderId":{"type":"number","format":"integer"},"packageId":{"type":"number","format":"integer"},"biomarkersCount":{"type":"number","format":"integer"},"orderDate":{"type":"string","format":"date"},"packageTextAbout":{"type":"string"},"packageMarkersJson":{"type":"array","items":{"type":"string"}},"groupsWithMarkers":{"type":"array","items":{"properties":{"name":{"type":"string"},"markers":{"type":"array","items":{"type":"string"}}},"type":"object"}}},"type":"object"},"availableTests":{"$ref":"#/components/schemas/BloodResultExtendedResponse"},"previousTests":{"$ref":"#/components/schemas/BloodResultExtendedResponse"},"transferredTests":{"$ref":"#/components/schemas/TransferredTest"}},"type":"object"}}}},"400":{"description":"Bad request"},"401":{"description":"Authentication required"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/it-web/categories/public/v1/categories/{categoryAbbr}/extra-information":{"get":{"security":[],"tags":["References"],"operationId":"it-web_3312b1bfd7b5c10454378c6c173d7dedItWeb","summary":"Extra information for biomarker category","parameters":[{"name":"categoryAbbr","in":"path","required":true,"schema":{"type":"string"},"example":"METABOLISM"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkerCategoriesResponse"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"404":{"description":"Category not found"},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"503":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["public"]}},"/it-web/markers/public/v1/marker/{markerAbbr}/extra-information":{"get":{"security":[],"parameters":[{"name":"markerAbbr","in":"path","required":true,"schema":{"type":"string"},"example":"Glu","description":"Abbreviation of the blood marker"}],"tags":["References"],"summary":"Extra information for blood biomarker","operationId":"it-web_7b3782c2e8b144948c42ea90ebad5c92ItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"name":{"type":"string","example":"Glucose"},"abbr":{"type":"string","example":"Glu"},"description":{"type":"string","example":"Glu is ..."},"video":{"type":"array","items":{"properties":{"previewImage":{"type":"string"},"url":{"type":"string"},"downloadUrl":{"type":"string"}},"type":"object"}},"articles":{"type":"array","items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"shortDescription":{"type":"string"},"previewImage":{"type":"string"},"author":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}},"type":"object"}},"physioRelatedTexts":{"type":"array","items":{"properties":{"physioMarkerAbbr":{"type":"string"},"description":{"type":"string"}},"type":"object"}}},"type":"object"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"404":{"description":"Marker not found"}},"x-security":["public"]}},"/it-web/references/public/v1/blood-markers":{"get":{"security":[],"tags":["References"],"summary":"Blood biomarkers reference data","operationId":"it-web_494f223408151dedcdf8d18d9d6761c9ItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1,"deprecated":true,"description":"Marker id. Deprecated. Use abbr instead where possible"},"abbr":{"type":"string","example":"Glu","description":"Abbreviation of the blood marker. Used as ID in newer apis"},"abbrForView":{"type":"string","example":"Glu","description":"Abbreviation of the blood marker for displaying customer"},"name":{"type":"string","example":"Glucose","description":"Name of the blood marker"},"isNew":{"type":"boolean","example":false,"description":"Is the marker new in system. To mark it on frontend. Deprecated. For removal in future","deprecated":true},"fullName":{"type":"string","example":"Glucose","description":"Full name of the blood marker"},"naming":{"type":"object","properties":{"inTitle":{"type":"string","example":"Glucose"},"inSentence":{"type":"string","example":"glucose"}},"description":"Naming of the blood marker. Used to display on Frontend in different situations"},"synonyms":{"type":"array","items":{"type":"string"},"example":["Fasting Plasma Glucose","Fasting Blood Sugar","Blood sugar","FPG","FBS","FBG"],"description":"Set of synonyms for the marker. Used on BRU page to help customer. Deprecated. See synonymsForList instead","deprecated":true},"unit":{"type":"string","example":"mg/dL","description":"Default unit of the blood marker"},"markerGroupTag":{"type":"string","example":"energy_metabolism","deprecated":true,"description":"Marker group tag. Groups replaced with categories. Deprecated. For removal in future"},"description":{"type":"string","example":"Glucose is one of the body's main sources of energy, and is particularly responsible for providing energy to the brain and muscles. Carbohydrates from the food you eat are broken down to glucose, causing an increase in blood glucose levels. In response to these elevated levels, the body releases insulin which ushers glucose into cells for energy."},"shortDescription":{"type":"string","example":"Blood sugar","description":"Short description of the blood marker"},"direction":{"type":"number","format":"integer","example":1,"description":"Direction of the marker. 1 - increase is bad, -1 - decrease is bad"},"precision":{"type":"number","format":"integer","example":0,"description":"Precision of the marker. Number of digits after dot"},"sortOrder":{"type":"number","format":"integer","example":1,"description":"Sort order of the marker. Used to sort markers in the list on the frontend"},"defaultDirection":{"type":"number","format":"integer","example":1},"isTableViewOnly":{"type":"boolean","example":false,"description":"Is the marker table view only. Used to show the marker on the frontend on specific page"},"minInputValue":{"type":"number","format":"integer","example":10,"description":"Minimum input value for the marker. Used to validate the input on the BRU frontend"},"maxInputValue":{"type":"number","format":"integer","example":300,"description":"Maximum input value for the marker. Used to validate the input on the BRU frontend"},"extra":{"type":"boolean","example":false,"deprecated":true},"relatedPhysioMarkerAbbrs":{"type":"array","items":{"type":"string"},"example":["RHR_M","DSD_M","TTIB_M","VO2MAX_D"],"description":"List of physio markers IDs related to the marker"},"forGender":{"type":"string","enum":["m","f","all"],"example":"all","description":"Defines if marker is gender specific or for any gender"},"nameForList":{"type":"string","deprecated":true},"synonymsForList":{"type":"array","items":{"type":"string"},"example":["Glucose (fasting, plasma, blood sugar, FBS, FPG, FBG)"],"description":"Set of synonyms for the marker. Used on BRU page to help customer to input marker name"}}}}},"type":"object"}}}}},"x-security":["public"]}},"/it-web/references/public/v1/blood-marker-units":{"get":{"security":[],"tags":["References"],"summary":"Blood biomarkers units","operationId":"it-web_700b9068b36b1e32919f9fc1c1b46bfeItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"items":{"type":"array","items":{"properties":{"markerAbbr":{"type":"number","format":"integer","example":44},"name":{"type":"string","example":"mg/dl"},"factor":{"type":"number","format":"float","example":0.5222}},"type":"object"}}},"type":"object"}}}}},"x-security":["public"]}},"/it-web/references/public/v1/contraception-types":{"get":{"security":[],"tags":["References"],"summary":"Contraception types","operationId":"it-web_691ec222985a6079e05d9469305bbb12ItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContraceptionTypeResponse"}}}}},"x-security":["public"]}},"/it-web/references/pages/v1/hormone-therapy":{"get":{"security":[],"tags":["References"],"summary":"Hormone therapy","operationId":"it-web_41abf63b1604d95dab0e7fa644b8b3bdItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HormoneTherapyResponse"}}}}},"x-security":["public"]}},"/it-web/references/public/v1/markers/relations":{"get":{"security":[],"tags":["References"],"summary":"Markers relations","description":"Returns relations between markers","operationId":"it-web_836e65543c056990147fde791c9e62dbItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"physioToBlood":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"relations":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"description":{"type":"string"}},"type":"object"}}},"type":"object"}},"bloodToPhysio":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"relations":{"type":"array","items":{"properties":{"markerAbbr":{"type":"string"},"description":{"type":"string"}},"type":"object"}}},"type":"object"}}},"type":"object"}}}}},"x-security":["public"]}},"/it-web/references/public/v1/physio-marker-groups":{"get":{"security":[],"tags":["References"],"summary":"Physio marker groups","operationId":"it-web_897b2e12bc8c79fd2e276681af68016fItWeb","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"id":{"type":"number","example":12},"abbr":{"type":"string","example":"STEPS"},"name":{"type":"string","example":"Steps"},"description":{"type":"string","example":"Steps is a..."},"isShownOnAppYouSection":{"type":"boolean","example":true},"primaryPhysioMarkerAbbr":{"type":"string","example":"STEPS_D"},"includesMarkerAbbrs":{"type":"array","items":{"type":"string","example":"STEPS_D"}}},"type":"object"}}}}},"x-security":["public"]}},"/it-web/references/pages/v1/reproductive-stages":{"get":{"security":[],"tags":["References"],"operationId":"it-web_f35e85db1958d4c3cc417e0ec8509ea6ItWeb","summary":"Reproductive stages","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReproductiveStagesResponse"}}}}},"x-security":["public"]}},"/it-web/inner-age/customer/v1/results/all":{"get":{"tags":["InnerAge"],"summary":"Get all InnerAge results","description":"Returns full list of InnerAge results related to a customer.","operationId":"it-web_a976380c65d53e2eebgrthrthfwefweItWeb","security":[{"customer":["ia:r"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"results":{"type":"array","items":{"properties":{"id":{"type":"number","format":"integer","example":213042},"bloodResultId":{"type":"number","format":"integer","example":412412312},"testedAt":{"type":"string","example":"2024-07-16"},"chronologicalAge":{"type":"number","example":30.2},"biologicalAge":{"type":"number","example":29.1},"projectedBestBioAge":{"type":"number","example":25},"projectedWorstBioAge":{"type":"number","example":45},"strength":{"description":"Accuracy of calculation. More data - more strength. Value from 1 to 5.","type":"number","example":5},"markerContributions":{"type":"array","items":{"properties":{"id":{"description":"Marker abbreviation","type":"string","example":"Glu"},"value":{"description":"How many years the marker increases/reduces","type":"number","example":3.1},"isOutOfRange":{"type":"boolean","example":"true"}},"type":"object"}}},"type":"object"}}},"type":"object"}}}}},"x-security":["customer"]}},"/it-web/inner-age/customer/v1/markers":{"get":{"tags":["InnerAge"],"summary":"Get full InnerAge response","description":"Returns full InnerAge response for the customer. The response contains the list of markers, each with its own details including marker's contribution","operationId":"it-web_customer-marker-categories-for-each-result-apiItWeb","security":[{"customer":["ia:r"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InnerAgeMarkersResponseType"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"x-security":["customer"]}},"/it-web/inner-age/customer/v1/recommendations":{"get":{"tags":["InnerAge"],"summary":"Get recommendations for the latest InnerAge result","description":"Returns recommendations for contributed markers from the latest result with InnerAge.","operationId":"it-web_vdsnv9hr239hf932re237yr8723y9h23ItWeb","security":[{"customer":["ia:r"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"innerAgeResultId":{"type":"number","format":"integer","example":213042},"markers":{"type":"array","items":{"properties":{"id":{"type":"string","example":"Alb"},"interpretation":{"type":"string","example":"Congrats! Your albumin is higher compared to the average for men your age, decreasing your InnerAge by 1 years.<br/><br/>\\r\\nAlbumin is a marker of liver function that generally peaks at age 20, then decreases with age. People who maintain higher albumin levels into older years tend to have greater muscle mass and lower inflammation than people with lower albumin levels"},"blogLink":{"type":"string","example":"http://blog.insidetracker.com/get-a-more-restful-nights-sleep-without-changing-bedtime"},"recommendations":{"type":"array","items":{"properties":{"title":{"type":"string","example":"Continue to sleep 7-9 hours per night"},"text":{"type":"string","example":"<b>How will this change benefit my biomarkers?</b><br/>In men, sleep duration of ..."},"image":{"type":"string","example":"https://test.insidetracker.com/skin/img/recommendation_images/rules/lifestyle/Sleep_G.M_Age.65_BMI.3-4_Eth.B.jpg"},"frequency":{"description":"How many times per week need to do","type":"number","format":"integer","example":7},"blogLinks":{"type":"array","items":{"type":"string","example":["http://blog.insidetracker.com/get-a-more-restful-nights-sleep-without-changing-bedtime"]}},"references":{"type":"array","items":{"properties":{"url":{"type":"string","example":"https://pubmed.ncbi.nlm.nih.gov/25683266/"},"year":{"type":"string","example":"2015"},"title":{"type":"string","example":"Metabolic and hormonal effects of catch-up sleep in men with chronic, repetitive, lifestyle-driven sleep restriction."},"type":{"type":"string","example":"pubmed"}}}}}}}},"type":"object"}}},"type":"object"}}}}},"x-security":["customer"]}},"/it-web/recommendations/customer/v1/distributed-by-marker-abbrs":{"get":{"tags":["Recommendations"],"summary":"Get recommendations distributed by marker abbreviations","operationId":"it-web_customer-recommendations-distributed-by-marker-abbrsItWeb","security":[{"customer":["basic"]}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributedByMarkerAbbrResponse"},"example":{"items":{"RDW":{"LIFESTYLE":[{"type":"LIFESTYLE","title":"Daily Walking","text":"Walking for 30 minutes every day can help improve overall health.","frequencyDescription":"Daily","impactScore":8.5,"gradeScore":4.2,"basedOn":["Exercise studies","Health data"],"imageUrl":"https://example.com/images/walking.jpg","references":[{"title":"The Health Benefits of Walking","date":"2023-03-01","sourceName":"Health Journal","url":"https://example.com/articles/walking-benefits"}]}],"NUTRITION":[{"type":"NUTRITION","title":"Increase Iron Intake","text":"Consume foods rich in iron such as spinach and red meat.","basedOn":["Nutritional guidelines"]}]},"ENDURANCE":{"LIFESTYLE":[{"type":"LIFESTYLE","title":"Cardio Workouts","text":"Perform cardio workouts 3 times per week to improve endurance.","frequencyDescription":"3 times per week","impactScore":9,"gradeScore":4.5,"basedOn":["Cardio training research"]}],"NUTRITION":[{"type":"NUTRITION","title":"Hydration","text":"Drink at least 2 liters of water daily.","basedOn":["Hydration studies"]}]}}}}}}},"x-security":["customer"]}},"/myplan/customer/v4/plan/recommendation/selection":{"put":{"tags":["Plan"],"summary":"Update selected plan recommendations","description":"Replaces current active plan currently selected \"new habits\" with new selected \"new habits\"","operationId":"plan_updateRecommendationSelection","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecommendationSelection"}}}},"required":true},"responses":{"200":{"description":"Active plan just updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v4/plan/recommendation/schedule":{"put":{"tags":["Plan"],"summary":"Setup recommendation schedule","description":"Updates active plan recommendations with provided recommendations settings","operationId":"plan_updateRecommendationSchedule","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecommendationScheduleSettings"}}}},"required":true},"responses":{"200":{"description":"Active plan just updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v4/plan/recommendation/notifications":{"put":{"tags":["Plan"],"summary":"Switch recommendation notification settings","description":"Sets enabled/disabled state for recommendation notifications","operationId":"plan_updateRecommendationNotificationSettings","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecommendationNotificationSettings"}}}},"required":true},"responses":{"200":{"description":"Active plan just updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v1/check-ins":{"get":{"tags":["Plan Check-in"],"summary":"Provide list of manual check-ins","description":"Returns a list of user manual check-ins for active plan period","operationId":"plan_getCheckins","responses":{"200":{"description":"List of plan manual checkins","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManualCheckin"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]},"put":{"tags":["Plan Check-in"],"summary":"Sets check-in for selected date and recommendation","description":"Sets check-in for selected date and recommendation","operationId":"plan_putCheckIn","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckinUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Updated list of plan manual checkins","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManualCheckin"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v1/check-ins/bucket":{"put":{"tags":["Plan Check-in"],"summary":"Set check-ins in batch mode","description":"Sets multiple check-ins for selected dates and recommendations","operationId":"plan_putCheckIns","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckinUpdateRequest"}}}},"required":true},"responses":{"200":{"description":"Updated list of plan manual checkins","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManualCheckin"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]},"delete":{"tags":["Plan Check-in"],"summary":"Unset check-ins in batch mode","description":"Removes multiple check-ins for selected dates and recommendations","operationId":"plan_deleteCheckIns","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CheckinUpdateRequest"}}}},"required":true},"responses":{"200":{"description":"Updated list of plan manual checkins","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManualCheckin"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v4/plan/submit":{"post":{"tags":["Plan"],"summary":"Submit draft plan","description":"Submits new active plan with provided plan and recommendations settings","operationId":"plan_submitNewPlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitNewPlanSetting"}}},"required":true},"responses":{"200":{"description":"Active plan just submitted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v4/plan/draft":{"post":{"tags":["Plan"],"summary":"Create draft plan","description":"Creates new plan and returns it","operationId":"plan_newPlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftPlanSettings"}}},"required":true},"responses":{"200":{"description":"Draft plan just created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Plan"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v4/plan":{"get":{"tags":["Plan"],"summary":"Get active plan details","description":"If customer has active plan (existing) returns it in optional object","operationId":"plan_getPlan","responses":{"200":{"description":"Optional object of active plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionalPlan"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v4/goals/goalSelection":{"get":{"tags":["Goals"],"summary":"Get recommended goal options for new draft plan","description":"Provides recommended goals and goals data required to create new plan","operationId":"plan_getNewPlanGoals","responses":{"200":{"description":"List of user goals for building new plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanGoalOptions"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v3/pro-tips/{proTipId}":{"get":{"tags":["ProTips"],"summary":"Returns user's ProTip by id","description":"Returns user's ProTip by its unique id","operationId":"plan_getProTip","parameters":[{"name":"proTipId","in":"path","required":true,"schema":{"type":"string","example":123},"example":123}],"responses":{"200":{"description":"User's ProTip","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProTip"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"ProTip not found"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v3/pro-tips/list":{"get":{"tags":["ProTips"],"summary":"Returns user's ProTips filtered by time period","description":"Returns user ProTip's filtered by time period.\nIf dateTime for some reason not provided returns proTips for last hour","operationId":"plan_getProTips","parameters":[{"name":"startDateTime","in":"query","description":"Start of period. UTC Local time","required":false,"schema":{"type":"string","description":"Start of period. UTC Local time","example":"2011-12-03T10:15:33"},"example":"2011-12-03T10:15:33"},{"name":"endDateTime","in":"query","description":"End of period. UTC Local time","required":false,"schema":{"type":"string","description":"End of period. UTC Local time","example":"2011-12-03T10:15:44"},"example":"2011-12-03T10:15:44"}],"responses":{"200":{"description":"List of user's ProTips","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProTip"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v3/pro-tips/latest":{"get":{"tags":["ProTips"],"summary":"Returns latest user's ProTip","description":"Returns latest user's ProTip,\nreturns optional object for case when user has no ProTips","operationId":"plan_getLatestProTip","responses":{"200":{"description":"User's ProTip optional object","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionalProTip"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v3/goals":{"get":{"tags":["Goals"],"summary":"Provides list of all active goals","description":"Provides list of all active goals","operationId":"plan_getActiveGoals","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoalDetails"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v1/check-ins/auto":{"get":{"tags":["Plan Check-in"],"summary":"Gel list of automatic check-ins","description":"Returns a list of automatic check-ins for active plan period","operationId":"plan_getAutoCheckins","responses":{"200":{"description":"List of plan Auto-Checkins","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AutoCheckin"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/myplan/customer/v1/check-ins/{checkInId}":{"delete":{"tags":["Plan Check-in"],"summary":"Remove check-in","description":"Removes check-in by its unique id","operationId":"plan_delete","parameters":[{"name":"checkInId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Updated list of plan manual checkins","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ManualCheckin"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic"]}],"x-security":["customer"]}},"/report-hub/public/v2/reports/file/{tokenId}/view":{"get":{"tags":["Report Hub"],"summary":"View report file by short living code","description":"View report file by short living token\nplease see `GET /report-hub/customer/v2/report/{reportId}/file/{format}/access-token` to create token\n\nFile will be opened directly in browser if supported\n","operationId":"report-hub_viewFile","parameters":[{"name":"tokenId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{}}},"404":{"description":"Not Found (invalid tokenIdo)","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}},"security":[],"x-security":["public"]}},"/report-hub/public/v2/reports/file/{tokenId}/download":{"get":{"tags":["Report Hub"],"summary":"Download report file by short living token","description":"Download report file by short living token\nplease see `GET /report-hub/customer/v2/report/{reportId}/file/{format}/access-token` to create token\n\nFile will be downloaded as attachment\n","operationId":"report-hub_downloadFile","parameters":[{"name":"tokenId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{}}},"404":{"description":"File not found (invalid tokenId)"}},"security":[],"x-security":["public"]}},"/report-hub/customer/v2/reports/{reportType}":{"get":{"tags":["Report Hub"],"summary":"Get reports list for specific type","description":"Returns paginated list of reports available for current user and specified type.\n\nUser should have proper access scope to list reports with specified type.\n\n* If user has 'reports:r' or 'basic' scope (legacy) - all report types are available.\n* If user has specific scope for report type - only reports with that type are available.\n\nReport types and required scopes:\n\n| Report Type | Required Scope  |\n|-------------|-----------------|\n| HHR         | reports.hhr:r   |\n| DNA         | reports.dna:r   |\n| BLOOD       | reports.blood:r |\n\nPagination and sorting is done in standard way using\n* page number (0..N), default is 0\n* page size (1..N), default is unlimited\n* sorting by field and direction (asc, desc), default is by 'dateTo,desc', allowed fields are 'dateFrom', 'dateTo', 'createdAt'\n","operationId":"report-hub_getReportsList","parameters":[{"name":"reportType","in":"path","required":true,"schema":{"type":"string","enum":["BLOOD","DNA","HHR"]}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefReportPage"}}}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"customer":["basic","reports:r","reports.hhs:r","reports.dna:r","reports.blood:r"]}],"x-security":["customer"]}},"/report-hub/customer/v2/report/{reportId}/file/{format}/access-token":{"get":{"tags":["Report Hub"],"summary":"Returns short living token to access report without authentication","description":"Generates short living token to access report file without authentication.\n\nToken is valid for 5 minutes and can be used to download report file.\n\nUser should have proper access scope to get access token for report with specified type.\n\n* If user has 'reports:r' or 'basic' scope (legacy) - all report types are available.\n* If user has specific scope for report type - only reports with that type are available.\n\nReport types and required scopes:\n\n| Report Type | Required Scope  |\n|-------------|-----------------|\n| HHR         | reports.hhr:r   |\n| DNA         | reports.dna:r   |\n| BLOOD       | reports.blood:r |\n\nTo download report file use\n`/report-hub/public/v2/reports/file/{tokenId}/download` and\n`/report-hub/public/v2/reports/file/{tokenId}/view`\nendpoints with returned token as `tokenId` in path variable.\n","operationId":"report-hub_getHashIdForDownload","parameters":[{"name":"reportId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"format","in":"path","required":true,"schema":{"type":"string","enum":["PDF","JSON","CSV","HTML"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportFileToken"}}}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"security":[{"customer":["basic","reports:r","reports.hhs:r","reports.dna:r","reports.blood:r"]}],"x-security":["customer"]}},"/wearables/public/v1/reference-data/physio-markers":{"get":{"tags":["Physio references"],"operationId":"wearables_getPublicPhysioMarkerReferences","summary":"Physio marker references","security":[],"responses":{"200":{"description":"List of physio marker references","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicPhysioMarkerReference"}}}}}},"x-security":["public"]}},"/wearables/public/v1/reference-data/activities":{"get":{"tags":["Physio references"],"operationId":"wearables_getPublicActivityReferences","summary":"Activity references","security":[],"responses":{"200":{"description":"List of activity references","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PublicActivityReference"}}}}}},"x-security":["public"]}},"/wearables/customer/v1/physio-markers":{"get":{"tags":["Physio data"],"operationId":"wearables_getCustomerPhysioMarkers","summary":"Physio marker data","description":"Lists user's physio marker values for the requested period.","security":[{"customer":["basic"]}],"parameters":[{"$ref":"#/components/parameters/StartDate"},{"$ref":"#/components/parameters/EndDate"}],"responses":{"200":{"description":"List of the user's physio marker values","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PhysioMarkerValue"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/wearables/customer/v1/activities":{"get":{"tags":["Physio data"],"operationId":"wearables_getCustomerActivities","summary":"Activity data","description":"Lists user's activity logs for the requested period.","security":[{"customer":["basic"]}],"parameters":[{"$ref":"#/components/parameters/StartDate"},{"$ref":"#/components/parameters/EndDate"}],"responses":{"200":{"description":"List of the user's activities","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityLog"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/wearables/customer/v1/sleeps":{"get":{"tags":["Physio data"],"operationId":"wearables_getCustomerSleeps","summary":"Sleep data","description":"Lists user's sleep logs for the requested period.","security":[{"customer":["basic"]}],"parameters":[{"$ref":"#/components/parameters/StartDate"},{"$ref":"#/components/parameters/EndDate"}],"responses":{"200":{"description":"List of the user's sleeps","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SleepLog"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/wearables/customer/v1/provider/direct/{providerTag}":{"post":{"tags":["Wearables connect"],"operationId":"wearables_connectUserDirectFlow","summary":"Connect user (mobile app native integrations)","description":"Connects user's fitness tracker account to the wearables service. Only APPLE_HK is supported for now.","security":[{"customer":["basic"]}],"parameters":[{"name":"providerTag","in":"path","required":true,"description":"Provider tag. Only APPLE_HK is supported for now.","schema":{"type":"string","enum":["APPLE_HK"]},"example":"APPLE_HK"}],"responses":{"200":{"description":"Provider registered connection details (includes ID to be used for subsequent data submission requests)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectDirectResponse"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/wearables/customer/v1/provider/{providerTag}":{"delete":{"tags":["Wearables connect"],"operationId":"wearables_disconnectUser","summary":"Disconnect user","description":"Disconnects user's fitness tracker account from the wearables service. Only APPLE_HK is supported for now.","security":[{"customer":["basic"]}],"parameters":[{"name":"providerTag","in":"path","required":true,"description":"Provider tag. Only APPLE_HK is supported for now.","schema":{"type":"string","enum":["APPLE_HK"]},"example":"APPLE_HK"}],"responses":{"200":{"description":"Provider account disconnected"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/wearables/customer/v1/provider":{"get":{"tags":["Wearables connect"],"operationId":"wearables_listCustomerProviders","summary":"Connected providers","description":"Lists the customer's connected wearable providers.","security":[{"customer":["basic"]}],"responses":{"200":{"description":"List of the customer's connected providers","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectedProvider"}}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/apple/v1/healthKitData":{"post":{"tags":["Apple HealthKit raw data submission"],"operationId":"wearables_submitHealthKitData","summary":"Submit Apple HealthKit data","description":"Submits Apple HealthKit data for connected customer profiles. Requests should stay under 128 kB; larger payloads may be rejected.","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleHealthKitUserDataPostRequest"}}}},"responses":{"200":{"description":"List of request acceptance by profile UUID","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppleHealthKitResponse"}}}}},"400":{"description":"No active profiles found for the request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]},"delete":{"tags":["Apple HealthKit raw data submission"],"operationId":"wearables_deleteUserData","summary":"Delete Apple HealthKit data","description":"Deletes Apple HealthKit data for connected customer profiles. Requests should stay under 128 kB; larger payloads may be rejected.","security":[{"customer":["basic"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleHealthKitUserDataDeleteRequest"}}}},"responses":{"200":{"description":"List of request acceptance by profile UUID","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AppleHealthKitResponse"}}}}},"400":{"description":"No active profiles found for the request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"x-security":["customer"]}},"/apple/v1/healthKitData/profile/{profileId}/status":{"get":{"tags":["Apple HealthKit raw data submission"],"operationId":"wearables_getProfileStatus","summary":"Check Apple HealthKit connection status","description":"Checks the Apple HealthKit connection status for the given profile UUID. A FAIL status means the connection is no longer active, either because the user disconnected it or connected another Apple device. Data for that profile is no longer accepted.","security":[{"customer":["basic"]}],"parameters":[{"name":"profileId","in":"path","required":true,"description":"Profile UUID.","schema":{"type":"string","format":"uuid"},"example":"550e8400-e29b-41d4-a716-446655440000"}],"responses":{"200":{"description":"Connection status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleHealthKitResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Connection not found"}},"x-security":["customer"]}},"/webhooks/customer-inner-age-calculated":{"post":{"tags":["Webhook Events"],"summary":"Customer inner age calculated","description":"Triggered when a customer's inner age is calculated.","operationId":"Webhook_events_customerInnerAgeCalculated","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInnerAgeCalculatedPayload"},"example":{"extId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","bloodTestId":99}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}},"/webhooks/customer-logged-in":{"post":{"tags":["Webhook Events"],"summary":"Customer logged in","description":"Triggered when a customer logs in.","operationId":"Webhook_events_customerLoggedIn","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerLoggedInPayload"},"example":{"extId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","platform":"mobile"}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}},"/webhooks/blood-result-published":{"post":{"tags":["Webhook Events"],"summary":"Blood result published","description":"Triggered when a blood result is published.","operationId":"Webhook_events_bloodResultPublished","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultPublishedPayload"},"example":{"extId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","bloodTestId":99}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}},"/webhooks/blood-result-activation-approved":{"post":{"tags":["Webhook Events"],"summary":"Blood result activation approved","description":"Triggered when a blood result activation is approved.","operationId":"Webhook_events_bloodResultActivationApproved","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultActivationApprovedPayload"},"example":{"extId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","bloodTestId":99,"mbd":{"partnerId":"partner-xyz"}}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}},"/webhooks/blood-result-activation-mbd-changed":{"post":{"tags":["Webhook Events"],"summary":"Blood result activation MBD changed","description":"Triggered when there is a change in the MBD of a blood result activation.","operationId":"Webhook_events_bloodResultActivationMbdChanged","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BloodResultActivationMbdChangedPayload"},"example":{"extId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","bloodTestId":99,"mbd":{"partnerId":"partner-xyz"}}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}},"/webhooks/report-hub-hhr-report-added":{"post":{"tags":["Webhook Events"],"summary":"Report Hub HHR report added","description":"Triggered when a new Health Habit Report (HHR) is available for the user.","operationId":"Webhook_events_reportHubHhrReportAdded","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportHubHhrReportAddedPayload"},"example":{"extId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","reportType":"HHR","reportId":"f47ac10b-58cc-4372-a567-0e02b2c3d479","dateFrom":"2025-01-01","dateTo":"2025-01-15","formats":["JSON","PDF"]}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}},"/webhooks/bru-on-validation":{"post":{"tags":["Webhook Events"],"summary":"BRU process ready for review webhook","description":"Triggered when a BRU process enters `ON_VALIDATION`. `validator` is required and identifies whether the customer or Ops must perform the review. No partner webhook is sent when OCR processing is paused by an error.","operationId":"Webhook_events_bruOnValidationWebhook","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruWebhookOnValidationPayload"},"example":{"timestamp":"2026-07-10T12:00:00Z","extId":"6fa85f64-5717-4562-b3fc-2c963f66afa6","processId":"3c6c2e47-64f3-4f89-9ff8-11520ee286aa","status":"ON_VALIDATION","autoPublishResult":true,"validationMode":"MANUAL_REVIEW","validator":"CUSTOMER"}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."},"400":{"description":"Partner endpoint rejected an invalid payload."}},"x-security":["public"]}},"/webhooks/bru-canceled":{"post":{"tags":["Webhook Events"],"summary":"BRU process canceled webhook","description":"Triggered after an authorized customer or Admin cancellation. This partner callback contains no internal tenant ID.","operationId":"Webhook_events_bruCanceledWebhook","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruWebhookCanceledPayload"},"example":{"timestamp":"2026-07-10T12:05:00Z","extId":"6fa85f64-5717-4562-b3fc-2c963f66afa6","processId":"3c6c2e47-64f3-4f89-9ff8-11520ee286aa","status":"CANCELED","autoPublishResult":true,"validationMode":"MANUAL_REVIEW","validator":"CUSTOMER","canceledBy":"admin","canceledAt":"2026-07-10T12:05:00Z"}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."},"400":{"description":"Partner endpoint rejected an invalid payload."}},"x-security":["public"]}},"/webhooks/bru-published-with-no-results":{"post":{"tags":["Webhook Events"],"summary":"BRU process published with no results webhook","description":"Triggered when automatic publication completes but creates no Blood results. This is a terminal process status and contains no `bloodResults` array or internal tenant ID.","operationId":"Webhook_events_bruPublishedWithNoResultsWebhook","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruWebhookPublishedWithNoResultsPayload"},"example":{"timestamp":"2026-04-02T12:21:00Z","extId":"6fa85f64-5717-4562-b3fc-2c963f66afa6","processId":"3c6c2e47-64f3-4f89-9ff8-11520ee286aa","status":"PUBLISHED_WITH_NO_RESULTS","autoPublishResult":true,"validationMode":"MANUAL_REVIEW"}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."},"400":{"description":"Partner endpoint rejected an invalid payload."}},"x-security":["public"]}},"/webhooks/bru-terminal":{"post":{"tags":["Webhook Events"],"summary":"BRU process completion webhook","description":"Triggered when a BRU process finishes with the `PUBLISHED` or `COMPLETE` status. This partner callback identifies the customer with UUID `extId`; it does not include an internal tenant ID.","operationId":"Webhook_events_bruTerminalWebhook","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BruWebhookTerminalPayload"},"example":{"timestamp":"2025-01-15T10:45:00Z","processId":"3fa85f64-5717-4562-b3fc-2c963f66afa6","extId":"6fa85f64-5717-4562-b3fc-2c963f66afa6","status":"PUBLISHED","autoPublishResult":true,"validationMode":"AUTO","bloodResults":[{"legacyId":99}]}}}},"responses":{"200":{"description":"Partner endpoint accepted the webhook event."}},"x-security":["public"]}}},"components":{"schemas":{"AuthorizationCodeRequest":{"allOf":[{"$ref":"#/components/schemas/AbstractTokenRequestDto"},{"type":"object","properties":{"grant_type":{"type":"string","description":"OAuth2 grant type identifier.","enum":["authorization_code"],"example":"authorization_code"},"client_id":{"type":"string","description":"Identifier of the OAuth client making the request.","example":"example-client-id"},"code":{"type":"string","description":"Authorization code previously issued by the authorization endpoint.","example":"onP42tlSOqESARfo6LnbCKRoy35qRRBJLitrVF79XiU"},"redirect_uri":{"type":"string","description":"Redirect URI that was used during the authorization request.","example":"https://example.com/oauth/redirect"},"code_verifier":{"type":"string","description":"PKCE code verifier (required if PKCE was used).","example":"dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"},"scope":{"type":"string","description":"Space-delimited requested scopes. If omitted, maximum allowed scopes are granted.","example":"basic aichat"}}}],"description":"Request for authorization code grant type.","required":["client_id","code","grant_type","redirect_uri"]},"RefreshTokenRequest":{"allOf":[{"$ref":"#/components/schemas/AbstractTokenRequestDto"},{"type":"object","properties":{"grant_type":{"type":"string","description":"OAuth2 grant type identifier.","enum":["refresh_token"],"example":"refresh_token"},"client_id":{"type":"string","description":"Identifier of the OAuth client making the request.","example":"example-client-id"},"refresh_token":{"type":"string","description":"Previously issued refresh token.","example":"uM8uULTcMBwyCYoYLG3FbshEHiwvK2riDJKcxtK0VB8"}}}],"description":"Request for refresh token grant type.","required":["client_id","grant_type","refresh_token"]},"ClientCredentialsRequest":{"allOf":[{"$ref":"#/components/schemas/AbstractTokenRequestDto"},{"type":"object","properties":{"grant_type":{"type":"string","description":"OAuth2 grant type identifier.","enum":["client_credentials"],"example":"client_credentials"},"client_id":{"type":"string","description":"Identifier of the OAuth client making the request.","example":"example-client-id"},"client_secret":{"type":"string","description":"Client secret used to authenticate the client.","example":"TNAPDGMR^d3TBLPlTqgt4IGs8vGSsEsFnTOk4VvH8Kh4_XZb3v!"},"audience":{"type":"string","description":"Audience the access token is intended for. If omitted, default audience is used.","example":"partner-api"},"scope":{"type":"string","description":"Space-delimited requested scopes. If omitted, maximum allowed scopes are granted.","example":"customer:w exchange:customer"}}}],"description":"Request for client credentials grant type.","required":["client_id","client_secret","grant_type"]},"TokenExchangeRequest":{"allOf":[{"$ref":"#/components/schemas/AbstractTokenRequestDto"},{"type":"object","properties":{"grant_type":{"type":"string","description":"OAuth2 grant type identifier.","enum":["urn:ietf:params:oauth:grant-type:token-exchange"],"example":"urn:ietf:params:oauth:grant-type:token-exchange"},"subject_token":{"type":"string","description":"Subject token to be exchanged (JWT access token).","example":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."},"subject_token_type":{"type":"string","description":"Type of the subject token.","enum":["urn:ietf:params:oauth:token-type:jwt"],"example":"urn:ietf:params:oauth:token-type:jwt"},"requested_subject":{"type":"string","description":"Requested subject identifier in format `{type}:{id}`.","example":"customer:4ce265ce-c6ac-45a5-8fec-606c1f3eff68"},"audience":{"type":"string","description":"Audience the exchanged token is intended for.","example":"customer-api"},"scope":{"type":"string","description":"Space-delimited requested scopes. If omitted, maximum allowed scopes are granted.","example":"basic aichat"}}}],"description":"Request for token exchange grant type.","required":["audience","grant_type","requested_subject","subject_token","subject_token_type"]},"TokenResponse":{"type":"object","properties":{"access_token":{"type":"string","description":"Access token for accessing target APIs, is JWT","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"},"token_type":{"type":"string","description":"Type of token, it always returns `Bearer`","example":"Bearer"},"refresh_token":{"type":"string","description":"Refresh token to get new access tokens, in case of their expiration","example":"MjM0NTY3ODkwIiwibmFtZSI6IkpvaiOiIxMjM0NTY3ODkwIiwibmFG4gRG9lIiwiaWF0Ijox"},"scope":{"type":"string","description":"Provided access scope for token (space separated)","example":"user:read plan results:read"},"expires_in":{"type":"integer","description":"Seconds the provided token will expire","format":"int32","example":86400}}},"OAuth2ErrorResponse":{"type":"object","description":"OAuth2 error response details","properties":{"error":{"type":"string","description":"Error code","example":"invalid_client"},"error_description":{"type":"string","description":"Error details","example":"Invalid client credentials"}}},"AbstractTokenRequestDto":{"discriminator":{"propertyName":"grant_type"},"properties":{"grant_type":{"type":"string"}},"required":["grant_type"]},"CreateCustomerForPartnerRequest":{"type":"object","description":"Request payload for registering a new partner customer","properties":{"address":{"$ref":"#/components/schemas/CustomerAddress"},"biologicalSex":{"type":"string","description":"Biological sex","enum":["MALE","FEMALE"],"example":"MALE"},"birthdate":{"type":"string","format":"date","description":"Customer birthdate","example":"1990-01-25"},"email":{"type":"string","format":"email","description":"Customer email address","example":"john_doe@service.com"},"ethnicity":{"type":"string","description":"Ethnicity","enum":["white","white.eastern","asian","asian.islander","black","native.indian-or-alaska","indian.south","hispanic"],"example":"asian"},"extId":{"type":"string","format":"uuid","description":"External customer identifier to associate with the new customer. If omitted, the service generates one","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c"},"firstName":{"type":"string","description":"First name","example":"John"},"heightCm":{"type":"number","format":"float","description":"Customer height in centimeters. Optional, but strongly recommended for better recommendations","example":187.33},"lastName":{"type":"string","description":"Last name","example":"Doe"},"measurementSystem":{"type":"string","description":"Preferred measurement system","enum":["METRIC","IMPERIAL"],"example":"IMPERIAL"},"phone":{"type":"string","description":"Customer phone number in `+1234567890` format","example":"+1234567890","pattern":"\\+\\d+"},"timezone":{"type":"string","description":"Customer time zone used for internal logic, calculations, and notifications. Defaults to `America/New_York` when omitted","example":"America/New_York"},"weightKg":{"type":"number","format":"float","description":"Customer weight in kilograms. Optional, but strongly recommended for better recommendations","example":76.3}},"required":["biologicalSex","birthdate","email","ethnicity","firstName","lastName","measurementSystem","phone"]},"CreateCustomerForPartnerResult":{"type":"object","properties":{"credentials":{"$ref":"#/components/schemas/CustomerTokenPair"},"email":{"type":"string","description":"Email the result is attached","example":"john_doe@service.com"},"errors":{"type":"array","description":"List of errors related to action, describes, null if `succeed`==`true`","items":{"type":"string","description":"List of errors related to action, describes, null if `succeed`==`true`"}},"extId":{"type":"string","description":"ExternalId attached to customer generated or set from request if provided","format":"uuid","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c"},"status":{"type":"string","description":"Describes customer status, null if `succeed`==`false`","enum":["ACTIVE","INACTIVE"],"example":"ACTIVE"},"succeed":{"type":"boolean","description":"Describes if customer was created or not","example":true}},"description":"Describes result of create customer action"},"CreateCustomerForPartnerRegisterResult":{"type":"object","description":"Describes the result of registering a customer","properties":{"email":{"type":"string","description":"Email address associated with this result item","example":"john_doe@service.com"},"errors":{"type":"array","description":"Business-level errors for this item. `null` when `succeed` is `true`","items":{"type":"string"},"nullable":true},"extId":{"type":"string","format":"uuid","description":"External customer identifier generated by the service or copied from the request","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c","nullable":true},"status":{"type":"string","description":"Customer status. `null` when `succeed` is `false`","enum":["ACTIVE","INACTIVE"],"example":"ACTIVE","nullable":true},"succeed":{"type":"boolean","description":"Indicates whether the customer was registered successfully","example":true}}},"CustomerAddress":{"type":"object","description":"Customer address","properties":{"address1":{"type":"string","description":"Address line 1, including street number and street name","example":"16 Milton Ave"},"address2":{"type":"string","description":"Address line 2, such as apartment or unit number. Leave empty if not applicable","example":"Apt#2"},"city":{"type":"string","description":"City","example":"Boston"},"country":{"type":"string","description":"Country abbreviation, ISO 3166-1 alpha-2 (two-letter country code)","example":"US"},"state":{"type":"string","description":"Postal state abbreviation","example":"MA"},"zip":{"type":"string","description":"Zip code","example":"02124"}},"required":["address1","address2","city","country","state","zip"]},"CustomerTokenPair":{"type":"object","properties":{"accessToken":{"type":"string","description":"Access token to access customer API endpoints. JWT, includes token expiration data in JWT body","example":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"},"refreshToken":{"type":"string","description":"Refresh token to obtain new access+refresh token pair","example":"zdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ"}},"description":"Customer Access+Refresh token pair"},"EmulateResultPublishRequest":{"type":"object","properties":{"resultSet":{"type":"string","description":"Classification of marker result values","example":"OPTIMAL","enum":["LOW","BORDERLINE_LOW","NEAR_NORMAL_LOW","NORMAL_LOW","OPTIMAL","NORMAL_HIGH","NEAR_NORMAL_HIGH","BORDERLINE_HIGH","HIGH"]},"testDate":{"type":"string","description":"Date when the test was performed, in ISO format. Optional. if not set, the current date will be used (Local UTC date)","format":"date","example":"2024-12-25"},"values":{"type":"array","description":"List of marker values you want to override. On the first step result is generated using `resultSet` value, but you may override specific markers with your own values. Keep array empty/null if you don't want to override any values. Optional. If not set, the empty array will be used.","items":{"$ref":"#/components/schemas/OverrideMarkerValue"}}},"description":"Represents an emulated result with marker values and test date"},"EnterpriseCustomerInventoryItem":{"type":"object","properties":{"sku":{"type":"string","description":"SKU of the inventory item","example":"ULTIMATE-PLAN-APOB-MARKER"},"status":{"$ref":"#/components/schemas/EnterpriseCustomerInventoryItemStatus"},"title":{"type":"string","description":"Title of the inventory item","example":"Ultimate - Blood draw in lab / No Add On"}},"description":"Information about the inventory item"},"EnterpriseCustomerInventoryItemStatus":{"type":"object","properties":{"code":{"type":"string","description":"The status code of the inventory item","example":"USED","enum":["UNUSED","USED"]}},"description":"Inventory item status"},"EnterpriseInventoryItem":{"type":"object","properties":{"available":{"type":"integer","description":"Number of available items","format":"int32","example":234},"sku":{"type":"string","description":"SKU of the item","example":"ULTIMATE-PLAN-APOB-MARKER"},"title":{"type":"string","description":"Title of the item","example":"Ultimate - Blood draw in lab / No Add On"},"total":{"type":"integer","description":"Number of total items (available + used)","format":"int32","example":357},"used":{"type":"integer","description":"Number of used items","format":"int32","example":123}},"description":"Information about the numbers of available, used, and total items of a specific kind"},"EnterpriseInventoryItemAssigmentRequest":{"required":["customerExtId","inventoryItemSku"],"type":"object","properties":{"customerExtId":{"type":"string","description":"ExternalId attached to customer","format":"uuid","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c"},"inventoryItemSku":{"maxLength":50,"minLength":0,"type":"string","description":"SKU of the item","example":"ULTIMATE-PLAN-APOB-MARKER"}},"description":"Request to assign/unassign inventory item to/from the customer"},"ExceptionDto":{"title":"Generic exception DTO for REST API","required":["code","datetime","errorId","message"],"type":"object","properties":{"code":{"title":"Exception code","type":"string"},"datetime":{"title":"Exception datetime","type":"string","format":"date-time"},"errorId":{"title":"Exception id","type":"integer","format":"int32"},"message":{"title":"Exception message","type":"string","example":"The test cannot be activated due to ..."},"payload":{"type":"object","title":"Exception payload container"}}},"OverrideMarkerValue":{"required":["id"],"type":"object","properties":{"id":{"type":"string","description":"Identifier of the marker","example":"Glu"},"value":{"type":"number","description":"Measured value of the marker","format":"float","example":85.5}},"description":"Represents a single marker absolute value"},"RenewCustomerCredentialsForPartnerRequest":{"required":["extId"],"type":"object","properties":{"extId":{"type":"string","description":"External Id of customer (UUID) new token pair to be generated","format":"uuid","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c"}},"description":"Customer data for credentials renewal"},"RenewCustomerCredentialsForPartnerResult":{"type":"object","properties":{"credentials":{"$ref":"#/components/schemas/CustomerTokenPair"},"errors":{"type":"array","description":"List of errors related to action, describes, null if `succeed`==`true`","items":{"type":"string","description":"List of errors related to action, describes, null if `succeed`==`true`"}},"extId":{"type":"string","description":"Customer ExternalId from request","format":"uuid","example":"b2d905cd-e5ff-4843-817e-cc27a916c90c"},"succeed":{"type":"boolean","description":"Describes if action is succeed or not","example":true}},"description":"Describes result of credential renewal request"},"UpdatePartnerCustomerStatusRequest":{"type":"object","description":"Request to update partner customer status","properties":{"status":{"type":"string","description":"Customer status to be set","enum":["ACTIVE","INACTIVE"],"example":"INACTIVE"}},"required":["status"]},"PromAnswerItem":{"type":"object","description":"Answer for a PROM question","properties":{"id":{"type":"string","description":"PROM question identifier","example":"PHYSICAL_HEALTH","minLength":1},"answer":{"type":"string","description":"Selected answer option identifier","example":"PH02","minLength":1}},"required":["answer","id"]},"PromAnswerOption":{"type":"object","description":"PROM answer option","properties":{"id":{"type":"string","description":"PROM answer option identifier","example":"PH01"},"text":{"type":"string","description":"PROM answer option text","example":"Excellent"}}},"PromQuestion":{"type":"object","description":"PROM question with available answer options","properties":{"id":{"type":"string","description":"PROM question identifier","example":"PHYSICAL_HEALTH"},"text":{"type":"string","description":"PROM question text","example":"How would you rate your physical health in general?"},"options":{"type":"array","description":"Answer options for the question","items":{"$ref":"#/components/schemas/PromAnswerOption"}}}},"PromQuestionnaire":{"type":"object","description":"PROM questionnaire","properties":{"questions":{"type":"array","description":"PROM questions","items":{"$ref":"#/components/schemas/PromQuestion"}}}},"PromAnswerRecord":{"type":"object","description":"PROM answers submitted for a specific date","properties":{"date":{"type":"string","format":"date","description":"Answer date","example":"2026-04-27"},"answers":{"type":"array","description":"Answers submitted for the date","items":{"$ref":"#/components/schemas/PromAnswerItem"}}}},"PartnerTagUpdateRequest":{"type":"object","description":"Partial partner tag update. At least one of `title`, `description`, or `categoryId` must be present and non-blank. A provided field may otherwise be empty unless another rule for the request causes validation to fail.","properties":{"title":{"type":"string","description":"Optional replacement title. Maximum 50 characters; if supplied, it must be unique among the partner's active tags, ignoring case.","maxLength":50},"description":{"type":"string","description":"Optional replacement description. Maximum 200 characters.","maxLength":200},"categoryId":{"type":"string","description":"Optional replacement category identifier. If supplied, it must identify an existing category."}}},"TagCategoryView":{"type":"object","description":"Tag category metadata.","properties":{"id":{"type":"string","description":"Category identifier."},"name":{"type":"string","description":"Category display name."}}},"TagPartnerView":{"type":"object","description":"Partner tag entry.","properties":{"id":{"type":"string","description":"Tag identifier."},"title":{"type":"string","description":"Tag title."},"description":{"type":"string","description":"Tag description."},"category":{"$ref":"#/components/schemas/TagCategoryView"},"partnerId":{"type":"integer","format":"int32","description":"Partner identifier that owns the tag."}}},"TagCheckInRequest":{"type":"object","description":"Customer tag check-in request.","properties":{"tagId":{"type":"string","description":"Non-blank tag identifier. The tag must be visible to the authenticated customer.","minLength":1},"checkInDate":{"type":"string","format":"date","description":"Required check-in date in `YYYY-MM-DD` form. Editable window is up to one week in the past."},"checkInValue":{"type":"boolean","description":"Check-in value: `true` or `false` stores the value; `null` deletes the existing check-in for this tag and date.","nullable":true}},"required":["checkInDate","tagId"]},"TagCreateRequest":{"type":"object","description":"Partner tag create request. All properties are required and must be non-blank (whitespace-only values are invalid).","properties":{"key":{"type":"string","description":"Required, non-blank suggested key. Maximum 50 characters. Only uppercase letters, digits, and underscores are allowed.","maxLength":50,"minLength":1,"pattern":"^[A-Z0-9_]+$"},"title":{"type":"string","description":"Required, non-blank title. Maximum 50 characters.","maxLength":50,"minLength":1},"description":{"type":"string","description":"Required, non-blank description. Maximum 200 characters.","maxLength":200,"minLength":1},"categoryId":{"type":"string","description":"Required, non-blank identifier of an existing tag category.","minLength":1}},"required":["categoryId","description","key","title"]},"BasePageDto":{"type":"object","properties":{"items":{"type":"array","description":"Page items on selected page","items":{"$ref":"#/components/schemas/TagPartnerView"}},"totalPages":{"type":"integer","format":"int32","description":"Total pages count"},"totalElements":{"type":"integer","format":"int32","description":"Total items count on selected page"}},"required":["items","totalElements","totalPages"],"title":"Page of partner tag definitions"},"TagCategoryPage":{"type":"object","title":"Page of tag categories","properties":{"items":{"type":"array","description":"Category items on the selected page.","items":{"$ref":"#/components/schemas/TagCategoryView"}},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages."},"totalElements":{"type":"integer","format":"int32","description":"Total number of categories."}},"required":["items","totalElements","totalPages"]},"TagByCategoryCustomerView":{"type":"object","description":"Tags grouped by category for journal configuration.","properties":{"categoryId":{"type":"string","description":"Category identifier."},"categoryName":{"type":"string","description":"Category display name."},"tags":{"type":"array","description":"Tags belonging to the category.","items":{"$ref":"#/components/schemas/TagCustomerView"}}}},"TagCustomerView":{"type":"object","description":"Tag entry shown to the customer.","properties":{"id":{"type":"string","description":"Tag identifier."},"title":{"type":"string","description":"Tag title."},"description":{"type":"string","description":"Tag description."},"selected":{"type":"boolean","description":"Whether the current user has selected this tag to trace in their journal."}}},"TagCheckIn":{"type":"object","description":"Customer tag check-in entry.","properties":{"tagId":{"type":"string","description":"Tag identifier."},"set":{"type":"boolean","description":"Tag check-in value."},"setAt":{"type":"string","format":"date-time","description":"Timestamp when the value was last set."}}},"TagDataCustomerResponse":{"type":"object","description":"Customer tag data grouped by date. In `data`, each property name is a UTC calendar date in `YYYY-MM-DD` format and its value is that day's check-ins.","example":{"tags":[{"id":"BASE_HIKING","title":"Hiking","description":"Tracked hiking activity.","selected":true}],"data":{"2026-08-17":[{"tagId":"BASE_HIKING","set":true,"setAt":"2026-08-17T08:30:00Z"}],"2026-08-18":[]}},"properties":{"tags":{"type":"array","description":"Tag metadata required for the UI.","items":{"$ref":"#/components/schemas/TagCustomerView"}},"data":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TagCheckIn"}},"description":"Date-keyed check-ins. Each property name is a UTC calendar date in `YYYY-MM-DD` format; dates with no check-ins have an empty array.","example":{"2026-08-17":[{"tagId":"BASE_HIKING","set":true,"setAt":"2026-08-17T08:30:00Z"}],"2026-08-18":[]}}}},"CustomerTokenRequest":{"required":["client_id","grant_type"],"type":"object","properties":{"grant_type":{"type":"string","description":"One of OAuth2 compliant grant types","example":"refresh_token","enum":["refresh_token"]},"client_id":{"type":"string","description":"Client Id, required for any grant_type","example":"D26K4DsS5QPC6NFD342VZZ63SA1BC8"},"refresh_token":{"type":"string","description":"Refresh token, required for `refresh_token` grant_type","example":"1R20E2F4RES113H4TO2K0E3N"}}},"oauthErrorResponse":{"type":"object","properties":{"error":{"type":"string","description":"OAuth2 error code","example":"invalid_client"},"error_description":{"type":"string","description":"Error details","example":"Invalid client_id or client_secret"}}},"ValidationMode":{"type":"string","description":"Validation path used by the BRU process.","enum":["AUTO","MANUAL_REVIEW"]},"BruProcessValidator":{"type":"string","nullable":true,"description":"Reviewer selected for a manual-review process. `CUSTOMER` permits the owning customer to mutate and approve during `ON_VALIDATION`; `OPS` reserves mutation and approval for Ops. The owning customer can still list, read, and download files for an `OPS` process.","enum":["CUSTOMER","OPS"]},"BruProcessStatus":{"type":"string","description":"Current BRU process state. `PUBLISHED`, `PUBLISHED_WITH_NO_RESULTS`, `COMPLETE`, and `CANCELED` are terminal statuses.","enum":["DOCUMENT_UPLOADED","PARSING_IN_PROGRESS","DOCUMENT_PARSED","ON_VALIDATION","DOCUMENT_MAPPED","PUBLISHED","PUBLISHED_WITH_NO_RESULTS","COMPLETE","CANCELED"]},"BruFileUploadRequest":{"type":"object","description":"Multipart request for uploading a single temporary BRU source file.","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"A PDF, supported image, FHIR R4 NDJSON (`.ndjson` or `.jsonl`), or HL7 v2 (`.hl7`) file. All files must be smaller than 50 MB; HL7 files must be smaller than 10 MB."}}},"BruFileUploadResponse":{"type":"object","description":"Response returned after a temporary BRU file upload.","required":["uploadedFileId"],"properties":{"uploadedFileId":{"type":"string","format":"uuid","description":"Identifier of the uploaded temporary file. Include this value in a later BRU process submission before the file expires."}}},"CreateBruProcessRequest":{"type":"object","description":"Request to create an asynchronous BRU process from previously uploaded files.","required":["uploadedFileIds"],"properties":{"uploadedFileIds":{"type":"array","minItems":1,"description":"List of temporary uploaded file identifiers to include in the process submission. All files must belong to the same processing type.","items":{"type":"string","format":"uuid"}},"externalId":{"type":"string","nullable":true,"description":"Optional caller-supplied correlation ID. A duplicate value for the customer is rejected with `409 Conflict`."},"autoPublishResult":{"type":"boolean","nullable":true,"description":"Whether results should be published automatically. Omit to use the server default."},"validator":{"type":"string","nullable":true,"enum":["CUSTOMER","OPS",null],"description":"For a manual-review process, specifies whether the customer or Ops is the intended reviewer; omit for automatic validation."}}},"BruCustomerProcess":{"type":"object","description":"Current state of an asynchronous BRU process.","required":["processId","status","validationMode","validator","hasError","autoPublishResult","externalId","createdAt","updatedAt","bloodResults"],"properties":{"processId":{"type":"string","format":"uuid","description":"Identifier of the BRU process."},"autoPublishResult":{"type":"boolean","description":"Whether successful processing is configured to publish blood results automatically."},"externalId":{"type":"string","nullable":true,"description":"Caller-supplied correlation ID, or `null` when one was not provided."},"validationMode":{"allOf":[{"$ref":"#/components/schemas/ValidationMode"}],"description":"Validation path used for the process."},"validator":{"type":"string","nullable":true,"enum":["CUSTOMER","OPS",null],"description":"Manual-review owner, or `null` for automatic validation."},"hasError":{"type":"boolean","description":"Whether OCR processing is paused because of an error."},"status":{"allOf":[{"$ref":"#/components/schemas/BruProcessStatus"}],"description":"Latest known processing status."},"bloodResults":{"type":"array","description":"Published blood result identifiers. The array contains blood results created during automatic publication. It is empty for non-published processes and can also be empty for a `PUBLISHED_WITH_NO_RESULTS` process when no parsed markers matched InsideTracker markers.","items":{"$ref":"#/components/schemas/BruBloodResult"}},"createdAt":{"type":"string","format":"date-time","description":"Time when the BRU process was created."},"updatedAt":{"type":"string","format":"date-time","description":"Time when the BRU process status was last updated."}}},"BruBloodResult":{"type":"object","description":"Published blood result reference.","required":["legacyId"],"properties":{"legacyId":{"type":"integer","format":"int32","description":"Legacy identifier of the published blood result."}}},"BruCustomerProcessList":{"type":"object","required":["items","page","size","totalItems","totalPages"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BruCustomerProcess"}},"page":{"type":"integer","minimum":0},"size":{"type":"integer","minimum":1},"totalItems":{"type":"integer","minimum":0},"totalPages":{"type":"integer","minimum":0}}},"BruReviewFile":{"type":"object","required":["id","originalFileName","mimeType","fileSizeBytes","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"originalFileName":{"type":"string"},"mimeType":{"type":"string"},"fileSizeBytes":{"type":"integer"},"createdAt":{"type":"string","format":"date-time"}}},"BruReviewEvidencePosition":{"type":"object","required":["type","page","x","y","width","height"],"properties":{"type":{"type":"string","enum":["OCR_TEXT"]},"page":{"type":"integer","minimum":1},"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}}},"BruReviewEvidence":{"type":"object","nullable":true,"required":["fileId","text","position"],"properties":{"fileId":{"type":"string","format":"uuid"},"text":{"type":"string"},"position":{"$ref":"#/components/schemas/BruReviewEvidencePosition"}}},"BruReviewParsedMarker":{"type":"object","required":["id","rawMarkerName","markerId"],"properties":{"id":{"type":"string","format":"uuid"},"rawMarkerName":{"type":"string"},"markerNameEvidence":{"$ref":"#/components/schemas/BruReviewEvidence"},"rawValue":{"type":"string","nullable":true},"valueEvidence":{"$ref":"#/components/schemas/BruReviewEvidence"},"rawUnit":{"type":"string","nullable":true},"unitEvidence":{"$ref":"#/components/schemas/BruReviewEvidence"},"markerId":{"type":"string"},"normalizedValue":{"type":"number","nullable":true},"normalizedUnit":{"type":"string","nullable":true}}},"BruReviewParsedResult":{"type":"object","required":["id","relatedFileIds","parsedMarkers"],"properties":{"id":{"type":"string","format":"uuid"},"relatedFileIds":{"type":"array","items":{"type":"string","format":"uuid"}},"dateTested":{"type":"string","format":"date","nullable":true},"rawDateTested":{"type":"string","nullable":true},"dateEvidence":{"$ref":"#/components/schemas/BruReviewEvidence"},"parsedMarkers":{"type":"array","items":{"$ref":"#/components/schemas/BruReviewParsedMarker"}}}},"BruReviewMarker":{"type":"object","required":["id","markerId","markerValue","markerUnit"],"properties":{"id":{"type":"string","format":"uuid"},"parsedMarkerId":{"type":"string","format":"uuid","nullable":true},"markerId":{"type":"string"},"markerValue":{"type":"number"},"markerUnit":{"type":"string"}}},"BruReviewAutoMarker":{"type":"object","required":["id","parsedMarkerId","markerId","markerValue","markerUnit"],"properties":{"id":{"type":"string","format":"uuid"},"parsedMarkerId":{"type":"string","format":"uuid"},"markerId":{"type":"string"},"markerValue":{"type":"number"},"markerUnit":{"type":"string"}}},"BruReviewAutoResult":{"type":"object","required":["id","parsedResultId","dateTested","markers"],"properties":{"id":{"type":"string","format":"uuid"},"parsedResultId":{"type":"string","format":"uuid"},"dateTested":{"type":"string","format":"date","nullable":true},"markers":{"type":"array","items":{"$ref":"#/components/schemas/BruReviewAutoMarker"}}}},"BruReviewResult":{"type":"object","required":["id","markers"],"properties":{"id":{"type":"string","format":"uuid"},"parsedResultId":{"type":"string","format":"uuid","nullable":true},"dateTested":{"type":"string","format":"date","nullable":true},"markers":{"type":"array","items":{"$ref":"#/components/schemas/BruReviewMarker"}}}},"BruReviewDetail":{"type":"object","required":["id","autoPublishResult","validationMode","validator","status","createdAt","updatedAt","files","parsedResults","autoMappedResults","validatedMappedResults"],"properties":{"id":{"type":"string","format":"uuid"},"autoPublishResult":{"type":"boolean"},"validationMode":{"$ref":"#/components/schemas/ValidationMode"},"validator":{"$ref":"#/components/schemas/BruProcessValidator"},"status":{"$ref":"#/components/schemas/BruProcessStatus"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"files":{"type":"array","items":{"$ref":"#/components/schemas/BruReviewFile"}},"parsedResults":{"type":"array","items":{"$ref":"#/components/schemas/BruReviewParsedResult"}},"autoMappedResults":{"type":"array","description":"Read-only AUTO mappings.","items":{"$ref":"#/components/schemas/BruReviewAutoResult"}},"validatedMappedResults":{"type":"array","description":"Current editable VALIDATED mappings.","items":{"$ref":"#/components/schemas/BruReviewResult"}}}},"ApplyBruReviewMutationsRequest":{"type":"object","required":["operations"],"properties":{"operations":{"type":"array","minItems":1,"description":"Operations are applied atomically and in list order.","items":{"oneOf":[{"$ref":"#/components/schemas/CreateBruReviewResultOperation"},{"$ref":"#/components/schemas/UpdateBruReviewResultDateOperation"},{"$ref":"#/components/schemas/DeleteBruReviewResultOperation"},{"$ref":"#/components/schemas/CreateBruReviewMarkerOperation"},{"$ref":"#/components/schemas/UpdateBruReviewMarkerOperation"},{"$ref":"#/components/schemas/DeleteBruReviewMarkerOperation"}]}}}},"BruReviewMarkerInput":{"type":"object","required":["markerId","markerValue","markerUnit"],"properties":{"markerId":{"type":"string"},"markerValue":{"type":"number"},"markerUnit":{"type":"string"}}},"CreateBruReviewResultOperation":{"type":"object","required":["type","dateTested","markers"],"properties":{"type":{"type":"string","enum":["CREATE_RESULT"]},"dateTested":{"type":"string","format":"date"},"markers":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/BruReviewMarkerInput"}}}},"UpdateBruReviewResultDateOperation":{"type":"object","required":["type","resultId","dateTested"],"properties":{"type":{"type":"string","enum":["UPDATE_RESULT_DATE"]},"resultId":{"type":"string","format":"uuid"},"dateTested":{"type":"string","format":"date"}}},"DeleteBruReviewResultOperation":{"type":"object","required":["type","resultId"],"properties":{"type":{"type":"string","enum":["DELETE_RESULT"]},"resultId":{"type":"string","format":"uuid"}}},"CreateBruReviewMarkerOperation":{"type":"object","required":["type","resultId","markerId","markerValue","markerUnit"],"properties":{"type":{"type":"string","enum":["CREATE_MARKER"]},"resultId":{"type":"string","format":"uuid"},"markerId":{"type":"string"},"markerValue":{"type":"number"},"markerUnit":{"type":"string"}}},"UpdateBruReviewMarkerOperation":{"type":"object","required":["type","resultId","resultMarkerId","markerId","markerValue","markerUnit"],"properties":{"type":{"type":"string","enum":["UPDATE_MARKER"]},"resultId":{"type":"string","format":"uuid"},"resultMarkerId":{"type":"string","format":"uuid"},"markerId":{"type":"string"},"markerValue":{"type":"number"},"markerUnit":{"type":"string"}}},"DeleteBruReviewMarkerOperation":{"type":"object","required":["type","resultId","resultMarkerId"],"properties":{"type":{"type":"string","enum":["DELETE_MARKER"]},"resultId":{"type":"string","format":"uuid"},"resultMarkerId":{"type":"string","format":"uuid"}}},"ErrorResponse":{"type":"object","description":"Error response payload.","required":["message"],"properties":{"message":{"type":"string","description":"Human-readable error message."}}},"ForbiddenErrorResponse":{"type":"object","description":"Scope authorization error response.","required":["status","statusText","message"],"properties":{"status":{"type":"integer","example":403},"statusText":{"type":"string","example":"Forbidden"},"message":{"type":"string","description":"The missing role and scope requirement."}}},"BloodTestResultResponse":{"properties":{"id":{"type":"integer","format":"int32","example":23},"isEditable":{"type":"boolean","example":false},"countryCode":{"type":"string","example":"US","nullable":true},"publishedAt":{"type":"string","example":"2023-07-27","format":"date"},"testedAt":{"type":"string","example":"2023-07-27","format":"date"},"testedTimeAt":{"type":"string","example":"2023-07-01T00:00:00","format":"date-time"},"package":{"properties":{"id":{"type":"integer","format":"int32","example":10},"name":{"type":"string","example":"Ultimate"}},"type":"object"},"markerValues":{"type":"array","items":{"properties":{"markerId":{"type":"integer","format":"int32","example":12},"markerAbbr":{"type":"string","example":"HDL"},"calculated":{"type":"boolean","example":false},"optimizationStateAbbr":{"type":"string","example":"LOW","enum":["LOW","BORDERLINE_LOW","NEAR_NORMAL_LOW","NORMAL_LOW","OPTIMIZED","NORMAL_HIGH","NEAR_NORMAL_HIGH","BORDERLINE_HIGH","HIGH","CANNOT_DETERMINE"]},"optimizationStateValue":{"type":"integer","format":"int32","example":-4},"precision":{"type":"integer","format":"int32","example":0},"value":{"type":"number","format":"float","example":12.4}},"type":"object"},"description":"Visible marker values, including calculated markers. Markers without a value are omitted."},"publishedTimeAt":{"type":"string","format":"date-time","example":"2023-07-27T12:00:00"}},"type":"object","required":["id","isEditable","countryCode","publishedAt","testedAt","testedTimeAt","package","markerValues","publishedTimeAt"]},"LifestyleRequest":{"type":"object","properties":{"sleepDuration":{"type":"number","format":"integer","description":"Sleep duration in minutes"},"smokingStatus":{"type":"boolean"},"sunExposureAmount":{"type":"string","description":"Amount of sun exposure (l20 for less than 20 minutes, m20 for more than 20 minutes)"}},"required":["sleepDuration","smokingStatus","sunExposureAmount"]},"LifestyleResponse":{"type":"object","properties":{"sleepDuration":{"type":"number","format":"integer","description":"Total sleep duration in minutes","example":360},"weightGoal":{"type":"string","nullable":true,"description":"User's weight goal: 'lose', 'gain', or 'maintain'; null if unspecified","enum":["lose","gain","maintain",null]},"smokingStatus":{"type":"string","description":"Smoking status: 'n' for No, 'y' for current smoker","enum":["n","y"]},"sunExposureAmount":{"type":"string","description":"Daily sun exposure level: 'l20' (less then 20 minutes), 'm20' (more then 20 minutes)","enum":["l20","m20"]},"rhr":{"type":"number","format":"integer","description":"Resting heart rate (RHR) in beats per minute","example":95},"bodyFatPercent":{"type":"number","description":"Body fat percentage","example":25}}},"DietResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"reference":{"$ref":"#/components/schemas/DietsResponse"},"values":{"type":"array","description":"List of selected diet names (as strings)","items":{"type":"string","example":"gluten_free"}}}}}},"ProfileFoodsResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"reference":{"$ref":"#/components/schemas/FoodsResponse"},"values":{"type":"array","description":"List of selected food frequencies per category","items":{"type":"object","properties":{"foodId":{"type":"number","format":"integer","description":"ID of the food category","example":10},"frequency":{"type":"number","format":"integer","description":"Selected frequency value for this food category","example":2}}}}}}}},"ProfileBeveragesReferenceResponse":{"type":"object","properties":{"data":{"type":"object","properties":{"reference":{"$ref":"#/components/schemas/BeveragesReferenceResponse"},"values":{"type":"array","description":"List of selected beverage frequencies per category","items":{"type":"object","properties":{"foodId":{"type":"number","format":"integer","description":"ID of the beverage category","example":10},"frequency":{"type":"number","format":"integer","description":"Selected frequency value for this beverage category","example":2}}}}}}}},"ProfileSupplementsResponse":{"type":"object","properties":{"willingToTake":{"type":"string"},"currentlyTakes":{"type":"boolean"},"nsfOnly":{"type":"boolean"},"tryingToLoseWeight":{"type":"boolean"},"dosage":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","example":"vitaminC"},"dosage":{"type":"string","nullable":true,"example":"VitC_500to1000"}}}}}},"ProfileExercisesResponse":{"type":"object","properties":{"values":{"type":"array","items":{"type":"object","properties":{"sport_id":{"type":"number","format":"integer"},"values":{"type":"object","properties":{"csd_time_session":{"type":"number","format":"integer"},"csd_times_week":{"type":"number","format":"integer"},"csd_pace":{"type":"number","format":"integer"}}}}}}}},"ExerciseFrequencyRequest":{"type":"object","properties":{"values":{"type":"array","items":{"type":"object","properties":{"sport_id":{"type":"number","format":"integer"},"values":{"type":"object","properties":{"csd_time_session":{"type":"string"},"csd_times_week":{"type":"string"},"csd_pace":{"type":"string"},"csd_distance_session":{"type":"string"},"session_week":{"type":"string"},"minutes_session":{"type":"string"}},"required":["csd_time_session","csd_times_week","csd_pace","csd_distance_session","session_week","minutes_session"]}},"required":["sport_id","values"]}}},"required":["values"]},"SupplementsDosageRequest":{"type":"object","properties":{"supplements":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dosage":{"type":"string","nullable":true}},"required":["name","dosage"]}}},"required":["supplements"]},"CommonSupplementsRequest":{"type":"object","properties":{"willingToTake":{"type":"string","enum":["yes","no"]},"currentlyTakes":{"type":"boolean"},"nsfOnly":{"type":"boolean"},"tryingToLoseWeight":{"type":"boolean"},"usedGPLOneAgonist":{"type":"boolean"}},"required":["willingToTake","currentlyTakes","nsfOnly"]},"TakeoutFrequencyRequest":{"type":"object","properties":{"takeoutFrequency":{"type":"number","format":"integer","enum":[0,1,2,3],"example":0}}},"FoodFrequencyRequest":{"type":"object","properties":{"frequencies":{"type":"array","items":{"type":"object","properties":{"foodId":{"type":"number","format":"integer","example":1},"frequency":{"type":"number","format":"integer","example":1}}},"description":"Find all possible options for foods here -  [/api/pages/dietary/foodsReference/get](#tag/Onboarding-References/paths/api~1pages~1foods~1foodsReference/get) and for beverages here - [/api/pages/foods/beverages](#tag/Onboarding-References/paths/~1api~1pages~1foods~1beverages/get)"}}},"DietaryRestrictionsRequest":{"type":"object","properties":{"constraints":{"type":"array","items":{"type":"string","example":"gluten_free"},"description":"Find all possible options [/api/pages/dietary/dietaryValues/get](#tag/Onboarding-References/paths/~1api~1pages~1dietary~1dietaryValues/get) "}}},"PhysioMarkersRequest":{"type":"object","properties":{"bodyFatPercent":{"type":"number","example":25.5,"description":"Body fat percentage."},"waist":{"type":"number","example":92,"description":"Waist circumference in inches"},"hip":{"type":"number","example":68,"description":"Hip circumference in inches"},"weight":{"type":"number","example":130,"description":"Weight in pounds"},"height1":{"type":"number","example":6,"description":"Height in feet"},"height2":{"type":"number","example":2,"description":"Height in inches"},"rhr":{"type":"number","example":75,"description":"Resting heart rate"}},"required":["bodyFatPercent","waist","hip","weight","height1","height2","rhr"]},"DesiredFocus":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1},"title":{"type":"string","example":"Endurance"},"description":{"type":"string","example":"Whether you're a distance runner or triathlete, hiker or rower, cyclist or swimmer, you're focused on endurance. Learn how to hit that next PR, the best way to recover and, of course, how to go faster, longer."}}},"DesiredFocusResponse":{"type":"array","items":{"$ref":"#/components/schemas/DesiredFocus"}},"TakeoutFrequency":{"type":"object","properties":{"desktop":{"type":"string","example":"Never"},"mobile":{"type":"string","example":"never"}}},"TakeoutFrequenciesResponse":{"type":"array","items":{"$ref":"#/components/schemas/TakeoutFrequency"}},"Beverage":{"type":"object","properties":{"title":{"type":"string","example":"Soda (inc. diet)"},"class":{"type":"string","example":"soda"},"id":{"type":"number","format":"integer","example":15},"freqOptions":{"type":"array","items":{"$ref":"#/components/schemas/FreqOption"}}}},"BeveragesReferenceResponse":{"type":"object","properties":{"beverages":{"type":"array","items":{"$ref":"#/components/schemas/Beverage"}}}},"FreqOption":{"type":"object","properties":{"name":{"type":"string","example":"Never"},"value":{"type":"number","format":"integer","example":0}}},"Food":{"type":"object","properties":{"title":{"type":"string","example":"Fruits"},"class":{"type":"string","example":"fruits"},"id":{"type":"number","format":"integer","example":9},"freqOptions":{"type":"array","items":{"$ref":"#/components/schemas/FreqOption"}}}},"FoodsResponse":{"type":"object","properties":{"foods":{"type":"array","items":{"$ref":"#/components/schemas/Food"}},"restricted":{"type":"array","items":{"type":"object"}}}},"Diet":{"type":"object","properties":{"title":{"type":"string","example":"Gluten Free"},"tooltip":{"type":"string","example":"You do not eat products that contain gluten, a protein found in grains such as wheat, barley, and rye"}}},"DietsResponse":{"type":"object","properties":{"gluten_free":{"$ref":"#/components/schemas/Diet"},"ketogenic":{"$ref":"#/components/schemas/Diet"},"mediterranean_diet":{"$ref":"#/components/schemas/Diet"},"paleo":{"$ref":"#/components/schemas/Diet"},"vegan":{"$ref":"#/components/schemas/Diet"},"vegetarian":{"$ref":"#/components/schemas/Diet"}}},"Sport":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1},"name":{"type":"string","example":"Running"},"icon":{"type":"string","example":"/skin/img/questionnaire/sports/running.jpg"},"step":{"type":"string","example":"running"},"exercise":{"type":"number","format":"integer","example":1},"referenceId":{"type":"number","format":"integer","example":21},"description":{"type":"string","nullable":true,"example":null}}},"SportsResponse":{"type":"object","properties":{"sports":{"type":"array","items":{"$ref":"#/components/schemas/Sport"}}}},"SportCategory":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1},"name":{"type":"string","example":"Endurance Training"},"icon":{"type":"string","example":"/skin/img/questionnaire/endurance.png"},"step":{"type":"string","example":"endurance-training"},"sort":{"type":"number","format":"integer","example":2},"description":{"type":"string","example":""}}},"SportCategoriesResponse":{"type":"object","properties":{"categories":{"type":"array","items":{"$ref":"#/components/schemas/SportCategory"}}}},"DosageResponse":{"type":"object","properties":{"willingToTake":{"type":"string","enum":["most","none"]},"currentlyTakes":{"type":"string"},"nfsOnly":{"type":"string"},"dosage":{"type":"array"}}},"Dosage":{"type":"object","properties":{"name":{"type":"string","example":"ALA_less300"},"title":{"type":"string","example":"<300mg"}}},"Supplement":{"type":"object","properties":{"name":{"type":"string","example":"alphaLipoicAcid"},"title":{"type":"string","example":"Alpha-Lipoic Acid"},"titleShort":{"type":"string","nullable":true,"example":null},"description":{"type":"string","example":"Antioxidant produced in small amounts in the body"},"dosages":{"type":"array","items":{"$ref":"#/components/schemas/Dosage"}},"includeInShort":{"type":"boolean","example":false}}},"SupplementsResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Supplement"}}}},"Ethnicity":{"type":"object","properties":{"name":{"type":"string","example":"American Indian or Alaska Native"},"value":{"type":"string","example":"native.indian-or-alaska"}}},"EthnicitiesResponse":{"type":"object","properties":{"ethnicities":{"type":"array","items":{"$ref":"#/components/schemas/Ethnicity"}}}},"Country":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1},"code":{"type":"string","example":"AD"},"name":{"type":"string","example":"Andorra"},"phoneCode":{"type":"string","example":"376"},"hasZipCode":{"type":"boolean","example":true}}},"CountriesResponse":{"type":"object","properties":{"countries":{"type":"array","items":{"$ref":"#/components/schemas/Country"}}}},"State":{"type":"object","properties":{"id":{"type":"number","format":"integer","example":1},"abbr":{"type":"string","example":"AL"},"name":{"type":"string","example":"Alabama"},"countryAbbr":{"type":"string","example":"US"},"mbdAvailable":{"type":"boolean","example":true},"pscAvailable":{"type":"boolean","example":true}}},"AllStatesResponse":{"type":"object","properties":{"states":{"type":"array","items":{"$ref":"#/components/schemas/State"}}}},"BloodResultUploadRequest":{"properties":{"testDate":{"type":"string","format":"date","example":"2023-01-01"},"markerValues":{"type":"array","items":{"$ref":"#/components/schemas/MarkerValue"}},"countryCode":{"type":"string","example":"US"}},"type":"object"},"MarkerValue":{"properties":{"markerId":{"type":"number","format":"integer","example":17},"value":{"type":"number","format":"float","example":233.22}},"type":"object"},"CustomerEmailChangeRequest":{"properties":{"newEmail":{"type":"string","format":"email","example":"john.doe@company.com"},"newEmailConfirm":{"type":"string","format":"email","example":"john.doe@company.com"}},"type":"object"},"CustomerNamesUpdateRequest":{"required":["firstName","lastName","middleName"],"properties":{"firstName":{"type":"string","example":"John"},"lastName":{"type":"string","example":"Doe"},"middleName":{"type":"string","example":"Michael"}},"type":"object"},"CustomerBirthDateRequest":{"required":["birthdate"],"properties":{"birthdate":{"type":"string","format":"date","example":"1990-07-28"}},"type":"object"},"CustomerGenderRequest":{"required":["gender"],"properties":{"gender":{"type":"string","enum":["m","f"]}}},"CustomerAddressRequest":{"required":["countryAbbr","city","street","zipCode"],"properties":{"countryAbbr":{"type":"string","example":"US"},"stateAbbr":{"type":"string","example":"NY"},"city":{"type":"string","example":"New York"},"street":{"type":"string","example":"5 Wall Street"},"apartment":{"type":"string","example":"10C"},"zipCode":{"type":"string","example":"10005"}},"type":"object"},"WomanHealthRequest":{"properties":{"pregnancyDueDate":{"type":"string","example":"2023-01-01"},"shareDate":{"type":"boolean","example":false},"isPregnant":{"type":"boolean","example":true},"isBreastfeeding":{"type":"boolean","example":false},"isTakingHormonalContraceptives":{"type":"boolean","example":false},"reproductiveState":{"type":"string","example":"premenopause irregular"},"contraceptionType":{"type":"string","example":"pill"},"hormoneTherapy":{"type":"string","example":"estrogen"},"cycleDuration":{"type":"number","example":28},"lastMenstrualPeriodDate":{"type":"string","example":"2023-12-23"}},"type":"object"},"CustomerAddressSchema":{"properties":{"countryId":{"type":"number","format":"integer"},"countryAbbr":{"type":"string"},"stateAbbr":{"type":"string"},"city":{"type":"string"},"street":{"type":"string"},"apartment":{"type":"string"},"zipCode":{"type":"string"}},"type":"object"},"HomeTestAddressSchema":{"properties":{"country":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"address":{"type":"string"},"addressLine2":{"type":"string"},"zip":{"type":"string"},"phoneNumber":{"type":"string"}},"type":"object"},"BloodResultAddonResponse":{"properties":{"tag":{"type":"string"},"name":{"type":"string"}},"type":"object"},"BloodResultExtendedResponse":{"properties":{"id":{"type":"number","format":"integer"},"testedAt":{"type":"string","format":"date"},"planName":{"type":"string"},"planDescription":{"type":"string"},"hasMbd":{"type":"boolean"},"hasInnerAge":{"type":"boolean"},"purchasedDate":{"type":"string","format":"date"},"isActivated":{"type":"boolean"},"isActivatingDisabled":{"type":"boolean"},"activatedDate":{"type":"string","format":"date"},"isPublished":{"type":"boolean"},"hasHomeKit":{"type":"boolean"},"isLabSlipApproved":{"type":"boolean"},"labSlipUrl":{"type":"string"},"stateIdForTesting":{"type":"number","format":"integer"},"stateAbbrForTesting":{"type":"string"},"markers":{"properties":{"name":{"type":"string"}},"type":"object"},"groupsWithMarkers":{"type":"array","items":{"properties":{"name":{"type":"string"},"markers":{"type":"array","items":{"type":"string"}}},"type":"object"}},"testedDate":{"type":"string","format":"date"},"testedBiomarkersCount":{"type":"number","format":"integer"},"mbdCanActivate":{"type":"boolean"},"mbdConfirmedDate":{"type":"string","format":"date"},"mbdPartner":{"type":"string","description":"Mobile Blood Draw partner. Possible values: ExamOne, Scarlet, DynaCare, PhlebFinders, GetLabs, not_selected.","enum":["ExamOne","Scarlet","DynaCare","PhlebFinders","GetLabs","not_selected"]},"mbdAddress":{"type":"object","oneOf":[{"$ref":"#/components/schemas/HomeTestAddressSchema"}],"nullable":true},"isDiy":{"type":"boolean"},"isRescheduleAvailable":{"type":"boolean"},"shouldPreventActivationWithoutMbd":{"type":"boolean"},"upgradableWithMbd":{"type":"boolean"},"upgradableWithInnerAge":{"type":"boolean"},"notifyAboutPregnancy":{"type":"boolean"},"isTransferable":{"type":"boolean"},"countryIdForTesting":{"type":"number","format":"integer","nullable":true},"datePlanned":{"type":"string","format":"date","nullable":true},"expiredAt":{"type":"string","format":"date","nullable":true},"transferredFrom":{"properties":{"transferredAt":{"type":"string","format":"date"},"from":{"properties":{"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"id":{"type":"number","format":"integer"}},"type":"object"}},"type":"object","nullable":true},"lastPurchasedAddonMarkerAbbrs":{"type":"array","items":{"properties":{"abbr":{"type":"string"},"name":{"type":"string"}},"type":"object"}},"availableAddons":{"type":"array","items":{"$ref":"#/components/schemas/BloodResultAddonResponse"}},"includedAddons":{"type":"array","items":{"$ref":"#/components/schemas/BloodResultAddonResponse"}}},"type":"object"},"BloodResultUploadResponse":{"properties":{"message":{"type":"string","example":"Result added to user"},"resultId":{"type":"number","format":"integer","example":31232},"isLatestResult":{"type":"boolean","example":true},"isSuitableForRosetta":{"type":"boolean","example":false}},"type":"object"},"TransferredTest":{"properties":{"packageName":{"type":"string"},"purchasedAt":{"type":"string","format":"date"},"transferredAt":{"type":"string","format":"date"},"transferredTo":{"properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"}},"type":"object"},"stateIdForTesting":{"type":"number","format":"integer"},"stateAbbrForTesting":{"type":"number","format":"integer"},"countryIdForTesting":{"type":"number","format":"integer"},"hasMbd":{"type":"boolean"},"hasInnerAge":{"type":"boolean"},"groupsWithMarkers":{"type":"array","items":{"properties":{"name":{"type":"string"},"markers":{"type":"array","items":{"type":"string"}}},"type":"object"}},"includedAddons":{"type":"array","items":{"properties":{"tag":{"type":"string"},"name":{"type":"string"}},"type":"object"}}},"type":"object"},"CategoriesByResultsResponse":{"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ResultCategoriesItem"}}},"type":"object"},"ResultCategoriesItem":{"properties":{"resultId":{"type":"number","example":19735},"testedAt":{"description":"A datetime property in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)","type":"string","format":"date-time","example":"2023-04-18T00:00:00-04:00"},"categoryScores":{"type":"array","items":{"$ref":"#/components/schemas/CategoryScoresItem"}}},"type":"object"},"CategoryScoresItem":{"properties":{"abbr":{"type":"string","example":"HORMONE_BALANCE"},"score":{"type":"number","example":51},"state":{"type":"string","enum":["CANNOT_DETERMINE","NEEDS_WORK","FAIR","GOOD","OPTIMAL"]},"contributions":{"type":"array","items":{"$ref":"#/components/schemas/CategoryContributionsItem"}}},"type":"object"},"CategoryContributionsItem":{"properties":{"markerType":{"type":"string","example":"blood","enum":["blood","physio"],"description":"Describes type of marker Physio or Blood"},"markerAbbr":{"type":"string","example":"hsCRP","description":"Marker Abbr (ID)"},"tested":{"type":"boolean","example":true,"description":"Marker was tested or not for specific result"},"required":{"type":"boolean","example":"false","description":"If marker required for category score calculation"},"expired":{"type":"boolean","example":false},"isOwn":{"type":"boolean","example":true},"score":{"type":"number","example":2.1,"nullable":true},"used":{"type":"boolean","deprecated":true,"description":"Equivalent to `tested && !expired`. Deprecated"},"optimizationStateValue":{"type":"number","example":4,"deprecated":true,"nullable":true,"description":"Numeric equivalent of optimizationState. values from -4 (LOW) ... 0 (OPTIMIZED) ... 4 HIGH and 7 (CANNOT_DETERMINE). Deprecated"},"optimizationState":{"type":"string","enum":["LOW","BORDERLINE_LOW","NEAR_NORMAL_LOW","NORMAL_LOW","OPTIMIZED","NORMAL_HIGH","BORDERLINE_HIGH","NEAR_NORMAL_HIGH","HIGH","CANNOT_DETERMINE"],"example":"LOW","nullable":true,"description":"Optimization state based on the marker absolute value + ranges. null if tested==false"},"absoluteWeight":{"type":"number","example":20,"description":"Contribution weight to the category score"},"relatedWeight":{"type":"number","example":7.321,"description":"Contribution weight to the category score relative to all contributions. Values 0-100"},"value":{"type":"number","example":2.1,"nullable":true,"description":"Absolute marker value. null if tested==false"},"isDataOld":{"type":"boolean","example":false,"description":"Is the data old (current logic is mote than 6 months old)"}},"type":"object"},"MarkerCategoriesResponse":{"properties":{"name":{"type":"string","example":"Recovery"},"description":{"type":"string","example":"Get to know Recovery"},"video":{"type":"array","items":{"properties":{"previewImage":{"type":"string","example":"https://qa.segterra.com/skin/img/blood/markers/vieo_previews/prev0212qwqw.jpg"},"videoUrl":{"type":"string","example":"https://youtube.com/qqqqqq"},"hubspotVideoUrl":{"type":"string","example":"https://info.insidetracker.com/hubfs/video.mp4"}},"type":"object"}},"articles":{"type":"array","items":{"$ref":"#/components/schemas/ArticleResponse"}}},"type":"object"},"CustomerAccountFullSchema":{"properties":{"id":{"type":"number","format":"integer","example":12201},"guid":{"type":"string","example":"0df00e33edcfc5a7fecb4582c16f1e37c8f04349ce342c9930191ef396d0ab58"},"email":{"type":"string","example":"john.doe@domain.com"},"firstName":{"type":"string","example":"John"},"middleName":{"type":"string","example":"Matthew"},"lastName":{"type":"string","example":"Doe"},"phone":{"type":"string","example":"666888999"},"phoneCode":{"type":"string","example":"123"},"activationState":{"type":"string","example":"onboarding"},"isDnaOnly":{"type":"boolean"},"hasUnusedTest":{"type":"boolean"},"hasUsedTest":{"type":"boolean"},"permissions":{"type":"array","items":{},"example":["bloodwork","summary","nutrition","food","age"]},"photoSrc":{"type":"string","example":"DH738hjsk3.jpg"},"hasDiyPackage":{"type":"boolean"},"canAddInnerAge":{"type":"boolean"},"hasWellMapPackage":{"type":"boolean"},"isInvolvedBlue365":{"type":"boolean"},"isLocked":{"type":"boolean"},"questionnaireCompleted":{"type":"boolean"},"hasHelixCustomer":{"type":"boolean"},"hasDnaAnalysis":{"type":"boolean"},"hasDnaKit":{"type":"boolean"},"hasDownloadedDIYResults":{"type":"boolean"},"hasDnaResult":{"type":"boolean"},"dnaResultDate":{"type":"string"},"hasDnaAnalysisOnly":{"type":"boolean"},"allowedToSeeInnerAge":{"type":"boolean"},"hasDiyOrderWithInnerAge":{"type":"boolean"},"hasAccessToBru":{"type":"boolean"},"dnaResearchConsentConfirmed":{"type":"boolean"}},"type":"object"},"CustomerSettingsSchema":{"properties":{"isMetricCountSystem":{"type":"boolean"},"heightFeet":{"type":"number","format":"integer","example":5},"heightInches":{"type":"number","format":"integer","example":10},"waist":{"type":"number","format":"integer","example":80},"hip":{"type":"number","format":"integer","example":90},"weight":{"type":"number","format":"integer","example":176},"ethnicity":{"type":"string","example":"white"},"gender":{"type":"string","example":"m"},"birthday":{"type":"string","format":"date","example":"1980-12-28"},"showWomanHealthSection":{"type":"boolean"},"menopausalState":{"type":"string","enum":["premenopause","menopause transition","premenopause irregular","postmenopause"],"nullable":true},"pregnancyDueDate":{"type":"string","format":"date"},"isPregnant":{"type":"boolean"},"isBreastfeeding":{"type":"boolean"},"isTakingHormonalContraceptives":{"type":"boolean"}},"type":"object"},"MessageResponse":{"properties":{"message":{"type":"string","example":"Something went wrong"}},"type":"object"},"ValidationErrorResponse":{"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorItem"}}},"type":"object"},"ValidationErrorItem":{"properties":{"field":{"type":"string","example":"firstName"},"message":{"type":"string","example":"Invalid first name"}},"type":"object"},"OnboardingStatusSchema":{"properties":{"status":{"type":"string"},"subStatus":{"type":"string"},"questionnaireCompleted":{"type":"boolean"},"lastQuestionnaireStep":{"type":"string"}},"type":"object"},"WomanHealthResponse":{"properties":{"pregnancyDueDate":{"type":"string"},"shareData":{"type":"boolean"},"reproductiveState":{"type":"string"},"contraceptionType":{"type":"string"},"isPregnant":{"type":"boolean"},"isBreastfeeding":{"type":"boolean"},"isTakingHormonalContraceptives":{"type":"boolean"},"hormoneTherapy":{"type":"string"},"cycleDuration":{"type":"number","format":"integer"},"lastMenstrualPeriodDate":{"type":"string"}},"type":"object"},"ContraceptionTypeResponse":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"type":"object"},"HormoneTherapyResponse":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"type":"object"},"ReproductiveStagesResponse":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"type":"object"},"ArticleResponse":{"properties":{"id":{"type":"number","example":"12123213"},"name":{"type":"string","example":"Test article"},"type":{"type":"string","enum":["ARTICLE","PODCAST"]},"shortDescription":{"type":"string","example":"This is a test article"},"previewImage":{"type":"string","example":"http://hubspot/wqdqwdqwd.jpg"},"author":{"type":"string","example":"Test Tester"},"url":{"type":"string","example":"https://blog.insidetracker.com/articles/test-article"},"createdAt":{"description":"A datetime property in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ)","type":"string","format":"date-time","example":"2023-04-18T00:00:00-04:00"}},"type":"object"},"DistributedByMarkerAbbrResponse":{"type":"object","properties":{"items":{"type":"object","additionalProperties":{"type":"object","properties":{"LIFESTYLE":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"frequencyDescription":{"type":"string"},"impactScore":{"type":"number"},"gradeScore":{"type":"number"},"basedOn":{"type":"array","items":{"type":"string"}},"imageUrl":{"type":"string","nullable":true},"references":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"date":{"type":"string"},"sourceName":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["title","url"]}}},"required":["type","text","basedOn"]}},"NUTRITION":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"}},"required":["type","text"]}}}}}},"required":["items"]},"InnerAgeMarkersResponseType":{"type":"object","properties":{"countOfWorsenMarkers":{"type":"integer","example":23},"countOfImproveMarkers":{"type":"integer","example":2},"markers":{"type":"array","items":{"$ref":"#/components/schemas/InnerAgeMarkersMarkerItemType"}},"missingMarkers":{"type":"array","items":{"$ref":"#/components/schemas/InnerAgeMarkersMissingMarkerItemType"}},"missingMarkersCount":{"type":"integer","example":7},"markersCount":{"type":"integer","example":44},"ageMin":{"type":"integer","example":18},"ageMax":{"type":"integer","example":35}}},"InnerAgeMarkersMarkerItemType":{"type":"object","properties":{"id":{"type":"integer","example":23},"abbr":{"type":"string","example":"Glu"},"name":{"type":"string","example":"Glucose"},"shortDesc":{"type":"string","example":"Glucose is ..."},"unit":{"type":"string","example":"mg/dl"},"value":{"type":"number","format":"double","example":12.4},"precision":{"type":"integer","example":1},"valueContrib":{"type":"number","format":"double","example":4},"origValueContrib":{"type":"number","format":"double","example":12.4},"valueContribType":{"type":"integer","example":12},"percentOfAge":{"type":"number","format":"double","example":12.4},"markerGraphStatus":{"type":"string","example":"12.4"},"outZone":{"type":"boolean","example":false},"thresholdValue":{"type":"number","format":"float","example":42.1},"averageRangeValues":{"type":"array","items":{"$ref":"#/components/schemas/InnerAgeMarkersAverageRangeItemType"}},"advisorInnerage":{"type":"array","items":{"$ref":"#/components/schemas/InnerAgeMarkersAdvisorInnerageItemType"}},"advisorRecommendations":{"type":"array","items":{"$ref":"#/components/schemas/InnerAgeMarkersAdvisorRecommendationItemType"}}}},"InnerAgeMarkersAverageRangeItemType":{"type":"object","properties":{"min":{"type":"number","format":"double","example":3.2},"availableMin":{"type":"number","format":"double","example":3.2},"max":{"type":"number","format":"double","example":3.2},"availableMax":{"type":"number","format":"double","example":3.2},"decrease":{"type":"boolean","example":true}}},"InnerAgeMarkersAdvisorInnerageItemType":{"type":"object","properties":{"text":{"type":"string","example":"Title"},"blogLink":{"type":"integer","example":3}}},"InnerAgeMarkersAdvisorRecommendationItemType":{"type":"object","properties":{"title":{"type":"string","example":"Title"},"frequency":{"type":"integer","example":3},"image":{"type":"string","example":".../image.jpg"}}},"InnerAgeMarkersMissingMarkerItemType":{"type":"object","properties":{"id":{"type":"integer","example":23},"abbr":{"type":"string","example":"Glu"},"name":{"type":"string","example":"Glucose"},"shortDesc":{"type":"string","example":"Glucose is ..."},"unit":{"type":"string","example":"mg/dl"}}},"RecommendationSelection":{"type":"object","properties":{"id":{"type":"integer","description":"Recommendation ID","format":"int32","example":12345},"selected":{"type":"boolean","description":"New recommendation state: active/inactive","example":true}},"description":"Represents state of recommendation selection"},"DailyScheduleSettings":{"type":"object","properties":{"dayNum":{"type":"integer","description":"Day of week (Mon=1,..., Sun=7)","format":"int32","example":1},"timeList":{"type":"array","description":"List of time points, each value is amount of minutes from midnight. Given example represents 10:00AM, 8:00PM and 9:19PM","example":[600,1200,1279],"items":{"type":"integer","description":"List of time points, each value is amount of minutes from midnight. Given example represents 10:00AM, 8:00PM and 9:19PM","format":"int32"}}},"description":"Represents certain local time points for specific day"},"GoalDetails":{"type":"object","properties":{"id":{"type":"integer","description":"Goal Id, may be used on draft plan action","format":"int32","example":5},"verbName":{"type":"string","description":"Verb to name goal","example":"Build endurance"},"nounName":{"type":"string","description":"Noun to name goal","example":"Endurance"},"description":{"type":"string","description":"Noun to name goal","example":"The build endurance goal prioritizes recommendations that will help you sustain cardiovascular and muscular performance over longer periods of time..... "}},"description":"Goal plan was created to achieve, set once on new plan creation"},"Insight":{"type":"object","properties":{"basedOn":{"type":"array","description":"List of markers IDs this insight is based on, may contain IDs of different types of markers: blood, physio, dna","example":["RHR_M"],"items":{"type":"string","description":"List of markers IDs this insight is based on, may contain IDs of different types of markers: blood, physio, dna","example":"[\"RHR_M\"]"}},"text":{"type":"string","description":"Insight description, html tags possible here","example":"Your average monthly resting heart rate (RHR) is 79 beats per minute (bpm), which is above optimized for your age and gender. Check out these resources to help you achieve your goal: <a href='https://becomeanex.org' target='_blank'>becomeanex.org</a> and <a href='https://smokefree.gov' target='_blank'>smokefree.gov</a>."},"referenceUrl":{"type":"string","description":"Url to scientific document describing insight, may be empty string or null","example":"https://pubmed.ncbi.nlm.nih.gov/31971595/"}},"description":"Additional information related to recommendation and user data, dynamic property, based on last user data, not data on date of plan creation"},"Plan":{"type":"object","properties":{"id":{"type":"integer","description":"Recommendation ID","format":"int64","example":12345},"planType":{"type":"string","description":"Plan type, set once on submitting new plan, not used","example":"ON_COACH","enum":["UNKNOWN","SLOW_AND_STEADY","ON_COACH"]},"status":{"type":"string","description":"`NEW` - plan is in draft state\n\n`EXISTING` - plan is active\n\n`ARCHIVED` - plan was closed or expired","example":"EXISTING","enum":["NEW","NEW_CANCELED","NEW_SUBMITTED","EXISTING","ARCHIVED","NEW","EXISTING","ARCHIVED"]},"dateCreated":{"type":"string","description":"User local date plan was created","format":"date","example":"2024-10-24"},"dateExpiration":{"type":"string","description":"User local date of plan expected expiration","format":"date","example":"2025-01-24"},"datetimeCreated":{"type":"string","description":"UTC timestamp plan was created","format":"date-time","example":"2024-10-24T14:15:02Z"},"initialScore":{"type":"number","description":"Initial wellness score based of user analysis state on date plan was created, possible range: 0-100","format":"float","example":73.621},"recommendations":{"type":"array","description":"List of all recommendations in the plan (not only active)","items":{"$ref":"#/components/schemas/Recommendation"}},"goal":{"$ref":"#/components/schemas/GoalDetails"},"testId":{"type":"integer","description":"Blood test ID plan is based on","format":"int32","example":12345}},"description":"Plan in Draft or Active state"},"Recommendation":{"type":"object","properties":{"id":{"type":"integer","description":"Internal ID of recommendation","format":"int32","example":1234},"type":{"type":"string","description":"Recommendation type: try new / keep work on existing","example":"NEW","enum":["EXISTING","NEW"]},"advisoryType":{"type":"string","description":"Recommendation category","example":"FOOD","enum":["SUPPLEMENT","FOOD","LIFESTYLE","EXERCISE","UNKNOWN"]},"impactScore":{"type":"number","description":"Recommendation impact score, value range 1-10","format":"float","example":6.783},"cardTitle":{"type":"string","description":"Short title of recommendation","example":"Take a 5-minute walk every hour"},"cardDescription":{"type":"string","description":"Recommendation short description","example":"Spend less time sitting to improve your health"},"fullDescription":{"type":"string","description":"Recommendation description, html tags allowed here","example":"Break your sitting with bouts of walking, standing, or other physical activity to improve your health and longevity"},"moreDescription":{"type":"string","description":"Recommendation expanded description, html tags allowed here","example":"<b>How will this change benefit my goal?</b><br/>Research shows that breaking sitting with standing and light-intensity walking effectively improves 24 h glucose levels and insulin sensitivity to a greater extent than structured exercise. .....x5"},"checkinTitle":{"type":"string","description":"Title used on check-in interface","example":"Take a 5-minute walk every hour"},"frequency":{"type":"integer","description":"How many times per week you should follow recommendation, used for check-in and wellness score functionality, value range: 1-7","format":"int32","example":2},"basedOn":{"type":"array","description":"List of marker and marker groups IDs this recommendation is based on, may contain IDs of different types of markers: blood, blood groups, physio, dna","example":["optimize_metabolism","Glu","RHR_M"],"items":{"type":"string","description":"List of marker and marker groups IDs this recommendation is based on, may contain IDs of different types of markers: blood, blood groups, physio, dna","example":"[\"optimize_metabolism\",\"Glu\",\"RHR_M\"]"}},"image":{"type":"string","description":"Link to image","example":"https://www.insidetracker.com/skin/img/recommendation_images/rules/exercise/Walking_G.F_Age.40_BMI.3-4_Eth.W.jpg"},"arrayReferences":{"type":"array","description":"List of scientific references related to recommendation","items":{"$ref":"#/components/schemas/ScientificReference"}},"blogLink":{"type":"string","description":"Link to recommendation related insidetracker blog page","example":"https://blog.insidetracker.com/can-mindfulness-help-weight-loss"},"insights":{"type":"array","description":"Additional information related to recommendation and user data, dynamic property, based on last user data, not data on date of plan creation","items":{"$ref":"#/components/schemas/Insight"}},"selected":{"type":"boolean","description":"Recommendation is active, can be changed during the plan","example":true},"activeSchedule":{"type":"array","description":"list of recommendation active notification settings by days of week (MON-SUN),used in notifications logic","items":{"$ref":"#/components/schemas/DailyScheduleSettings"}},"defaultSchedule":{"type":"array","description":"List of recommendation default notification settings by days of week (MON-SUN),used by client only for reset notifications settings functionality (copy to active)","items":{"$ref":"#/components/schemas/DailyScheduleSettings"}},"autoCheckInEnabled":{"type":"boolean","description":"Flag if auto-checkin is applicable to recommendation, manual check-in is not required","example":true},"autoCheckInThresholdMin":{"type":"integer","description":"Min range value of marker (physio) to set auto-checkin, nullable, used for checkin UI","format":"int32","example":2000},"autoCheckInThresholdMax":{"type":"integer","description":"Max range value of marker (physio) to set auto-checkin, nullable, used for checkin UI","format":"int32","example":3000},"autoCheckInActivities":{"type":"array","description":"List of activity ids related to auto-checkin, used for checkin UI","example":["running","walking"],"items":{"type":"string","description":"List of activity ids related to auto-checkin, used for checkin UI","example":"[\"running\",\"walking\"]"}},"autoCheckInViewType":{"type":"string","description":"Auto-checkin type to switch UI for different types","example":"ACTIVITY_MULTIPLE","enum":["SLEEP_MIN_AND_MAX","SLEEP_MIN_OR_MAX","BED_WAKE_TIME","ACTIVITY_MULTIPLE","ACTIVITY_SINGLE","UNKNOWN","BED_TIME"]},"notificationsEnabled":{"type":"boolean","description":"Recommendation notification is enabled flag","example":true}},"description":"List of all recommendations in the plan (not only active)"},"ScientificReference":{"title":"Recommendation scientific Reference","type":"object","properties":{"title":{"type":"string","description":"Article title","example":"Influence of Vitamin D Supplementation by Sunlight or Oral D3 on Exercise Performance"},"date":{"type":"string","description":"Article date,  not standardized string, any value possible: 12/05/23, or February, 2023, or just 2023, or just null","example":"2024"},"sourceName":{"type":"string","description":"Source name","example":"PubMed"},"url":{"type":"string","description":"Article source URL","example":"https://pubmed.ncbi.nlm.nih.gov/30048414/"}},"description":"List of scientific references related to recommendation"},"RecommendationScheduleSettings":{"type":"object","properties":{"id":{"type":"integer","description":"Recommendation ID","format":"int32","example":12345},"schedule":{"type":"array","description":"list of recommendation active notification settings by days of week (MON-SUN),used in notifications logic","items":{"$ref":"#/components/schemas/DailyScheduleSettings"}}},"description":"Model of recommendation active notifications schedule settings"},"RecommendationNotificationSettings":{"type":"object","properties":{"id":{"type":"integer","description":"Recommendation ID","format":"int32","example":12345},"enabled":{"type":"boolean","description":"Notifications enabled state","example":true}},"description":"Model of recommendation notifications activity state"},"CheckinUpdateRequest":{"type":"object","properties":{"habitId":{"type":"integer","description":"Recommendation Id","format":"int32","example":1234},"checkInDate":{"type":"string","description":"Date to change checkin state for","format":"date","example":"2024-12-15"}}},"ManualCheckin":{"type":"object","properties":{"id":{"type":"integer","description":"Unique ID","format":"int32","example":12345,"deprecated":true},"habitId":{"type":"integer","description":"Recommendation ID","format":"int32","example":12345},"checkInDate":{"type":"string","description":"Date auto-checkin calculated for","format":"date","example":"2024-12-14"},"checkedTimestamp":{"type":"string","description":"UTC timestamp auto-checkin is set","format":"date-time"}},"description":"Manual checkin model"},"SubmitNewPlanSetting":{"type":"object","properties":{"planType":{"type":"string","description":"Plan type, should be set ON_COACH, legacy code - deprecated, but required","example":"ON_COACH","deprecated":true,"enum":["UNKNOWN","SLOW_AND_STEADY","ON_COACH"]},"recommendations":{"type":"array","description":"New submitted plan recommendations settings","items":{"$ref":"#/components/schemas/SubmitPlanRecommendationSettings"}},"testId":{"type":"integer","description":"Blood test Id new plan will be connected to for internal purpose, same or other value may be used here as used on draft plan creation","format":"int32","example":12345,"deprecated":true}},"description":"Submit plan settings object"},"SubmitPlanRecommendationSettings":{"type":"object","properties":{"id":{"type":"integer","description":"Recommendation ID","format":"int32","example":12345},"schedule":{"type":"array","description":"list of recommendation active notification settings by days of week (MON-SUN),used in notifications logic","items":{"$ref":"#/components/schemas/DailyScheduleSettings"}},"selected":{"type":"boolean","description":"Recommendation is active","example":true}},"description":"Used to describe initial state of recommendation on submitting new plan"},"DraftPlanSettings":{"type":"object","properties":{"goalId":{"type":"integer","description":"Goal Id new plan will be based on, recommendations content will be based on this goal","format":"int32","example":16},"testId":{"type":"integer","description":"Blood test Id new plan will be connected to for internal purpose","format":"int32","example":12345,"deprecated":true}}},"OptionalPlan":{"required":["present"],"type":"object","properties":{"data":{"$ref":"#/components/schemas/Plan"},"present":{"type":"boolean","description":"`true` if `data!=Null`, 'false` else wise"}}},"GoalMarkerId":{"type":"object","properties":{"markerId":{"type":"integer","description":"numeric blood marker Id","format":"int32","example":12,"deprecated":true},"abbreviation":{"type":"string","description":"String blood marker Id (Abbr)","example":"LDL"}},"description":"Simple model of marker Id"},"GoalStatus":{"type":"object","properties":{"goal":{"$ref":"#/components/schemas/GoalDetails"},"unoptimizedBiomarkers":{"uniqueItems":true,"type":"array","description":"Set of blood markers not optimal (need to improve) related to goal","items":{"$ref":"#/components/schemas/GoalMarkerId"}},"optimizedBiomarkers":{"uniqueItems":true,"type":"array","description":"Set of already optimized blood markers related to goal","items":{"$ref":"#/components/schemas/GoalMarkerId"}},"missingGoalBiomarkers":{"uniqueItems":true,"type":"array","description":"Set of blood markers related to goal but missing in user data","items":{"$ref":"#/components/schemas/GoalMarkerId"}},"isOptimized":{"type":"boolean","description":"Goal is in optimal state: no recommendations and no unoptimized markers","example":false},"recommendationsCount":{"type":"integer","description":"Number of recommendations user will get if create new plan with this goal","format":"int32","example":12}},"description":"List of possible to choose goals"},"PlanGoalOptions":{"type":"object","properties":{"goals":{"type":"array","description":"List of possible to choose goals","items":{"$ref":"#/components/schemas/GoalStatus"}},"preselectedGoalId":{"type":"integer","description":"Preselected/Recommended to choose goal","format":"int32"}},"description":"List of possible goals to create a new plan based on"},"ActivityMetric":{"type":"object","properties":{"type":{"type":"string","description":"Activity metric type","example":"AVERAGE_HEART_RATE","enum":["AVERAGE_HEART_RATE","CALORIES"]},"value":{"type":"number","description":"Activity metric value","format":"double","example":86},"stringValue":{"type":"string","description":"Activity metric value (string)","example":"86 bpm"}},"description":"Activity metrics"},"ActivityReference":{"type":"object","properties":{"id":{"type":"integer","description":"Activity id (numeric)","format":"int64","example":41},"activityType":{"type":"string","description":"Activity id (string)","example":"ROLLER_SKATING"},"name":{"type":"string","description":"Activity name","example":"Roller skating"}},"description":"Activity reference info"},"ActivityResult":{"type":"object","properties":{"date":{"type":"string","description":"Date of activity (User LocalDate)","format":"date","example":"2023-01-27"},"startDateTime":{"type":"string","description":"Activity start datetime (User LocalDateTime)","format":"date-time"},"values":{"$ref":"#/components/schemas/ActivityValue"}},"description":"Customer activity result info"},"ActivityValue":{"type":"object","properties":{"duration":{"type":"number","description":"Activity duration in minutes","format":"double","example":54.8},"durationString":{"type":"string","description":"Activity duration (string)","example":"0h 54m"},"metrics":{"type":"array","description":"Activity metrics","items":{"$ref":"#/components/schemas/ActivityMetric"}}},"description":"Activity values"},"ProTip":{"type":"object","properties":{"id":{"type":"integer","description":"ProTip identifier","format":"int32","example":123},"ruleId":{"type":"integer","description":"Rule identifier (From recommendation system)","format":"int64","example":3456},"title":{"type":"string","description":"ProTip title","example":"Improve your activity"},"description":{"type":"string","description":"ProTip description","example":"To improve your activity, try to do more exercises every day."},"bulbSection":{"type":"string","description":"ProTip bulb section content","example":"To improve your activity, try to do more exercises every day. For example, you can walk for 30 minutes or do some stretching exercises."},"checkSection":{"type":"string","description":"ProTip check section content","example":"Check your activity level by tracking the number of steps you take each day. Aim for at least 10,000 steps daily to maintain a healthy lifestyle."},"infoSection":{"type":"string","description":"ProTip info section content","example":"To improve your activity, try to do more exercises every day. For example, you can walk for 30 minutes or do some stretching exercises."},"date":{"type":"string","description":"ProTip local date it was generated","format":"date","example":"2023-08-01"},"sentTime":{"type":"string","description":"ProTip sent time. UTC Local time","format":"date-time"},"basedOn":{"type":"array","description":"List of factors ProTip is based on, may include Blood,Activity,Physio and other marker identifiers","example":["Glu","SLEEP_DUR_D","SLEEP_DUR_M"],"items":{"type":"string","description":"List of factors ProTip is based on, may include Blood,Activity,Physio and other marker identifiers","example":"[\"Glu\",\"SLEEP_DUR_D\",\"SLEEP_DUR_M\"]"}},"referenceUrl":{"type":"string","description":"Scientific reference URL","example":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1234567/"},"category":{"type":"string","description":"ProTip category","enum":["MORNING","POST_ACTIVITY","MORNING_1","MORNING_2"]},"type":{"type":"string","description":"ProTip type","enum":["PHYSIO","BLOOD","POSITIVE","MULTI_PARAMETER","POST_ACTIVITY","OTHER"]},"activity":{"$ref":"#/components/schemas/ProTipActivityInfo"},"bloodResultId":{"type":"integer","description":"Blood result identifier ProTip relates","format":"int64","example":789},"feedback":{"type":"array","description":"List of ProTip feedbacks","items":{"$ref":"#/components/schemas/ProTipFeedback"}}}},"ProTipActivityInfo":{"type":"object","properties":{"info":{"$ref":"#/components/schemas/ActivityReference"},"lastResult":{"$ref":"#/components/schemas/ActivityResult"}},"description":"ProTip activity information, if ProTip is based on activity"},"ProTipFeedback":{"title":"Response DTO for getting of proTip's feedback","type":"object","properties":{"id":{"type":"integer","description":"Feedback identifier","format":"int64","example":12345},"proTipId":{"type":"integer","description":"Related ProTip identifier","format":"int32","example":123},"isLike":{"type":"boolean","description":"Whether the proTip's feedback is positive or negative","example":true},"selectedTexts":{"type":"array","description":"The list of selected options (as strings) for the feedback","example":"[\"Not relevant\", \"I really enjoy it!\" \"Just cause\"]","items":{"type":"integer","description":"The list of selected options (as strings) for the feedback","format":"int64"}},"creationTime":{"type":"string","description":"DateTime feedback provided. UTC Local time","format":"date-time"},"feedback":{"type":"string","description":"The feedback of a proTip (text)","example":"This proTip is very helpful, I really enjoy it!"}},"description":"List of ProTip feedbacks"},"OptionalProTip":{"required":["present"],"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProTip"},"present":{"type":"boolean","description":"`true` if `data!=Null`, 'false` else wise"}},"description":"DTO for optional ProTip data.\nContains ProTip data and boolean flag 'present' which indicates whether ProTip is present or not"},"AutoCheckin":{"type":"object","properties":{"id":{"type":"integer","description":"Unique ID","format":"int32","example":12345,"deprecated":true},"habitId":{"type":"integer","description":"Recommendation ID","format":"int32","example":12345},"set":{"type":"boolean","description":"Automatic calculated value of checkin","example":false},"checkInDate":{"type":"string","description":"Date auto-checkin calculated for","format":"date","example":"2024-12-14"},"checkedTimestamp":{"type":"string","description":"UTC timestamp auto-checkin is updated","format":"date-time"}},"description":"Model of automated checkin object"},"BriefReport":{"type":"object","description":"Brief report info","properties":{"id":{"type":"string","format":"uuid","description":"report ID (uuid)","example":"123e4567-e89b-12d3-a456-426614174000"},"title":{"type":"string","description":"Report title to display","example":"Health Habit Report"},"type":{"type":"string","description":"Report type","enum":["BLOOD","DNA","HHR"],"example":"HHR"},"createdAt":{"type":"string","format":"date-time","description":"UTC timestamp report generated at","example":"2022-01-01T00:00:00Z"},"dateFrom":{"type":"string","format":"date","description":"Report meta field: start date of period report is generated for","example":"2022-01-01T00:00:00Z"},"dateTo":{"type":"string","format":"date","description":"Report meta field: end date of period report is generated for","example":"2022-01-07T00:00:00Z"},"formats":{"type":"array","description":"Available report formats","example":["PDF","JSON"],"items":{"type":"string","description":"Available report formats","enum":["PDF","JSON","CSV","HTML"],"example":["PDF","JSON"]}},"isNew":{"type":"boolean","description":"Indicates if the report is new","example":true}}},"BriefReportPage":{"type":"object","description":"Page of brief report info","properties":{"items":{"type":"array","description":"Page items on selected page","items":{"$ref":"#/components/schemas/BriefReport"}},"totalPages":{"type":"integer","format":"int32","description":"Total pages count"},"totalElements":{"type":"integer","format":"int32","description":"Total items count on selected page"}},"required":["items","totalElements","totalPages"]},"ReportFileToken":{"type":"object","description":"Response containing a short living token to access a report file","properties":{"token":{"type":"string","format":"uuid","description":"Short living token (UUID) to access file publicly","example":"123e4567-e89b-12d3-a456-426614174000"}}},"PublicPhysioMarkerReference":{"type":"object","properties":{"tag":{"type":"string","description":"Marker tag (identifier)","example":"RHR_M"},"name":{"type":"string","description":"Marker name","example":"Average resting heart rate"},"description":{"type":"string","description":"Marker description","nullable":true,"example":"Beats per minute when at rest"},"unit":{"type":"string","description":"Unit of measurement for the marker","example":"bpm"},"type":{"type":"string","description":"Type of the marker","enum":["DAILY","WEEKLY","MONTHLY"],"example":"MONTHLY"},"precision":{"type":"integer","format":"int32","description":"Precision of the marker's value","example":2}},"required":["tag","name","unit","type","precision"]},"PublicActivityReference":{"type":"object","properties":{"tag":{"type":"string","description":"Activity tag (identifier)","example":"BIKE"},"name":{"type":"string","description":"Name","example":"Cycling"},"category":{"type":"string","description":"Category","example":"ENDURANCE"}},"required":["tag","name","category"]},"PhysioMarkerValue":{"type":"object","description":"Physio marker value for a specific date","properties":{"date":{"type":"string","format":"date","description":"Physio marker measurement date","example":"2025-09-22"},"tag":{"type":"string","description":"Physio marker tag","example":"RHR_D"},"value":{"type":"number","format":"double","description":"Physio marker value","example":72.5}},"required":["date","tag","value"]},"ActivityLog":{"type":"object","description":"Represents an activity log entry with details about the activity performed","properties":{"date":{"type":"string","format":"date","description":"Activity date","example":"2025-09-22"},"tag":{"type":"string","description":"Activity tag","example":"BIKE"},"startDateTime":{"type":"string","description":"Activity start datetime in user local timezone","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$","example":"2025-09-22T10:15:30"},"duration":{"type":"integer","format":"int32","description":"Activity duration in minutes","example":60},"calories":{"type":"integer","format":"int32","description":"Calories burned during the activity","nullable":true,"example":500},"met":{"type":"number","format":"double","description":"Metabolic equivalent of task (MET) value","nullable":true,"example":8.5},"averageHeartRate":{"type":"integer","format":"int32","description":"Average heart rate during the activity","nullable":true,"example":140}},"required":["date","tag","startDateTime","duration"]},"SleepLog":{"type":"object","description":"Represents a sleep log entry with details about sleep duration and phases","properties":{"date":{"type":"string","format":"date","description":"Sleep log date","example":"2025-09-22"},"startTime":{"type":"integer","format":"int32","description":"Start time in minutes since midnight, negative if sleep started yesterday","example":-120},"endTime":{"type":"integer","format":"int32","description":"End time in minutes since midnight","example":360},"timeAsleep":{"type":"integer","format":"int32","minimum":0,"description":"Total time asleep in minutes","example":480},"deepSleep":{"type":"integer","format":"int32","description":"Deep sleep duration in minutes","nullable":true,"example":120},"lightSleep":{"type":"integer","format":"int32","description":"Light sleep duration in minutes","nullable":true,"example":240},"remSleep":{"type":"integer","format":"int32","description":"REM sleep duration in minutes","nullable":true,"example":90},"unmeasurableSleep":{"type":"integer","format":"int32","description":"Unmeasurable sleep duration in minutes","nullable":true,"example":30},"awake":{"type":"integer","format":"int32","description":"Awake duration in minutes","nullable":true,"example":60}},"required":["date","startTime","endTime","timeAsleep"]},"ConnectDirectResponse":{"type":"object","description":"Provider registered connection details","properties":{"providerProfileId":{"type":"string","format":"uuid","description":"Provider profile identifier, to be used for subsequent data submission requests","example":"550e8400-e29b-41d4-a716-446655440000"}},"required":["providerProfileId"]},"ConnectedProvider":{"type":"object","description":"Represents a connected wearable provider","properties":{"tag":{"type":"string","description":"Provider tag","example":"APPLE_HK"},"connectionDateTime":{"type":"string","format":"date-time","description":"Timestamp when the connection was established","example":"2025-09-22T09:10:30Z"},"latestSyncDateTime":{"type":"string","format":"date-time","description":"Timestamp when the data was last synchronized","example":"2025-09-22T09:15:30Z"}},"required":["tag","connectionDateTime","latestSyncDateTime"]},"AppleHealthKitUserDataPostRequest":{"type":"object","description":"Raw HealthKit data submission request","properties":{"profiles":{"type":"array","description":"Set of connected profile UUIDs associated with the data","items":{"type":"string","format":"uuid"},"example":["550e8400-e29b-41d4-a716-446655440000"]},"data":{"type":"array","description":"HKSample entries identified by an id","items":{"$ref":"#/components/schemas/AppleHealthKitData"}},"activitySummaries":{"type":"array","description":"HKActivitySummary entries identified by date","items":{"$ref":"#/components/schemas/AppleHealthKitActivitySummary"}},"steps":{"type":"array","description":"Step count entries identified by date","items":{"$ref":"#/components/schemas/AppleHealthKitDateValue"}}},"required":["profiles"]},"AppleHealthKitUserDataDeleteRequest":{"type":"object","description":"Raw HealthKit data deletion request","properties":{"profiles":{"type":"array","description":"Set of connected profile UUIDs associated with the data","items":{"type":"string","format":"uuid"},"example":["550e8400-e29b-41d4-a716-446655440000"]},"data":{"$ref":"#/components/schemas/AppleHealthKitDeleteData"}},"required":["profiles","data"]},"AppleHealthKitDeleteData":{"type":"object","description":"Request for deleting HKSample entries by IDs","properties":{"activities":{"type":"array","description":"Set of IDs for activity samples to be deleted","items":{"type":"string","format":"uuid"}},"sleepSamples":{"type":"array","description":"Set of IDs for sleep samples to be deleted","items":{"type":"string","format":"uuid"}},"rhr":{"type":"array","description":"Set of IDs for resting heart rate samples to be deleted","items":{"type":"string","format":"uuid"}},"bodyMasses":{"type":"array","description":"Set of IDs for body mass samples to be deleted","items":{"type":"string","format":"uuid"}},"bodyFatPercentages":{"type":"array","description":"Set of IDs for body fat samples to be deleted","items":{"type":"string","format":"uuid"}},"hrv":{"type":"array","description":"Set of IDs for heart rate variability samples to be deleted","items":{"type":"string","format":"uuid"}},"vo2max":{"type":"array","description":"Set of IDs for VO2 max samples to be deleted","items":{"type":"string","format":"uuid"}}}},"AppleHealthKitDateValue":{"type":"object","description":"Daily value entry","properties":{"date":{"type":"string","format":"date","example":"2026-05-28"},"value":{"type":"number","format":"double","example":5000}},"required":["date","value"]},"AppleHealthKitSource":{"type":"object","description":"Source information for health data","properties":{"sourceName":{"type":"string","description":"Name of the source","example":"My Apple Watch"},"sourceBundle":{"type":"string","description":"Bundle identifier of the source","example":"com.apple.health.2F2"},"sourceVersion":{"type":"string","description":"Version of the source","example":"11.5"},"operatingSystemVersion":{"type":"string","description":"Operating system version","example":"11.5.0"},"productType":{"type":"string","description":"Product type of the source","nullable":true,"example":"Watch6,18"}},"required":["sourceName","sourceBundle","sourceVersion","operatingSystemVersion"]},"AppleHealthKitActivity":{"type":"object","description":"Activity record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"type":{"type":"string","description":"Activity type (e.g., running, cycling)","example":"running"},"dateTimeStart":{"type":"string","description":"Activity start timestamp","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-01 08:30:00"},"duration":{"type":"integer","format":"int32","description":"Activity duration in seconds","example":3600},"energyBurned":{"type":"integer","format":"int32","description":"Energy burned in kilocalories","nullable":true,"example":500}},"required":["externalId","type","dateTimeStart","duration"]},"AppleHealthKitSleepSample":{"type":"object","description":"Sleep sample record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"dateTimeStart":{"type":"string","description":"Start timestamp of the sleep sample","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-01 22:00:00"},"dateTimeEnd":{"type":"string","description":"End timestamp of the sleep sample","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-02 06:00:00"},"type":{"type":"string","description":"Type of the sleep sample","enum":["IN_BED","AWAKE","ASLEEP_CORE","ASLEEP_DEEP","ASLEEP_REM","ASLEEP_UNSPECIFIED","UNKNOWN"],"x-enum-aliases":{"IN_BED":["inBed"],"AWAKE":["awake"],"ASLEEP_CORE":["asleep_core"],"ASLEEP_DEEP":["asleep_deep"],"ASLEEP_REM":["asleep_rem"],"ASLEEP_UNSPECIFIED":["asleep"],"UNKNOWN":["unknown"]},"example":"ASLEEP_CORE"}},"required":["externalId","dateTimeStart","dateTimeEnd","type"]},"AppleHealthKitRestingHeartRate":{"type":"object","description":"Resting heart rate (RHR) record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"date":{"type":"string","format":"date","description":"Measurement date","example":"2025-10-01"},"rhr":{"type":"integer","format":"int32","description":"Resting heart rate value in beats per minute (BPM)","example":60}},"required":["externalId","date","rhr"]},"AppleHealthKitBodyMass":{"type":"object","description":"Body mass record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"dateTime":{"type":"string","description":"Measurement timestamp","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-01 08:30:00"},"bodyMassGrams":{"type":"integer","format":"int32","description":"Body mass in grams","example":70000}},"required":["externalId","dateTime","bodyMassGrams"]},"AppleHealthKitBodyFat":{"type":"object","description":"Body fat record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"dateTime":{"type":"string","description":"Measurement timestamp","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-01 08:30:00"},"bodyFatPercentage":{"type":"number","format":"float","description":"Body fat fraction value","example":0.185}},"required":["externalId","dateTime","bodyFatPercentage"]},"AppleHealthKitHrv":{"type":"object","description":"Heart rate variability (HRV) record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"dateTime":{"type":"string","description":"Measurement timestamp","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-01 08:30:00"},"sdnn":{"type":"number","format":"float","description":"SDNN value of the HRV measurement","example":50.5}},"required":["externalId","dateTime","sdnn"]},"AppleHealthKitVo2Max":{"type":"object","description":"VO2 Max record","properties":{"externalId":{"type":"string","format":"uuid","description":"Record UUID","example":"123e4567-e89b-12d3-a456-426614174000"},"dateTime":{"type":"string","description":"Measurement timestamp","pattern":"^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$","example":"2025-10-01 08:30:00"},"vo2max":{"type":"number","format":"float","description":"VO2 Max value in ml/min/kg","example":45.5}},"required":["externalId","dateTime","vo2max"]},"AppleHealthKitData":{"type":"object","description":"Data transfer object containing various health-related records","properties":{"source":{"$ref":"#/components/schemas/AppleHealthKitSource"},"activities":{"type":"array","description":"List of activity records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitActivity"}},"sleepSamples":{"type":"array","description":"List of sleep sample records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitSleepSample"}},"rhr":{"type":"array","description":"List of resting heart rate records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitRestingHeartRate"}},"bodyMasses":{"type":"array","description":"List of body mass records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitBodyMass"}},"bodyFatPercentages":{"type":"array","description":"List of body fat percentage records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitBodyFat"}},"hrv":{"type":"array","description":"List of heart rate variability records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitHrv"}},"vo2max":{"type":"array","description":"List of VO2 Max records","nullable":true,"items":{"$ref":"#/components/schemas/AppleHealthKitVo2Max"}}},"required":["source"]},"AppleHealthKitActivitySummary":{"type":"object","description":"Activity summary","properties":{"date":{"type":"string","format":"date","description":"Date of the activity summary","example":"2025-10-15"},"activeEnergyBurned":{"type":"number","format":"float","description":"The amount of active energy the user burned during the specified day","example":500.5},"activeEnergyBurnedGoal":{"type":"integer","format":"int32","description":"The user’s daily goal for active energy burned.","example":600},"appleExerciseTime":{"type":"integer","format":"int32","description":"The amount of time that the user has spent exercising during the specified day","example":30},"appleExerciseTimeGoal":{"type":"integer","format":"int32","description":"The user’s daily exercise goal","example":45},"appleStandHours":{"type":"integer","format":"int32","description":"The number hours in the specified day during which the user has stood and moved for at least a minute per hour","example":10},"appleStandHoursGoal":{"type":"integer","format":"int32","description":"The user’s daily goal for stand hours","example":12}},"required":["date","activeEnergyBurned","appleExerciseTime"]},"AppleHealthKitResponse":{"type":"object","description":"Represents Apple HealthKit profile connection status","properties":{"profileId":{"type":"string","format":"uuid","description":"Apple HealthKit profile UUID","example":"550e8400-e29b-41d4-a716-446655440000"},"status":{"type":"string","description":"Profile connection and data acceptance status. A FAIL status means the connection is no longer active, either because the user disconnected it or connected another Apple device. Data for that profile is no longer accepted.","enum":["FAIL","OK"],"example":"OK"}},"required":["profileId","status"]},"CustomerExtId":{"type":"string","format":"uuid","description":"Partner-side external identifier of the customer.","example":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},"BloodTestId":{"type":"integer","description":"InsideTracker blood test identifier associated with the event.","example":99},"WebhookMbd":{"type":"object","description":"MBD data included with blood result activation events.","required":["partnerId"],"properties":{"partnerId":{"type":"string","description":"Partner identifier inside the MBD object.","example":"partner-xyz"}}},"CustomerInnerAgeCalculatedPayload":{"type":"object","required":["extId","bloodTestId"],"properties":{"extId":{"$ref":"#/components/schemas/CustomerExtId"},"bloodTestId":{"$ref":"#/components/schemas/BloodTestId"}}},"CustomerLoggedInPayload":{"type":"object","required":["extId","platform"],"properties":{"extId":{"$ref":"#/components/schemas/CustomerExtId"},"platform":{"type":"string","description":"Platform from which the customer logged in.","example":"mobile"}}},"BloodResultPublishedPayload":{"type":"object","required":["extId","bloodTestId"],"properties":{"extId":{"$ref":"#/components/schemas/CustomerExtId"},"bloodTestId":{"$ref":"#/components/schemas/BloodTestId"}}},"BloodResultActivationApprovedPayload":{"type":"object","required":["extId","bloodTestId","mbd"],"properties":{"extId":{"$ref":"#/components/schemas/CustomerExtId"},"bloodTestId":{"$ref":"#/components/schemas/BloodTestId"},"mbd":{"$ref":"#/components/schemas/WebhookMbd"}}},"BloodResultActivationMbdChangedPayload":{"type":"object","required":["extId","bloodTestId","mbd"],"properties":{"extId":{"$ref":"#/components/schemas/CustomerExtId"},"bloodTestId":{"$ref":"#/components/schemas/BloodTestId"},"mbd":{"$ref":"#/components/schemas/WebhookMbd"}}},"ReportHubHhrReportAddedPayload":{"type":"object","required":["extId","reportType","reportId","dateFrom","dateTo","formats"],"properties":{"extId":{"$ref":"#/components/schemas/CustomerExtId"},"reportType":{"type":"string","description":"Report type delivered by the event.","enum":["HHR"],"example":"HHR"},"reportId":{"type":"string","format":"uuid","description":"Identifier of the generated report.","example":"f47ac10b-58cc-4372-a567-0e02b2c3d479"},"dateFrom":{"type":"string","format":"date","description":"Start date of the report coverage period.","example":"2025-01-01"},"dateTo":{"type":"string","format":"date","description":"End date of the report coverage period.","example":"2025-01-15"},"formats":{"type":"array","description":"Available report formats.","items":{"type":"string","example":"JSON"},"example":["JSON","PDF"]}}},"BruWebhookValidationMode":{"type":"string","enum":["AUTO","MANUAL_REVIEW"]},"BruWebhookValidator":{"type":"string","nullable":true,"enum":["CUSTOMER","OPS",null]},"BruWebhookBloodResultRef":{"type":"object","required":["legacyId"],"properties":{"legacyId":{"type":"integer"}}},"BruWebhookTerminalPayload":{"type":"object","required":["timestamp","processId","extId","status","autoPublishResult","validationMode","bloodResults"],"properties":{"timestamp":{"type":"string","format":"date-time"},"processId":{"type":"string","format":"uuid"},"extId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["PUBLISHED","COMPLETE"]},"autoPublishResult":{"type":"boolean"},"validationMode":{"$ref":"#/components/schemas/BruWebhookValidationMode"},"bloodResults":{"type":"array","description":"Blood result identifiers created by automatic publication. The array can be empty for a `PUBLISHED` event when no parsed markers were mapped.","items":{"$ref":"#/components/schemas/BruWebhookBloodResultRef"}}}},"BruWebhookOnValidationPayload":{"type":"object","required":["timestamp","extId","processId","status","autoPublishResult","validationMode","validator"],"properties":{"timestamp":{"type":"string","format":"date-time"},"extId":{"type":"string","format":"uuid"},"processId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["ON_VALIDATION"]},"autoPublishResult":{"type":"boolean"},"validationMode":{"$ref":"#/components/schemas/BruWebhookValidationMode"},"validator":{"type":"string","enum":["CUSTOMER","OPS"]}}},"BruWebhookCanceledPayload":{"type":"object","required":["timestamp","extId","processId","status","autoPublishResult","validationMode","validator","canceledBy","canceledAt"],"properties":{"timestamp":{"type":"string","format":"date-time"},"extId":{"type":"string","format":"uuid"},"processId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["CANCELED"]},"autoPublishResult":{"type":"boolean"},"validationMode":{"$ref":"#/components/schemas/BruWebhookValidationMode"},"validator":{"$ref":"#/components/schemas/BruWebhookValidator"},"canceledBy":{"type":"string","enum":["customer","admin"]},"canceledAt":{"type":"string","format":"date-time"}}},"BruWebhookPublishedWithNoResultsPayload":{"type":"object","required":["timestamp","extId","processId","status","autoPublishResult","validationMode"],"properties":{"timestamp":{"type":"string","format":"date-time"},"extId":{"type":"string","format":"uuid"},"processId":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["PUBLISHED_WITH_NO_RESULTS"]},"autoPublishResult":{"type":"boolean"},"validationMode":{"$ref":"#/components/schemas/BruWebhookValidationMode"}}}},"securitySchemes":{"company":{"type":"http","description":"Enterprise token authentication","scheme":"bearer","bearerFormat":"JWT"},"customer":{"type":"http","description":"Customer token authentication","scheme":"bearer","bearerFormat":"JWT"},"service":{"type":"http","description":"Service token authentication","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"ProcessId":{"name":"processId","in":"path","required":true,"description":"Identifier of the asynchronous BRU process returned by process submission.","schema":{"type":"string","format":"uuid"},"example":"0196ea8d-2f34-7a11-8a3c-123456789abc"},"ProcessFileId":{"name":"processFileId","in":"path","required":true,"description":"Identifier of a source file attached to the process.","schema":{"type":"string","format":"uuid"}},"StartDate":{"name":"startDate","in":"query","required":true,"description":"Start date filter","schema":{"type":"string","format":"date"},"example":"2025-09-22"},"EndDate":{"name":"endDate","in":"query","required":true,"description":"End date filter (max 90 days from startDate)","schema":{"type":"string","format":"date"},"example":"2025-09-23"}},"responses":{"BadRequest":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"ForbiddenUpload":{"description":"The customer token does not contain the required `bru.upload` scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"},"example":{"status":403,"statusText":"Forbidden","message":"Access Denied by scope(s): ROLE_CUSTOMER:bru.upload"}}}},"ForbiddenStatus":{"description":"The customer token does not contain the required `bru.status` scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorResponse"},"example":{"status":403,"statusText":"Forbidden","message":"Access Denied by scope(s): ROLE_CUSTOMER:bru.status"}}}},"Conflict":{"description":"A BRU process with the same `externalId` already exists for the customer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"A BRU process with this externalId already exists."}}}},"ReviewConflict":{"description":"The customer may read the process but review mutation or approval is not allowed in its current status or for its validator.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"InternalError":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"x-tagGroups":[{"name":"Auth service API Documentation","tags":["OAuth2"]},{"name":"Enterprise API Documentation","tags":["Partner customers","Inventory","Sandbox"]},{"name":"Customer Auth API Documentation","tags":["Customer OAuth2"]},{"name":"InsideTracker Integration Guide","tags":["BRU (Blood Result Upload)","Blood Results","Customer account","References","Biomarker Categories","Customer Onboarding","Profile","Onboarding References","InnerAge","Recommendations","Customer Profile"]},{"name":"Plan Service Integration Guide","tags":["Plan","Plan Check-in","Goals","ProTips"]},{"name":"Report Hub API Documentation","tags":["Report Hub"]},{"name":"Wearables Service Integration Guide","tags":["Physio references","Physio data","Wearables connect","Apple HealthKit raw data submission"]},{"name":"System Webhook","tags":["Webhook Events"]},{"name":"UGHD API Documentation","tags":["Health PROMs","Health Tags: Master Data Management","Health Tags: User Operations"]}]}