Describes the JSON object of an Incident.
An Incident in Ubidots tracks a problem with a device or variable from the moment it is triggered until it is resolved.
| Property | Type | Description |
|---|---|---|
| id | String | Id of the Incident |
| name | String | Name of the Incident. Max 200 characters |
| description | String | Description of the Incident. Max 5000 characters |
| type | String | Type of Incident: device or variable |
| state | String | Current state, returned as its display name: Triggered, Acknowledged or Resolved |
| source | String | automatic if an Event created the Incident, manual if a user created it |
| severity | String | Severity of the Incident, from p0 (most severe) to p4 (least severe) |
| context | Object | Data of the device and variable involved. See Context |
| organization | Object | Organization object with the following keys: id, name, label and createdAt. null if the Incident has no organization |
| organizationId | String | Deprecated, use organization.id. Only present when the Incident has an organization |
| escalationPolicy | Object | Escalation policy object with the following keys: id, name, label and enabled. null if there is none |
| assignedTo | Object | Who the Incident is assigned to. See Assigned To. null if unassigned |
| triggeredDate | String | Date the Incident was triggered |
| acknowledgedDate | String | Date the Incident was acknowledged, null if it hasn't been |
| resolvedDate | String | Date the Incident was resolved, null if it hasn't been |
| lastComment | Object | The most recent Comment of the Incident, null if there is none |
| createdAt | String | Date the Incident was created |
| updatedAt | String | Date the Incident was last updated |
{
"id": "689e21cb246a939d3a0c2ed5",
"name": "Freezer above threshold",
"description": "Temperature crossed 8 degrees for 10 minutes",
"type": "device",
"state": "Triggered",
"source": "automatic",
"severity": "p1",
"context": {
"trigger_id": "68a0b7e1246a939d3a0c2e01",
"event_id": "68a0b7e1246a939d3a0c2e00",
"variable": {
"id": "689e21cb246a939d3a0c2ed9",
"name": "Temperature",
"label": "temperature",
"unit": "°C",
"icon": "thermometer",
"color": "#E74C3C"
},
"device": {
"id": "689e21cb246a939d3a0c2ed7",
"name": "Freezer 01",
"label": "freezer-01"
},
"trigger_value": 9.4
},
"organizationId": "5d966d47e694aa3a85c0a6c5",
"organization": {
"id": "5d966d47e694aa3a85c0a6c5",
"name": "Cold Storage Inc.",
"label": "cold-storage-inc",
"createdAt": "2019-10-10T13:19:18.126000Z"
},
"escalationPolicy": null,
"assignedTo": {
"type": "user",
"userId": "5d966dbbe694aa3a85c0cef7",
"username": "jane.doe",
"firstName": "Jane",
"lastName": "Doe",
"avatarUrl": null
},
"triggeredDate": "2026-11-20T14:03:11.512000Z",
"acknowledgedDate": null,
"resolvedDate": null,
"lastComment": null,
"createdAt": "2026-11-20T14:03:11.512000Z",
"updatedAt": "2026-11-20T14:03:11.512000Z"
}Context
context is stored as written by the platform. Both automatic and manual Incidents carry the same keys:
| Key | Type | Description |
|---|---|---|
| trigger_id | String | Id of the Event trigger that created the Incident. null for manual Incidents |
| event_id | String | Id of the Event that created the Incident. null for manual Incidents |
| device | Object | Device with the keys id, name and label. Empty object if there is none |
| variable | Object | Variable with the keys id, name, label and unit (automatic Incidents also include icon and color). Empty object if there is none |
| trigger_value | Number | Value that triggered the Incident. null for manual Incidents |
Assigned To
assignedTo takes one of three shapes, told apart by type. When writing it, send only type and the identifying field; the server fills in the rest.
| type | Identifying field | Fields added by the server | Description |
|---|---|---|---|
user | userId | username, firstName, lastName, avatarUrl | The account Owner or a user of the account |
contact-method | contactMethodId | name | A contact method of the account |
contact-method-by-tag | tag | — | The contact methods with that tag |
{
"type": "user",
"userId": "5d966dbbe694aa3a85c0cef7",
"username": "jane.doe",
"firstName": "Jane",
"lastName": "Doe",
"avatarUrl": null
}
