---
title: "Send one test alert to a channel and record the result"
method: POST
path: "/notification-channels/{id}/test"
tags: ["Notification Channels"]
---

# Send one test alert to a channel and record the result

`POST /notification-channels/{id}/test`

## Request

- Base URL: `https://realuptime.io/api/v1`
- URL: `https://realuptime.io/api/v1/notification-channels/{id}/test`
- Auth: HTTP bearer

Sends a real notification to the channel's destination. A destination that accepts it verifies the channel. The response is 200 whether or not the destination accepted: read ok and error.

## Path parameters

- `id` string, uuid, required

## Response `200`

What the destination answered, and the channel as it reads afterwards.

- object
  - `ok` boolean, required
  - `error` string, nullable, required
  - `channel` object, required
    - `id` string, required
    - `account_id` string, required
    - `type` string, required
    - `name` string, required
    - `config_summary` string, required
    - `verified_at` string, nullable, required
    - `disabled_at` string, nullable, required
    - `last_test_at` string, nullable, required
    - `last_test_ok` boolean, nullable, required
    - `last_test_error` string, nullable, required
    - `created_at` string, required
    - `updated_at` string, required
    - `provider_configured` boolean, required
    - `type_label` string, required

## Other responses

- `400`: The email and slack destinations have no test send. - `RU-3007` Invalid notification channel request: https://realuptime.io/kb/errors/ru-3007
- `401`: Missing, invalid, or revoked API key. - `RU-1001` Missing API credentials: https://realuptime.io/kb/errors/ru-1001 - `RU-1002` Invalid or revoked API key: https://realuptime.io/kb/errors/ru-1002
- `403`: This key is read-only, or this key is IP-restricted and the request came from outside its allowlist. - `RU-1004` API key is read-only: https://realuptime.io/kb/errors/ru-1004 - `RU-1007` API key is restricted to an IP allowlist: https://realuptime.io/kb/errors/ru-1007
- `404`: No such channel on this account. - `RU-3008` Notification channel not found: https://realuptime.io/kb/errors/ru-3008
- `429`: Per-key rate limit exceeded, a Free account's per-account request budget exceeded, or too many failed authentication attempts. - `RU-2003` API write rate limit exceeded: https://realuptime.io/kb/errors/ru-2003 - `RU-2001` Too many failed authentication attempts: https://realuptime.io/kb/errors/ru-2001

---

[API](https://skmtc.dev/realuptime/apis/realuptime-api-v1.md) · [All operations](https://skmtc.dev/realuptime/apis/realuptime-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/realuptime/apis/realuptime-api-v1/revisions/51e481084700?raw)
