Prerequisites
To use this feature, you must use an API Key with a specific scope. This ensures that incidents aren’t accidentally closed without a proper review unless explicitly authorized.- Navigate to Settings > API keys
- Create a new API Key
- Ensure the key has the Close incidents by opting out of the post-incident flow permission enabled
How to use it
You can transition the incident by using the Edit Incident endpoint (POST /v2/incidents/{id}/actions/edit).
- From: The incident must currently be in a valid post-incident status (e.g.,
Resolved,Fixing) - To: The target status must be
Closed
- The incident status moves to Closed
- The incident is marked as “opted out” of the post-incident flow
Resolving incidents
You can resolve active incidents using the same Edit Incident endpoint by setting the status to a post-incident or closed status:- To a post-incident status (e.g.
Resolved): the incident enters the post-incident flow and tasks are created as normal. The status must belong to the post-incident flow that applies to this incident. - Directly to closed: any configured post-incident flow is skipped entirely. This requires the same Close incidents by opting out of the post-incident flow permission described above.