Our API gives you the power to automatically create an incident from another system, such as a monitoring tool like DataDog, or a ticketing system like Zendesk. This is valuable because it means you spend less time starting your incident process, and more time resolving the issue. To show how easy this can be to set up, we’ll walk you through a simple example where we create an incident through the API.Documentation Index
Fetch the complete documentation index at: https://docs.incident.io/llms.txt
Use this file to discover all available pages before exploring further.
Step 1: generate an API key in incident.io.
Head to Settings → API keys in the dashboard and generate a key withCreate incidents enabled.
Step 2: fetch your severity configuration.
We require you to declare the severity of your incident during creation, by supplying a severity ID in the payload. Because severities are custom to each organization, you’ll have to make a call to fetch your severities first. This will be in the form of a HTTP GET request, using the API key you generated earlier for Bearer token authentication.Step 3: create your incident!
Using the same authentication, you then need to make a HTTP POST request to create the incident. You can find our required fields in the API docs, but at the time of writing this includes:- Idempotency key. This needs to be unique for every incident, to ensure we don’t accidentally create duplicate incidents.
- Severity ID. This is what you obtained in step 2.
- Visibility. This is an enum of either
public(anyone can access the incident) orprivate(only invited users have access).
#api channel in the incident.io Community