---
title: "Test Bot Api"
method: POST
path: "/api/v1/alert-destinations/test-bot-api"
tags: ["alert-destinations"]
---

# Test Bot Api

`POST /api/v1/alert-destinations/test-bot-api`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/alert-destinations/test-bot-api`
- Auth: none declared

Test sending a message via Slack Bot API (chat.postMessage).

This endpoint is used to test interactive Block Kit messages that
require a bot token instead of an incoming webhook.

## Headers

- `Authorization` string

## Request body

- BodyTestBotApiApiV1AlertDestinationsTestBotApiPost
  - `bot_token` string, required
  - `channel` string, required
  - `payload` object, required

## 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)
