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.
Send one or more Users to the customer creation endpoint.
Store extId so your system can connect each User to the InsideTracker customer record.
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
| Requirement | Why you need it |
|---|---|
Service-level access token with customer:w | Required to register linked customer records. |
| User identity data | Required to create the linked customer record. |
| Secure backend credential storage | Required to protect the service-level token used for registration. |
| User mapping strategy | Required to connect your User record to the InsideTracker customer record. |
Use the sandbox environment while building and testing:
https://api.sandbox.insidetracker.comEndpoint
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
| Field | Required? | Description |
|---|---|---|
firstName | Required | User's first name. |
lastName | Required | User's last name. |
email | Required | User's email address. |
phone | Required | User's phone number. Use a + followed by digits. |
birthdate | Required | User's birthdate in YYYY-MM-DD format. |
biologicalSex | Required | Allowed values: MALE, FEMALE. |
ethnicity | Required | User's ethnicity value. Use the API Reference for the current allowed values. |
measurementSystem | Required | User's preferred measurement system. Allowed values: METRIC, IMPERIAL. |
extId | Optional | External UUID to attach to the customer record. If omitted, InsideTracker generates one. |
timezone | Optional | User's timezone. |
heightCm | Optional | User's height in centimeters. |
weightKg | Optional | User's weight in kilograms. |
address | Optional | User'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
}
]| Field | What to do with it |
|---|---|
succeed | Check whether that User was registered successfully. |
errors | Handle business-level errors for a failed item. This field is null when succeed is true. |
extId | Store the successful result's identifier as the durable mapping for later requests. |
email | Use with extId to correlate the response item to the submitted User. |
status | The 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:
| Value | Why it matters |
|---|---|
| Your internal User ID | Lets your application find the User. |
Returned extId | Identifies the linked customer record in token exchange and organization-level User operations. |
| Registration result | Lets 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:wto 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
succeedanderrorsfor every item in the response. - You store the returned
extId. - You correlate registration results by
extIdoremailand 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
- Register customer accounts —
POST /enterprise/customers/sa/v1/customers/register - Token request endpoint —
POST /oauth/token
Updated about 1 month ago