Skip to content
TriedDocs
Account

Delete alert

Delete an alert rule and its history.

DELETEhttps://api.tried.com.au/alerts/{id}

Deletes an alert rule. Its alert events are deleted with it.

Request#

Field Type Required Description
id string Yes Alert ID, for example alert_3f9a1c7e2b8d4a6f0e1c5b92.

Example request#

curl -X DELETE https://api.tried.com.au/alerts/alert_3f9a1c7e2b8d4a6f0e1c5b92 \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/alerts/alert_3f9a1c7e2b8d4a6f0e1c5b92", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
// res.status is 204
import os, requests

res = requests.delete(
    "https://api.tried.com.au/alerts/alert_3f9a1c7e2b8d4a6f0e1c5b92",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
# res.status_code is 204

Response#

204 No Content

The response has no body.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the analytics scope. Dashboard users with the member role get The member role is read-only.
404 No alert with that ID in the workspace: Alert <id> not found.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.

Retell compatibility#

Retell's public API reference has no alerting endpoints, so this route has no Retell SDK equivalent.