Getting Started

Build the first InsideTracker integration path: authenticate, create a User, add User data, and retrieve a personalized biomarker output.

Getting Started

Last substantively updated: October 26, 2026.

This guide walks through a small end-to-end InsideTracker integration path. By the end, your backend can authenticate, register a User, request customer access, submit basic User data, and retrieve a personalized biomarker output.

Authenticate

Request a service-level token, then use customer-level tokens for User-specific work.

Add User data

Create the User, store their identifiers, and submit profile and blood result data.

Retrieve an output

Fetch a personalized biomarker output to confirm the User-level flow is working.

Before You Begin

You need the following from InsideTracker:

RequirementWhy you need it
Partner account accessRequired to access InsideTracker APIs.
Client ID and client secretRequired to request service-level tokens.
Enabled scopesService access for registration (customer:w) and customer exchange (exchange:customer), plus customer basic access for this first workflow.
Sandbox environment accessUsed to build and test before production.
API Reference accessUsed for exact endpoint schemas and examples.

Use the sandbox base URL while building and testing:

https://api.sandbox.insidetracker.com

For authenticated requests, send the access token in the Authorization header:

Authorization: Bearer {access_token}

How Authentication Works

Your backend requests a service-level token, registers the User, and exchanges that token for customer access using the returned extId.

TokenUsed here for
Service-level tokenRegistering the linked customer record and requesting customer access.
Customer-level tokenSubmitting profile and blood result data and retrieving personalized ranges.

Store your organization credentials securely and retain the mapping between your User ID and extId. Track token expiration using returned expires_in values. Authorization and Security covers token scope, replacement, and troubleshooting.

Step 1: Authenticate Your Service

Request a service-level token through the token endpoint:

See Token request endpoint for request and response details.

POST /oauth/token
Content-Type: application/json
{
  "grant_type": "client_credentials",
  "client_id": "{client_id}",
  "client_secret": "{client_secret}",
  "audience": "partner-api",
  "scope": "customer:w exchange:customer"
}

Use the returned access_token as {service_access_token} in the next steps. These requested scopes must be enabled for your organization.

Step 2: Create A User

Register a linked InsideTracker customer record for the User through the registration endpoint. A single-User request still sends an array with one item. Use the service-level token with customer:w.

See Register customer accounts in batch mode for request and response details.

POST /enterprise/customers/sa/v1/customers/register
Content-Type: application/json
Authorization: Bearer {service_access_token}
[
  {
    "extId": "b2d905cd-e5ff-4843-817e-cc27a916c90c",
    "firstName": "Jordan",
    "lastName": "Example",
    "email": "[email protected]",
    "phone": "+15551234567",
    "birthdate": "1990-01-25",
    "biologicalSex": "FEMALE",
    "ethnicity": "asian",
    "measurementSystem": "IMPERIAL",
    "timezone": "America/New_York",
    "heightCm": 167.6,
    "weightKg": 68.0,
    "address": {
      "address1": "123 Main St",
      "address2": "Apt 2",
      "city": "Boston",
      "state": "MA",
      "country": "US",
      "zip": "02124"
    }
  }
]

For each User in the response, check the item-level result.

FieldWhat to do with it
extIdStore this as the stable mapping between your User and the linked InsideTracker customer record.
succeedCheck every item; HTTP 200 can represent partial or complete business-level failure.
errorsHandle item-level failures. This field is null for a successful registration.
statusThe registered User's ACTIVE or INACTIVE status; null when registration fails.

Correlate response items by extId or email. Store the successful result's extId before continuing. Creating Users covers batch and failure handling.

Step 3: Request Customer Access

Exchange the service token for access to the User you just registered:

POST /oauth/token
Content-Type: application/json
{
  "grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
  "subject_token": "{service_access_token}",
  "subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
  "requested_subject": "customer:b2d905cd-e5ff-4843-817e-cc27a916c90c",
  "audience": "customer-api",
  "scope": "basic"
}

Use your stored registration extId in requested_subject. Keep the returned access_token associated with that User and use it as {customer_access_token} below. The basic scope covers the profile, structured blood result, and range operations used in this first path.

When customer access expires, repeat this exchange with a valid service token. When service access expires, request a new service token with client_credentials. Keep the User's existing extId mapping through both operations.

Step 4: Add Profile Data

Profile and onboarding data help InsideTracker personalize outputs for the User. A simple first path can include physiomarker data such as height, weight, body composition, and resting heart rate.

See Add Physio data for the user for request and response details.

POST /api/pages/physioMarkers/physioMarkersPost
Content-Type: application/json
Authorization: Bearer {customer_access_token}
{
  "bodyFatPercent": 25.5,
  "waist": 32,
  "hip": 38,
  "weight": 150,
  "height1": 5,
  "height2": 8,
  "rhr": 65
}

The expected measurement system depends on the User's account settings. Send values in the units expected for that User.

Step 5: Add A Structured Blood Result

For this first path, submit a structured blood result with marker values. The Add Blood Result guide covers marker preparation, markerId mapping, result retrieval, and update behavior in more detail.

At a high level:

  • Confirm which markers are available for upload.
  • Submit the result with testDate, countryCode, and markerValues.
  • Store the returned resultId.

Submit the result with a customer-level token:

See Add blood result for request and response details.

POST /it-web/results-upload/customer/v1/add-result
Content-Type: application/json
Authorization: Bearer {customer_access_token}
{
  "testDate": "2026-05-01",
  "countryCode": "US",
  "markerValues": [
    {
      "markerId": 17,
      "value": 95.0
    }
  ]
}

Store the returned resultId if your workflow needs to inspect, update, or troubleshoot the result later.

Step 6: Retrieve A Personalized Biomarker Output

After adding User data, retrieve personalized blood marker ranges for the User.

See Blood marker ranges for request and response details.

GET /it-web/blood/customer/v1/ranges
Authorization: Bearer {customer_access_token}

The response contains marker-specific range boundaries:

{
  "items": [
    {
      "markerId": 123,
      "markerAbbr": "Glu",
      "minBorderLine": 70,
      "minNearNormal": 75,
      "minA": 80,
      "minG": 85,
      "maxG": 95,
      "maxA": 100,
      "maxNearNormal": 110,
      "maxBorderLine": 125
    }
  ]
}

This confirms that the User-level flow is working: InsideTracker can receive User data and return personalized biomarker context.

If Your First Workflow Is Different

Some integrations should start with a different data onboarding path.

If you need to...Start with
Upload OCR, FHIR, or HL7 blood result filesBlood Result Upload
Submit marker values directlyAdd Blood Result
Order a Quest or Mobile Blood Draw lab testLab Connect
Register Fitbit data accessConnecting Wearable Devices
Submit Apple HealthKit data from a User deviceConnecting Wearable Devices
Retrieve recommendations or build adherence trackingRecommendations and Action Plan
Retrieve timely insights that reinforce recommended actionsProTips
Update account-level fields after User creationCustomer Account Management

Implementation Checklist

First path checklist
  • You can request a service-level access token.
  • You can create a User through the customer creation endpoint.
  • You check item-level success and errors from batch User-creation responses.
  • You store the User's extId and request customer access through token exchange.
  • You can make customer-level requests for the User.
  • You can add profile or physiomarker data.
  • You can add a structured blood result.
  • You can retrieve personalized blood marker ranges.
  • Your system tracks expiration and can request replacement access tokens through the appropriate grant.

Related Guides

Related API Reference

Use the API Reference for endpoint-level schemas, status codes, and full request and response examples:


Did this page help you?