Retrieve a Vitals Template
const url = 'https://api.upvio.com/v1/businesses/example/vitals/templates/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.upvio.com/v1/businesses/example/vitals/templates/example \ --header 'Authorization: Bearer <token>'Retrieve a vitals template by ID.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The ID of the Business.
The ID of the Vitals Template.
Responses
Section titled “Responses”A Vitals Template.
object
object
The unique identifier for the template.
Time when the resource was created (ISO 8601 format).
Time when the resource was last updated (ISO 8601 format).
The name of the template.
An optional description of the template.
The number of credits consumed per scan using this template.
The metrics included in this template.
The number of links using this template.
When the template was archived, if applicable.
Example
{ "data": { "metrics": [ "A_BODY_SHAPE_INDEX" ] }}The request is invalid.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "BadRequestError", "title": "Business ID does not match API key" }}The API key is missing or invalid, or the Business cannot be accessed with it.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 403, "type": "UnauthorizedError", "title": "Invalid API token" }}Vitals Template not found.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "NotFoundError", "title": "Vitals Template not found" }}