> ## Documentation Index
> Fetch the complete documentation index at: https://docs.radarboard.app/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /api/alerts/send

> Send email alerts via Resend.

# POST /api/alerts/send

Sends email alerts via Resend. Supports health check alerts (pre-formatted HTML) and custom alerts.

## Request body

### Health alert

```json theme={null}
{
  "type": "health",
  "monitors": [
    {
      "name": "goshuin.com",
      "status": "down",
      "url": "https://goshuin.com"
    }
  ]
}
```

### Custom alert

```json theme={null}
{
  "type": "custom",
  "subject": "Revenue dropped 20%",
  "html": "<p>Revenue has dropped significantly in the last 24 hours.</p>"
}
```

## Response

### Success

```json theme={null}
{ "sent": true, "id": "email-id-from-resend" }
```

### Not configured

```json theme={null}
{ "configured": false }
```

Returns `configured: false` if Resend env vars are not set. This is not an error -- it means alerts are simply disabled.
