Delete an alert

Deletes the specified alert from the current project.

Path Parameters
  • id
    Type: integerFormat: int32
    required

    The ID of the alert to delete.

Responses
  • application/json
  • application/json
  • application/json
Request Example for delete/v1/alerts/{id}
curl http://api.mailreach.co/api/v1/alerts/42 \
  --request DELETE \
  --header 'X-Api-Key: YOUR_SECRET_TOKEN'
{
  "id": 42,
  "channel": "SLACK",
  "events": [
    "ACCOUNT_DISCONNECTED",
    "SPAMCHECK_COMPLETED"
  ],
  "active": true,
  "hook_url": "https://example.com/hooks/mailreach",
  "slack_channel_id": 42,
  "automated_test_ids": [
    12,
    34
  ]
}