API Reference v1.0
Last updated
Last updated
This operation registers a new user in hosted API. After a new user is registered, a scan for this user can be registered with /scans.
/users
The email address of the user
foo@bar.com
A unique token for the user provided by the partner
unique-user-token
The user's weight
{"value":80,"unit":"kg"}
The user's height
{"value":1.8,"unit":"m"}
The user's sex
male
male
, female
, neutral
, undefined
The user's region
north_america
africa
, asia
, caribbean
, central_america
, europe
, north_america
, oceania
, south_america
The user's state of residence
California
The user's birth date
1990-01-01
Whether the user has consented to their data being used for research
true
The terms of service
{"accepted":true,"version":"1"}
This operation updates the meta data for a specific user.
/users/{token}
A unique token for the user provided by the partner
unique-user-token
The email address of the user
foo@bar.com
A unique token for the user provided by the partner
unique-user-token
The user's weight
{"value":80,"unit":"kg"}
The user's height
{"value":1.8,"unit":"m"}
The user's sex
male
male
, female
, neutral
, undefined
The user's region
north_america
africa
, asia
, caribbean
, central_america
, europe
, north_america
, oceania
, south_america
The user's state of residence
California
The user's birth date
1990-01-01
Whether the user has consented to their data being used for research
true
/users/{userToken}/terms
/users/{userToken}/terms
/scans
This operation registers a new scan in hosted API.
/scans
A unique token for the user provided by the partner, that should be associated with the scan
unique-user-token
The name of the device configuration used for the scan
IPHONE_SCANNER
IPHONE_SCANNER
, ANDROID_SCANNER
The asset configuration used for the scan
The requested bodyfat method for the scan
coco
adam
, army
, army_athlete
, coco
, coco_bri
, coco_legacy
, extended_navy_thinboost
, tina_fit
This operation provides a specific asset url of a specific scan.
/scans/{scanId}/asset-urls/{assetType}
The unique ID of the scan
unique-scan-id
The specific asset type of the scan
preview-image
, model
, stripes
This operation provides the health report of a specific scan.
/scans/{scanId}/health-report
The unique ID of the scan
unique-scan-id
The unit system in which values will be returned
metric
, imperial
This operation registers a new body shape prediction for a specific scan.
NOTE: Either a target weight or a target body fat percentage (but not both) must be specified
/body-shape-prediction
The unique ID of the scan on which the prediction should be based on
unique-scan-id
The prediction type that should be used for the prediction
weight_loss
weight_loss
The target weight (in kg) for the prediction. This or 'targetBodyfat' should be specified
50
The target body fat percentage for the prediction. This or 'targetWeight' should be specified
20
This operation provides the status of a specific body shape prediction.
/body-shape-prediction/{bodyShapePredictionId}
The unique ID of the body shape prediction
unique-body-shape-prediction-id
This operation provides the asset urls of a specific body shape prediction.
/body-shape-prediction/{bodyShapePredictionId}/asset-urls
The unique ID of the body shape prediction
unique-body-shape-prediction-id