Send a test notification
Changed onQueues a test message for the channel and returns the notification event that records it, with kind set to test. The test is the message an alert sends, with test wording and example figures, so what arrives shows what an alert will look like.
The service sends the test asynchronously through the channel's real delivery path, within seconds. A client reads the event again with GET /v1/ai-cost-management/notification-events/{eventId} to see the outcome. A test isn't retried, so if its first attempt fails, the event's error says why.
While the channel already has a pending test, the request returns that test instead of queueing another. Sending a test needs permission to edit the channel. If the organization has no notification channel with this identifier, or the identifier isn't a valid UUID, the request fails with 404.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The id of the notification channel.
Response
The notification event that records the test.
A channel test is a test message sent through a channel's real delivery path, with test wording and example figures, so what arrives shows what an alert will look like.
status shows where the test stands:
- pending: the test message is queued or being sent.
- delivered: Slack's webhook answered the test message with a 2xx status, or the test email was queued for every recipient at Konnect's email service. A later rejection, suppression, or bounce by the email service doesn't change this status.
- failed: the test message couldn't be delivered, and error says why. A test isn't retried, so its first failed attempt fails it.
A test message to one channel, still in progress.
A test message to one channel that Slack accepted, or that was queued for every email recipient.
A test message to one channel that failed.
Example response
{
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- info
endpoint added
- info