Skip to main content

EP. Get List of Categories

Fetch list of metric categories configured for your company.

info

Categories are defined at company level, each metric at any location can be assigned none, one or more categories.

URI

/api/v1/companies/{COMPANY_ID}/categories

Request Query Parameters

Request ParameterDescription
COMPANY_IDUUID assigned to your company

Response

The schema of the `data` section of JSON response
{
"type": "array",
"items": {
"type": "object",
"properties": {
"category_id": {
"type": "number"
},
"name": {
"type": "string"
}
}
}
}
Response ParameterDescription
category_idA unique identifier of a category.
nameCategory name.
Sample Response
{
"data": [
{
"category_id": 109,
"name": "Entries"
},
{
"category_id": 110,
"name": "Exits"
},
{
"category_id": 111,
"name": "Room Occupancy"
},
{
"category_id": 112,
"name": "Equipment Use"
},
{
"category_id": 113,
"name": "Exercise Length"
}
],
"success": true
}