Skip to content

Alert channels

POST /darkcrawl/v1/channels/{channel_id}/test

Copy page

Send a test alert to a channel now.

POST /darkcrawl/v1/channels/{channel_id}/test

Authentication: your key as a bearer token.

Path parameters

FieldTypeRequiredDefault
channel_idstringRequired

Request

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

Response

Status 200.

Response
{
  "delivered": true,
  "status": 200,
  "error": null
}

Errors

CodeStatus
NOT_FOUND404
CONFLICT409

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

Notes

  • The test holds no page text. The call waits for the receiver's answer: status is the status the receiver answered with, and error is a code when the test did not get through.
  • A test is 409 CONFLICT while a send to the channel is in flight. Try again.
  • An unknown id, and another company's channel, answer 404 NOT_FOUND.