---
title: "Send test alert"
method: POST
path: "/alert_channels/{id}/test"
---

# Send test alert

`POST /alert_channels/{id}/test`

## Request

- Base URL: `https://app.yoping.me/api/v1`
- URL: `https://app.yoping.me/api/v1/alert_channels/{id}/test`
- Auth: API key in cookie `yp_session`

Fires a test alert to a verified, enabled channel. The optional body names the monitor the test was fired from. Capped at 5 test alerts per account per hour (429 beyond that); an unverified or disabled channel returns 400.

## Path parameters

- `id` string, required

## Request body

- TestChannelRequest
  - `monitor_id` string: Optional monitor the test was fired from; the test alert names that monitor. An unknown or foreign id is ignored.

## Response `200`

Success with a human-readable message.

- object: Uniform success envelope: the payload is always under `data`.
  - `data` MessageData, required
    - `message` string, required

## Other responses

- `400`: Invalid input (code `validation_failed`): malformed JSON, a missing or out-of-range field, bad pagination parameters, or a rejected token.
- `401`: Not authenticated (code `unauthorized`): missing, invalid, or expired session; invalid login credentials; or a Bearer token, which this surface rejects.
- `403`: Forbidden. Code `forbidden` for a cross-origin (CSRF) request blocked by origin validation or for API-key management attempted without a browser session; `account_suspended` when a suspended account attempts a mutation; `account_deleted` when an account in its deletion grace window calls a non-exempt route.
- `404`: Not found (code `not_found`). A resource id belonging to another account is indistinguishable from a missing one.
- `429`: Too many requests (code `rate_limited`). A global per-IP budget of 300 requests/minute (burst 60) applies to every endpoint; login, signup, and test alerts have tighter dedicated limits.

---

[API](https://skmtc.dev/yoping/apis/yopingme-api.md) · [All operations](https://skmtc.dev/yoping/apis/yopingme-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yoping/apis/yopingme-api/revisions/76d8deb40173?raw)
