Skip to content

Alert channels

DELETE /darkcrawl/v1/channels/{channel_id}

Copy page

Delete a channel and its deliveries.

DELETE /darkcrawl/v1/channels/{channel_id}

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
channel_idstringRequired

Request

bash
curl -X DELETE https://api.darkcrawl.dev/darkcrawl/v1/channels/CHANNEL_ID \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"

Response

Status 200.

Response
{
  "deleted": true
}

Errors

CodeStatus
NOT_FOUND404
CONFLICT409

What each code means, and what to do about it: Errors.

Notes

  • A channel that a monitor or a watch still names is not deleted: the call is 409 CONFLICT, and details lists the ids that use it. Take it off them first.
  • An unknown id, and another company's channel, answer 404 NOT_FOUND.