Users
Create and manage users.
A User represents an end-customer whose body scans, 3D assets, and body composition metrics you manage through the Prism Hosted API. Each user can have multiple scans over time, which are linked to this user record.
All Users endpoints require the following headers:
accept: application/json;v=1
authorization: Bearer {{API_KEY}}
content-type: application/jsonReplace {{API_KEY}} with your Prism API key for the selected environment.
This operation creates a new user in the Hosted API. If a user with the same token already exists, their meta data is updated instead of creating a duplicate.
After a user is registered, you can create scans for this user with the /scans endpoint by providing the same token.
The token is the unique identifier of the user in your system. It must not contain an email address or any other personally identifiable information (PII).
Deprecated. The email address of the user. Do not set this field in new integrations.
A unique token for the user provided by the partner. Must not contain email addresses or other PII.
unique-user-tokenThe user's sex.
malePossible values: The user's geographical region.
north_americaPossible values: The user's U.S. state of residence, if applicable.
CaliforniaThe user's birth date (ISO date, format YYYY-MM-DD).
1990-01-01Indicates whether the user has consented to their data being used for research.
trueThe unique ID of the user in the Prism Hosted API.
unique-user-idThe user's sex..
malePossible values: The user's geographical region.
north_americaPossible values: The user's U.S. state of residence, if applicable.
CaliforniaThe user's birth date (ISO date, format YYYY-MM-DD).
1990-01-01A unique token for the user provided by the partner. Must not contain email addresses or other PII.
unique-user-tokenDeprecated. The email address of the user. Do not set this field in new integrations.
Indicates whether the user has consented to their data being used for research.
truePOST /users HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 311
{
"email": "",
"token": "unique-user-token",
"weight": {
"value": 80,
"unit": "kg"
},
"targetWeight": {
"value": 80,
"unit": "kg"
},
"height": {
"value": 1.8,
"unit": "m"
},
"sex": "male",
"region": "north_america",
"usaResidence": "California",
"birthDate": "1990-01-01",
"researchConsent": true,
"termsOfService": {
"accepted": true,
"version": "1"
}
}{
"id": "unique-user-id",
"sex": "male",
"region": "north_america",
"usaResidence": "California",
"birthDate": "1990-01-01",
"weight": {
"value": 80,
"unit": "kg"
},
"targetWeight": {
"value": 70,
"unit": "kg"
},
"height": {
"value": 1.8,
"unit": "m"
},
"token": "unique-user-token",
"email": "",
"researchConsent": true
}This operation returns the meta data of a specific user identified by the partner-provided token.
Optionally, you can use the unit-system query parameter to receive values in metric or imperial units.
A unique token for the user provided by the partner. It must not contain an email address or any other PII.
unique-user-tokenThe unit system in which values will be returned.
The unique ID of the user in the Prism Hosted API.
unique-user-idThe user's sex..
malePossible values: The user's geographical region.
north_americaPossible values: The user's U.S. state of residence, if applicable.
CaliforniaThe user's birth date (ISO date, format YYYY-MM-DD).
1990-01-01A unique token for the user provided by the partner. Must not contain email addresses or other PII.
unique-user-tokenDeprecated. The email address of the user. Do not set this field in new integrations.
Indicates whether the user has consented to their data being used for research.
trueGET /users/{token} HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "unique-user-id",
"sex": "male",
"region": "north_america",
"usaResidence": "California",
"birthDate": "1990-01-01",
"weight": {
"value": 80,
"unit": "kg"
},
"targetWeight": {
"value": 70,
"unit": "kg"
},
"height": {
"value": 1.8,
"unit": "m"
},
"token": "unique-user-token",
"email": "",
"researchConsent": true
}This operation deletes a specific user identified by the partner-provided token.
After deletion, the user can no longer be used for new scans or future me predictions.
A unique token for the user provided by the partner. It must not contain an email address or any other PII.
unique-user-tokenThe unique ID of the user in the Prism Hosted API.
unique-user-idThe user's sex..
malePossible values: The user's geographical region.
north_americaPossible values: The user's U.S. state of residence, if applicable.
CaliforniaThe user's birth date (ISO date, format YYYY-MM-DD).
1990-01-01A unique token for the user provided by the partner. Must not contain email addresses or other PII.
unique-user-tokenDeprecated. The email address of the user. Do not set this field in new integrations.
Indicates whether the user has consented to their data being used for research.
trueDELETE /users/{token} HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "unique-user-id",
"sex": "male",
"region": "north_america",
"usaResidence": "California",
"birthDate": "1990-01-01",
"weight": {
"value": 80,
"unit": "kg"
},
"targetWeight": {
"value": 70,
"unit": "kg"
},
"height": {
"value": 1.8,
"unit": "m"
},
"token": "unique-user-token",
"email": "",
"researchConsent": true
}This operation updates the meta data of a specific user identified by the partner-provided token.
Send only the fields you want to change in the request body; all other fields remain unchanged. The token itself cannot be changed by this operation.
A unique token for the user provided by the partner. It must not contain an email address or any other PII.
unique-user-tokenDeprecated. The email address of the user. Do not set this field in new integrations.
A unique token for the user provided by the partner. Must not contain email addresses or other PII.
unique-user-tokenThe user's sex.
malePossible values: The user's geographical region.
north_americaPossible values: The user's U.S. state of residence, if applicable.
CaliforniaThe user's birth date (ISO date, format YYYY-MM-DD).
1990-01-01Indicates whether the user has consented to their data being used for research.
trueThe unique ID of the user in the Prism Hosted API.
unique-user-idThe user's sex..
malePossible values: The user's geographical region.
north_americaPossible values: The user's U.S. state of residence, if applicable.
CaliforniaThe user's birth date (ISO date, format YYYY-MM-DD).
1990-01-01A unique token for the user provided by the partner. Must not contain email addresses or other PII.
unique-user-tokenDeprecated. The email address of the user. Do not set this field in new integrations.
Indicates whether the user has consented to their data being used for research.
truePATCH /users/{token} HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 262
{
"email": "",
"token": "unique-user-token",
"weight": {
"value": 80,
"unit": "kg"
},
"targetWeight": {
"value": 80,
"unit": "kg"
},
"height": {
"value": 1.8,
"unit": "m"
},
"sex": "male",
"region": "north_america",
"usaResidence": "California",
"birthDate": "1990-01-01",
"researchConsent": true
}{
"id": "unique-user-id",
"sex": "male",
"region": "north_america",
"usaResidence": "California",
"birthDate": "1990-01-01",
"weight": {
"value": 80,
"unit": "kg"
},
"targetWeight": {
"value": 70,
"unit": "kg"
},
"height": {
"value": 1.8,
"unit": "m"
},
"token": "unique-user-token",
"email": "",
"researchConsent": true
}This operation returns all recorded terms of service acceptances for a specific user.
You identify the user by the partner-provided token in the path parameter. Use this endpoint to audit which terms versions a user has accepted and when.
A unique token for the user provided by the partner. It must not contain an email address or any other PII.
unique-user-tokenGET /users/{token}/terms HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"userId": "text",
"userToken": "text",
"accepted": true,
"version": "text",
"acceptanceDate": "text"
}
]This operation records a terms of service acceptance for a specific user.
You identify the user by the partner-provided token in the path parameter. Provide the version of the terms in the request body; the API stores the acceptance state and timestamp.
A unique token for the user provided by the partner. It must not contain an email address or any other PII.
unique-user-tokenPOST /users/{token}/terms HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"version": "text"
}{
"userId": "text",
"userToken": "text",
"accepted": true,
"version": "text",
"acceptanceDate": "text"
}Last updated
