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 organisation, 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