Add Events to an Incident
In this guide, we will add an event to a monitorable incident while ADT handles it.Overview
Add an event when something new happens during an incident you already opened, such as a second sensor tripping or new camera footage. ADT receives the event as part of the same incident, so the operator working the alarm sees it in context.
Getting Started
Before adding events, you need:
- An application with the
monitorable-incident:writescope. - An incident that is
OPENorRESOLVED. See Create an Incident if you need one.
Use the Set Access Token button in the navbar to configure your partner access token for the request builder on this page.
Add an Event
Send a POST request to the /monitorables/:monitorableId/incidents/:incidentId/events endpoint. The body is a single event, in the same shape as one entry in the events list when you create an incident. You can attach camera media to the event, and Hyperion merges it onto the incident by cameraId. The builder below leaves out media. See Attaching media for its shape.
Enter your monitorable and incident IDs below and send the request:
Response
Upon success, you'll receive the created event:
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"partnerId": "550e8400-e29b-41d4-a716-446655440001",
"monitorableId": "550e8400-e29b-41d4-a716-446655440002",
"systemStatus": "ACTIVE",
"type": "SILENT_ALERT",
"observedAt": "2024-01-15T10:32:00Z",
"createdAt": "2024-01-15T10:32:01Z",
"updatedAt": "2024-01-15T10:32:01Z"
}
What Happens Next
For an event type with the ALARM behavior:
- If the incident is
RESOLVED, it goes back toOPENandresolvedAtis cleared. You receive amonitorable-incident:updatewebhook. - The event is sent to ADT for monitoring, and you receive an
event:createwebhook for it. - The incident's 30-minute inactivity timer restarts.
A CLOSED incident does not accept events. Create a new incident instead.
Attach Media with an Event
To add new camera footage without raising a new alarm, send the event with the ATTACH_MEDIA type and your camera media. Any event type with the ATTACH_MEDIA behavior works the same way. List yours with GET /v1/event-types.
{
"type": "ATTACH_MEDIA",
"observedAt": "2024-01-15T10:35:00Z",
"media": [
{
"type": "CAMERA",
"cameraId": "camera-north-west",
"cameraName": "Camera - North West View",
"clipDiscoveryUrl": "https://media.example.com/v1/blob/sessions"
}
]
}
See Attaching media for the full media shape.
Hyperion merges the media onto the incident by cameraId and restarts the incident's 30-minute inactivity timer. The event is not sent to ADT as an alarm, and a RESOLVED incident stays RESOLVED. You can also include ATTACH_MEDIA events in the events list when you create an incident, alongside at least one alarm event.
To close the incident with an event instead, see Close the Incident with an Event.
Troubleshooting
| Status | Cause |
|---|---|
| 400 | The event type is not enabled for the monitorable's type |
| 403 | The access token is missing the monitorable-incident:write scope |
| 404 | The incident does not exist or belongs to a different monitorable |
| 409 | The incident is CLOSED |
| 409 | The monitorable is INACTIVE or CANCELLED |
Conclusion
You've added an event to an open incident. ADT sees it alongside the rest of the incident.
Next Steps
- Close an Incident - Close the incident after ADT resolves it
- Encrypt Incidents - Add events with encrypted requests
Learn More
Related Concepts
- Monitorable Incidents - Incident status, actions, and webhooks
API Reference
- Add Monitorable Incident Event - Add an event to an incident
- List Monitorable Incident Events - List events linked to an incident