API Reference 1.0
Last updated
Last updated
This operation registers a new scan in Prism. A scan id is returned, which will be used in subsequent requests.
After registering a scan, capture data must be uploaded.
IMPORTANT: The user of this scan should be updated with current information (e.g. weight) before calling this operation.
/scans
The id for the device config used to produce the scan
36b516c7-e598-40a2-9b9a-2016364657ab
The id for the asset config used to produce the scan
6dbade37-bb49-449f-bb8b-7bc9226a028d
The id for the user who is to be scanned
7a50198f-d866-4772-9c2e-1b2ff8408128
Various consent flags for the scan. If not provided, scan is opted out of all consent fields.
{"fullResearch":true}
/scans/{scanId}
/users
The user's birth year
1990
Describes the user's sex
female
male
, female
, neutral
, undefined
Describes the region where the user is being registered
north_america
africa
, asia
, caribbean
, central_america
, europe
, north_america
, oceania
, south_america
, unspecified
Describes the user's weight in kilograms (kg) or pounds (lb)
{"value":80,"unit":"kg"}
Describes the user's height in meters (m) or inches (in)
{"value":1.7,"unit":"m"}
/users/{userId}
The unit in which the weight will be returned
kg
, lb
The unit in which the height will be returned
m
, in
IMPORTANT: A user should be updated with current information (e.g. weight) before the creation a new scan.
/users/{userId}
The unit in which the weight will be returned
kg
, lb
The unit in which the height will be returned
m
, in
The user's birth year
1990
Describes the user's sex
female
male
, female
, neutral
, undefined
Describes the region where the user is being registered
north_america
africa
, asia
, caribbean
, central_america
, europe
, north_america
, oceania
, south_america
, unspecified
Describes the user's weight in kilograms (kg) or pounds (lb)
{"value":80,"unit":"kg"}
Describes the user's height in meters (m) or inches (in)
{"value":1.7,"unit":"m"}
This operation tells Prism to take validated capture data and produce a body avatar asset that can then be downloaded.
IMPORTANT: The generation of a fitted body asset will be automatically initiated upon successful completion.
NOTE: Capture data must already be in a validated state, or this request will return an error.
/scans/{scanId}/body
/scans/{scanId}/body
Download URLs will be valid for one hour. New URLs may be generated with further requests to this endpoint
/scans/{scanId}/body/download-url
The generation of a fitted body asset is automatically initiated upon successful completion of a Body asset.
/scans/{scanId}/fitted-body
/scans/{scanId}/measurements
This operation tells Prism to take a Fitted Body asset and produce a Measurements asset that can then be downloaded.
NOTE: This request will return an error if a Fitted Body has not already been successfully created. This can be generated by requesting a Body Asset, a process that automatically creates a Fitted Body.
/scans/{scanId}/measurements
Download URLs will be valid for one hour. New URLs may be generated with further requests to this endpoint
/scans/{scanId}/measurements/download-url
/body-shape-prediction/{bodyShapePredictionId}
Download URLs will be valid for one hour. New URLs may be generated with further requests to this endpoint
/body-shape-prediction/{bodyShapePredictionId}/download-url
Download URLs will be valid for one hour. New URLs may be generated with further requests to this endpoint
/body-shape-prediction/{bodyShapePredictionId}/download-url
Upload URLs will be valid for one hour. New URLs may be generated with further requests to this endpoint
Note: Capture data should be packaged in a zip file format.
/scans/{scanId}/upload-url
The type of input resource to upload to the system (defaults to capture). The following types are possible:
capture
: The input resource is captured data from a scanbody
: The input resource is a body ply filecapture
capture
, body
, none