Creating Users

Register linked InsideTracker customer records, store User identifiers, and prepare for customer-level token exchange.

Creating Users

Last substantively updated: October 26, 2026.

Register a User to create their linked InsideTracker customer record. Keep that record associated with the User in your product or service.

That linked customer record gives InsideTracker a place to attach User data and generate User-specific outputs. Registration returns the identifiers and per-User results you need to maintain the mapping; request customer access afterward through token exchange.

Create linked records

Send one or more Users to the customer creation endpoint.

Store the mapping

Store extId so your system can connect each User to the InsideTracker customer record.

Request User access

Exchange a service-level token for customer access using the stored extId.

Where This Fits

Use this page when you have a service-level token and are ready to create linked InsideTracker customer records for your Users.

The output of this step is a durable mapping between your User and the linked customer record. Use that mapping when requesting customer-level access in Authorization and Security.

Before You Begin

RequirementWhy you need it
Service-level access token with customer:wRequired to register linked customer records.
User identity dataRequired to create the linked customer record.
Secure backend credential storageRequired to protect the service-level token used for registration.
User mapping strategyRequired to connect your User record to the InsideTracker customer record.

Use the sandbox environment while building and testing:

https://api.sandbox.insidetracker.com

Endpoint

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}

Register up to 1,000 customer records in one request. To create one linked customer record, send an array with one User object.

Request Body

[
  {
    "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"
    }
  }
]

Request Fields

FieldRequired?Description
firstNameRequiredUser's first name.
lastNameRequiredUser's last name.
emailRequiredUser's email address.
phoneRequiredUser's phone number. Use a + followed by digits.
birthdateRequiredUser's birthdate in YYYY-MM-DD format.
biologicalSexRequiredAllowed values: MALE, FEMALE.
ethnicityRequiredUser's ethnicity value. Use the API Reference for the current allowed values.
measurementSystemRequiredUser's preferred measurement system. Allowed values: METRIC, IMPERIAL.
extIdOptionalExternal UUID to attach to the customer record. If omitted, InsideTracker generates one.
timezoneOptionalUser's timezone.
heightCmOptionalUser's height in centimeters.
weightKgOptionalUser's weight in kilograms.
addressOptionalUser's address information.

Provide your own stable extId when possible. If InsideTracker generates extId, store the returned value before making additional User-specific requests.

Handle Registration Results

The response contains one result for each submitted User object. A successful result looks like:

[
  {
    "email": "[email protected]",
    "errors": null,
    "extId": "b2d905cd-e5ff-4843-817e-cc27a916c90c",
    "status": "ACTIVE",
    "succeed": true
  }
]
FieldWhat to do with it
succeedCheck whether that User was registered successfully.
errorsHandle business-level errors for a failed item. This field is null when succeed is true.
extIdStore the successful result's identifier as the durable mapping for later requests.
emailUse with extId to correlate the response item to the submitted User.
statusThe registered customer's ACTIVE or INACTIVE status; null when registration fails.

Batch Behavior

A request can return HTTP 200 OK even when some or all submitted Users fail at the business level. Inspect succeed and errors for every response item, and correlate items by extId or email.

Store the mapping and continue to token exchange only for successful registrations. Handle failed items individually rather than treating the whole batch as registered.

Store The Mapping

After successful registration, retain:

ValueWhy it matters
Your internal User IDLets your application find the User.
Returned extIdIdentifies the linked customer record in token exchange and organization-level User operations.
Registration resultLets your application track which records succeeded and resolve item-level errors.

Keep this mapping separate from expiring access tokens. Authorization and Security describes requesting and replacing those tokens.

When Creation Fails

If succeed is false, inspect the errors array for that response item. Common causes include:

  • Missing required fields.
  • Invalid field formats, such as an invalid phone number or birthdate.
  • Unsupported enum values.
  • Duplicate or invalid extId.

Log enough information to troubleshoot the request, but do not log access tokens, client secrets, or unnecessary personal data.

Request Customer Access

Once you have the User's extId, use POST /oauth/token with the token-exchange grant to request customer-level access. The exchange identifies the User as customer:{extId} and uses audience customer-api.

Follow the request example in Authorization and Security. Use the resulting customer token for customer-authenticated workflows. When it expires or is unavailable, request another through the same exchange using the stored mapping.

Implementation checklist
  • You use a service-level token with customer:w to register Users.
  • You send User records as an array, even when creating one linked customer record.
  • You provide required identity and demographic fields.
  • You check succeed and errors for every item in the response.
  • You store the returned extId.
  • You correlate registration results by extId or email and continue only for successful items.
  • You use customer-level tokens for customer-authenticated API requests and a service-level token for User status updates.
  • You obtain and replace customer access tokens through token exchange using the stored extId.

Managing User Status

After creation, use the stored extId to mark a User active or inactive. Managing User Status covers this organization-level operation and its required service-level token with customer:w scope.

Related Guides

Related API Reference


Did this page help you?