Create an Incident
In this guide, we will open a monitorable incident for a situation ADT should handle.Overview
A monitorable incident is the record that ADT is handling an alarm at a monitorable. Create one when you detect a situation at a monitorable that ADT should work, such as an intrusion or a silent alert.
An incident opens with one or more events. While it is open, you can add more events to it, and ADT's operator actions attach to it. After ADT resolves it, you close it.
Getting Started
Before creating an incident, you need:
- An application with the
monitorable-incident:writeandmonitorable-incident:readscopes. If you haven't created an application yet, see the Create Application API Reference. - An activated monitorable. See Monitor Premises and Activate Service if you need one.
Once you have your application credentials, use the Set Access Token button in the navbar to configure your partner access token for the request builders on this page.
To receive updates as they happen, create a webhook subscribed to monitorable-incident:create, monitorable-incident:update, and monitorable-incident:action:create.
Create the Incident
Send a POST request to the /monitorables/:monitorableId/incidents endpoint. The request needs at least one event, and each event type must be enabled for the monitorable's type. You can also attach camera media to the incident and to each event. The builder below leaves out media. See Creating an incident for an example.
Enter your monitorable ID in the path parameter field below and send the request:
To choose the incident ID yourself, add an id query parameter with a UUID, such as ?id=3f2a9c1e-8b4d-4e7a-9c6f-1d2e3f4a5b6c. Hyperion returns 409 if an incident with that ID already exists.
Response
Upon successful creation, you'll receive the new incident. Keep its id to add events and close the incident later:
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"partnerId": "550e8400-e29b-41d4-a716-446655440001",
"monitorableId": "550e8400-e29b-41d4-a716-446655440002",
"status": "OPEN",
"observedAt": "2024-01-15T10:30:00Z",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
}
What Happens Next
- Any earlier incident on the monitorable that is not
CLOSEDis closed. You receive amonitorable-incident:updatewebhook for it. - The new incident starts as
OPEN. You receive amonitorable-incident:createwebhook. - Each event is sent to ADT for monitoring, and you receive an
event:createwebhook for it. - When ADT starts working the alarm, its operator actions attach to your incident. You receive a
monitorable-incident:action:createwebhook for each one.
A monitorable has only one active incident at a time. Creating a new incident
closes the earlier one without a reason.
Read the Incident
Load the incident's status and its operator actions at any time:
Troubleshooting
| Status | Cause |
|---|---|
| 400 | events is empty, or an event type is not enabled for the monitorable's type |
| 400 | events has no event type with the ALARM behavior |
| 400 | An event type with the CLOSE_INCIDENT behavior was sent |
| 403 | The access token is missing the monitorable-incident:write scope |
| 404 | The monitorable does not exist or belongs to a different partner |
| 409 | An incident with the id query parameter already exists |
| 409 | The monitorable is INACTIVE or CANCELLED |
Conclusion
You've opened a monitorable incident. ADT works the alarm and sends you its operator actions on the incident.
Next Steps
- Add Events to an Incident - Report what else happens while the incident is open
- Close an Incident - Close the incident after ADT resolves it
- Encrypt Incidents - Create and update incidents with encrypted requests
- Sandbox Incident Flows - Simulate ADT operator actions in sandbox
Learn More
Related Concepts
- Monitorable Incidents - Incident status, actions, and webhooks
- Events - Event types and structure
API Reference
- Create Monitorable Incident - Open an incident
- Get Monitorable Incident - Retrieve an incident
- List Monitorable Incident Actions - List operator actions