Incident Object

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.

PropertyTypeDescription
idStringId of the Incident
nameStringName of the Incident. Max 200 characters
descriptionStringDescription of the Incident. Max 5000 characters
typeStringType of Incident: device or variable
stateStringCurrent state, returned as its display name: Triggered, Acknowledged or Resolved
sourceStringautomatic if an Event created the Incident, manual if a user created it
severityStringSeverity of the Incident, from p0 (most severe) to p4 (least severe)
contextObjectData of the device and variable involved. See Context
organizationObjectOrganization object with the following keys: id, name, label and createdAt. null if the Incident has no organization
organizationIdStringDeprecated, use organization.id. Only present when the Incident has an organization
escalationPolicyObjectEscalation policy object with the following keys: id, name, label and enabled. null if there is none
assignedToObjectWho the Incident is assigned to. See Assigned To. null if unassigned
triggeredDateStringDate the Incident was triggered
acknowledgedDateStringDate the Incident was acknowledged, null if it hasn't been
resolvedDateStringDate the Incident was resolved, null if it hasn't been
lastCommentObjectThe most recent Comment of the Incident, null if there is none
createdAtStringDate the Incident was created
updatedAtStringDate 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:

KeyTypeDescription
trigger_idStringId of the Event trigger that created the Incident. null for manual Incidents
event_idStringId of the Event that created the Incident. null for manual Incidents
deviceObjectDevice with the keys id, name and label. Empty object if there is none
variableObjectVariable with the keys id, name, label and unit (automatic Incidents also include icon and color). Empty object if there is none
trigger_valueNumberValue 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.

typeIdentifying fieldFields added by the serverDescription
useruserIdusername, firstName, lastName, avatarUrlThe account Owner or a user of the account
contact-methodcontactMethodIdnameA contact method of the account
contact-method-by-tagtag—The contact methods with that tag
{
    "type": "user",
    "userId": "5d966dbbe694aa3a85c0cef7",
    "username": "jane.doe",
    "firstName": "Jane",
    "lastName": "Doe",
    "avatarUrl": null
}