Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

ThingsBoard alarm-controller API

Alarm

ThingsBoard alarm-controller API is one of 58 APIs that ThingsBoard publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 11 JSON Schema definitions.

Tagged areas include alarm-controller. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 11 JSON Schemas.

This API exposes 14 operations across 13 paths, and defines 12 schemas. It is described by OpenAPI 3.1.0, at version 4.3.0.3DEMO.

Requests are made against 2 base URLs: https://demo.thingsboard.io, http://localhost:8080.

14 operations 13 paths 12 schemas 2 DELETE8 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
4.3.0.3DEMO
Servers
https://demo.thingsboard.io
http://localhost:8080
Authentication
HTTP Loginpassword, API Key
License
Resource Areas
1

Authentication & Security 2

ThingsBoard alarm-controller API declares 2 security schemes for authenticating requests. It uses HTTP loginpassword authentication (HTTP login form). An API key is passed in the header as X-Authorization (API key form).

  • HTTP login form — Enter Username / Password
  • API key form — Enter the API key value with 'ApiKey' prefix in format: ApiKey Example: ApiKey tb5te51SkLRYpjGrujUGwqkjFvooWBlQpVe2An2Dr3w13wjfxDW NOTE: Use only ONE authentic…

Paths & Operations 14

Across 13 paths, the API surfaces 14 operations — 2 DELETE, 8 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

alarm-controller 14

Alarm

POST
/api/alarm
Create or Update Alarm (saveAlarm)
saveAlarm body → 200
POST
/api/alarm/{alarmId}/clear
Clear Alarm (clearAlarm)
clearAlarm 1 param → 200
POST
/api/alarm/{alarmId}/assign/{assigneeId}
Assign/Reassign Alarm (assignAlarm)
assignAlarm 2 params → 200
POST
/api/alarm/{alarmId}/ack
Acknowledge Alarm (ackAlarm)
ackAlarm 1 param → 200
GET
/api/v2/alarms
Get All Alarms (getAllAlarmsV2)
getAllAlarmsV2 11 params → 200
GET
/api/v2/alarm/{entityType}/{entityId}
Get Alarms (getAlarmsV2)
getAlarmsV2 13 params → 200
GET
/api/alarms
Get All Alarms (getAllAlarms)
getAllAlarms 11 params → 200
GET
/api/alarm/{entityType}/{entityId}
Get Alarms (getAlarms)
getAlarms 13 params → 200
GET
/api/alarm/{alarmId}
Get Alarm (getAlarmById)
getAlarmById 1 param → 200
DELETE
/api/alarm/{alarmId}
Delete Alarm (deleteAlarm)
deleteAlarm 1 param → 200
GET
/api/alarm/types
Get Alarm Types (getAlarmTypes)
getAlarmTypes 4 params → 200
GET
/api/alarm/info/{alarmId}
Get Alarm Info (getAlarmInfoById)
getAlarmInfoById 1 param → 200
GET
/api/alarm/highestSeverity/{entityType}/{entityId}
Get Highest Alarm Severity (getHighestAlarmSeverity)
getHighestAlarmSeverity 5 params → 200
DELETE
/api/alarm/{alarmId}/assign
Unassign Alarm (unassignAlarm)
unassignAlarm 1 param → 200

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are AlarmInfo (26 properties), Alarm (22 properties), PageDataEntitySubtype (4 properties), AlarmAssignee (4 properties). Each schema is shown below with its type and property counts.

AlarmId
object
2 properties 2 required
JsonNode
A value representing the any type (object or primitive)
AlarmInfo
object
26 properties 7 required
PageDataEntitySubtype
object
4 properties
UserId
object
2 properties 2 required
Alarm
object
22 properties 7 required
PageDataAlarmInfo
object
4 properties
AlarmAssignee
object
4 properties
EntitySubtype
object
3 properties
TenantId
object
2 properties 2 required
CustomerId
object
2 properties 2 required
EntityId
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thingsboard-alarm-controller-api-openapi.yml Raw ↑

Other APIs ThingsBoard publishes across the network.

ThingsBoard admin-controller API
ThingsBoard ai-model-controller API
ThingsBoard alarm-comment-controller API
ThingsBoard api-key-controller API
ThingsBoard asset-controller API
ThingsBoard asset-profile-controller API
ThingsBoard audit-log-controller API
ThingsBoard auth-controller API
ThingsBoard calculated-field-controller API
ThingsBoard component-descriptor-controller API
ThingsBoard customer-controller API
ThingsBoard dashboard-controller API