API reference
Delete a monitor
Delete an Uptenna monitor with the API. Its check history and incidents go with it and it leaves every status page. This can't be undone.
DELETE https://uptenna.com/v1/monitors/{id}
Remove a monitor with its check history and incidents, and take it off any status page. This can't be undone.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | The monitor's id (mon_…). |
Example request
curl -X DELETE "https://uptenna.com/v1/monitors/mon_Xk3v9QmT2bLp" \
-H "Authorization: Bearer $UPTENNA_API_KEY"const res = await fetch("https://uptenna.com/v1/monitors/mon_Xk3v9QmT2bLp", {
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": "mon_Xk3v9QmT2bLp",
"deleted": true
}Errors
Errors look like { "error": { "code", "message" } } (see Errors).
| Status | Code | When |
|---|---|---|
| 404 | not_found | No monitor 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. |