Future Me
Create Future Me predictions based on user scans.
Use these endpoints to generate Future Me predictions that simulate how a user’s body shape and composition could change under different target conditions (for example, a lower body weight or body fat percentage). Predictions are always linked to an existing scan and can be queried or deleted independently of other scans.
All Future Me 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 registers a new Future Me body shape prediction for a specific scan.
Use this endpoint to simulate how a user's body shape and composition could change for a given goal (for example, a lower target weight or body fat percentage).
Note: Either a target weight or a target body fat percentage must be specified, but not both at the same time.
The unit system in which values will be returned.
The unique ID of the scan within the Hosted API on which the body shape prediction is based.
unique-scan-idThe prediction type that should be used for the prediction.
weight_lossPossible values: The target weight in kg for the prediction. This or targetBodyfat should be specified, but not both.
50The target body fat percentage for the prediction. This or targetWeight should be specified, but not both.
20The unique ID of the body shape prediction.
unique-body-shape-prediction-idThe current body shape prediction status.
PROCESSINGPossible values: The unique ID of the scan within the Hosted API on which the body shape prediction is based.
unique-scan-idThe prediction type of the prediction.
weight_lossPossible values: Target body weight for the prediction.
50Target body fat for the prediction.
20The date and time when the body shape prediction was created.
The date and time when the body shape prediction was last updated.
POST /body-shape-prediction HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20
}{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}This operation returns the current status and details of a specific body shape prediction.
Use this endpoint to poll the processing status after creating a prediction or to retrieve its latest state for display in your application.
The unique ID of the body shape prediction.
unique-body-shape-prediction-idThe unit system in which values will be returned.
The unique ID of the body shape prediction.
unique-body-shape-prediction-idThe current body shape prediction status.
PROCESSINGPossible values: The unique ID of the scan within the Hosted API on which the body shape prediction is based.
unique-scan-idThe prediction type of the prediction.
weight_lossPossible values: Target body weight for the prediction.
50Target body fat for the prediction.
20The date and time when the body shape prediction was created.
The date and time when the body shape prediction was last updated.
GET /body-shape-prediction/{bodyShapePredictionId} HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}This operation deletes a specific body shape prediction. After deletion, the body shape prediction and its associated data are no longer available for retrieval or reporting.
The unique ID of the body shape prediction.
unique-body-shape-prediction-idThe unique ID of the body shape prediction.
unique-body-shape-prediction-idThe current body shape prediction status.
PROCESSINGPossible values: The unique ID of the scan within the Hosted API on which the body shape prediction is based.
unique-scan-idThe prediction type of the prediction.
weight_lossPossible values: Target body weight for the prediction.
50Target body fat for the prediction.
20The date and time when the body shape prediction was created.
The date and time when the body shape prediction was last updated.
DELETE /body-shape-prediction/{bodyShapePredictionId} HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}This operation returns all body shape predictions associated with a specific scan.
Use this endpoint to list every Future Me prediction that has been created for the scan, for example to show a history of different target scenarios (weight or body fat goals) in your application.
The unique ID of the scan.
unique-scan-idThe unit system in which values will be returned.
Sorting order applied to the returned predictions (for example, ascending or descending by creation time).
The unique ID of the body shape prediction.
unique-body-shape-prediction-idThe current body shape prediction status.
PROCESSINGPossible values: The unique ID of the scan within the Hosted API on which the body shape prediction is based.
unique-scan-idThe prediction type of the prediction.
weight_lossPossible values: Target body weight for the prediction.
50Target body fat for the prediction.
20The date and time when the body shape prediction was created.
The date and time when the body shape prediction was last updated.
GET /scans/{scanId}/body-shape-predictions HTTP/1.1
Host: api.hosted.prismlabs.tech
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "unique-body-shape-prediction-id",
"status": "PROCESSING",
"scanId": "unique-scan-id",
"predictionType": "weight_loss",
"targetWeight": 50,
"targetBodyfat": 20,
"createdAt": "text",
"updatedAt": "text"
}
]Last updated
