Close an Incident
In this guide, we will close a monitorable incident once ADT has resolved it.Overview
ADT resolves an incident when it finishes handling the alarm. The incident's status becomes RESOLVED, and you receive a monitorable-incident:update webhook. Close the incident when you are done with it. A closed incident cannot change again.
Only a RESOLVED incident can be closed. If the incident is still OPEN, ADT is still working the alarm.
Getting Started
Before closing an incident, you need:
- An application with the
monitorable-incident:writescope. - An incident that ADT has resolved. 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 builders on this page.
Resolve the Incident in Sandbox
In production, ADT operators resolve the incident. In sandbox, add an event with a sandbox event type to play an operator story onto your incident. The story below cancels the alarm electronically, which resolves the incident within a few seconds:
Sandbox event types are for sandbox only. Do not send them in production.
Close the Incident
Send a PATCH request to the /monitorables/:monitorableId/incidents/:incidentId endpoint with CLOSED as the status. You can add an optional reason of up to 255 characters, and you can send camera media in the same request. The builder below leaves out media. See Attaching media for its shape.
Response
Upon success, you'll receive the closed incident:
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"partnerId": "550e8400-e29b-41d4-a716-446655440001",
"monitorableId": "550e8400-e29b-41d4-a716-446655440002",
"status": "CLOSED",
"resolvedAt": "2024-01-15T10:40:00Z",
"closedAt": "2024-01-15T10:45:00Z",
"reason": "Customer confirmed a false alarm",
"observedAt": "2024-01-15T10:30:00Z",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:45:00Z"
}
What Happens Next
- The incident moves from
RESOLVEDtoCLOSED.closedAtis set, andreasonis set if you sent one. - You receive a
monitorable-incident:updatewebhook. - The next alarm at the monitorable opens a new incident.
Closing an incident that is already CLOSED returns it unchanged, and you receive no webhook.
Close the Incident with an Event
If your device or system reports the end of an incident as an event, add an event with the CLOSE_INCIDENT type to the incident instead of sending a PATCH request. Any event type with the CLOSE_INCIDENT behavior works the same way. List yours with GET /v1/event-types.
You receive the created event in the response. The incident moves from RESOLVED to CLOSED with no reason, and you receive a monitorable-incident:update webhook. The event is not sent to ADT.
Unlike a PATCH request, a CLOSE_INCIDENT event for an incident that is already CLOSED returns a 409. A CLOSE_INCIDENT event can only be added to an existing incident. It cannot be sent as a standalone event or when creating an incident.
Other Ways an Incident Closes
You don't always need to close an incident yourself:
- Inactivity: Hyperion closes an incident after 30 minutes with no new events and no new operator actions. It has
closedAtset and noreason. - A new incident: Creating an incident closes the earlier one on the monitorable without a
reason.
Troubleshooting
| Status | Cause |
|---|---|
| 400 | The body has neither status nor media |
| 400 | The CLOSE_INCIDENT 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 still OPEN. Wait for ADT to resolve it |
| 409 | media was sent for a CLOSED incident |
| 409 | A CLOSE_INCIDENT event was sent for a CLOSED incident |
Conclusion
You've closed a resolved incident. Its record and operator actions stay available to read.
Next Steps
- Sandbox Incident Flows - Practice the full operator story in sandbox
- Encrypt Incidents - Close incidents with encrypted requests
Learn More
Related Concepts
- Monitorable Incidents - Incident status, actions, and webhooks
API Reference
- Update Monitorable Incident - Close or update an incident
- Get Monitorable Incident - Retrieve an incident