---
title: "Create alert destination"
method: POST
path: "/api/v1/sdk/alerts/destinations"
tags: ["public-api", "public-alerts"]
---

# Create alert destination

`POST /api/v1/sdk/alerts/destinations`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/alerts/destinations`
- Auth: none declared

Create a new alert destination.

**SDK Usage:**
```python
from anomalyarmor import Client

client = Client()
dest = client.alerts.create_destination(
    name="Slack #alerts",
    destination_type="slack",
    config={"webhook_url": "https://hooks.slack.com/..."}
)
```

## Headers

- `Authorization` string

## Request body

- AppSharedApiV1PublicAlertsCreateDestinationRequest: Request to create an alert destination.
  - `name` string, required: Destination name
  - `destination_type` string, required: Type: email, slack, webhook, etc.
  - `config` object, required: Configuration for the destination

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

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