Control Center API
You can easily retrieve all settings and information available in the Control Center via an API. Below you will find the Swagger documentation. Here is an example: BMA Control Center
In general, we stick to the OAuth 2.0 Client Credentials Flow (Microsoft) documented here.
Make sure to include your Tenant ID as a header in the authentication flow.
How to get the URL for your specific API
To get the first part of the URL for your specific API documentation or Swagger UI, you can either contact our support team or retrieve it from the source code of your Control Center.
Note
In our example, the URL is:
Example
Retrieve device status
- call the Swagger UI
- the API call gives you information about the device status as follows
{
"boxStatus": {
"connectionState": "CONNECTED",
"runtimeState": "DISABLED"
},
"id": "676cac42-f3d6-416d-ac83-3f54f1c0bb43",
"name": "7th NE parking garage entrance",
"statusId": "676cac42-f3d6-416d-ac83-3f54f1c0bb43",
"tags": [
{
"name": "Roxxon Energy Corporation"
}
],
"type": "P100"
}
- the different statuses of the devices are defined as follows in the API documentation
Box Status
- you can also retrieve the status of the individual streams. The API provides the following results
[
{
"id": "fd02a4c9-5e55-4100-a2fd-d76d16993bce",
"name": "",
"model": "traffic-detector-urban-standard-fast",
"streamStatus": {
"state": "NOT_OPERATIONAL",
"errorReason": [
"ENGINE"
]
},
"enabled": true
}
]

