API reference
Delete an incident
Delete a manual incident and its updates from your Uptenna status page with the API. Incidents opened by a monitor's checks can't be deleted.
DELETE https://uptenna.com/v1/incidents/{id}
Remove a manual incident and its updates from the status page. Automatic incidents can't be deleted: they're the monitor's history.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The incident's id (inc_…). |
Example request
curl -X DELETE "https://uptenna.com/v1/incidents/inc_W3p8Zq1MvRtY" \
-H "Authorization: Bearer $UPTENNA_API_KEY"const res = await fetch("https://uptenna.com/v1/incidents/inc_W3p8Zq1MvRtY", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.UPTENNA_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();Response
Returns 200 OK.
{
"id": "inc_W3p8Zq1MvRtY",
"deleted": true
}Errors
Errors look like { "error": { "code", "message" } } (see Errors).
| Status | Code | When |
|---|---|---|
| 409 | automatic_incident | The incident comes from a monitor's checks: only manual incidents can be changed or deleted. |
| 404 | not_found | No incident with this id in your account. |
| 401 | unauthorized | The Authorization header is missing, malformed, or the key is unknown or revoked. |
| 429 | rate_limited | More than 120 requests in 60 seconds with this key. Wait for the Retry-After header's seconds. |