---
title: "Create a new Slack action"
method: POST
path: "/api/2.0/actions/slacks"
tags: ["Action Management API"]
---

# Create a new Slack action

`POST /api/2.0/actions/slacks`

## Request

- Base URL: `https://app.agenticbi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.agenticbi.com/api/2.0/actions/slacks`
- Auth: HTTP bearer

## Request body

- AlertActionApi: Action API for messaging platform such as Teams and Slack
  - `createdDate` integer: Created date in milliseconds
  - `lastModDate` integer: Last modified date
  - `id` integer: Action ID
  - `userId` integer: Action owner's user ID
  - `actionType` string: Action type
  - `name` string, required: Action name
  - `channels` AlertChannel[]
    - `id` string, required: Channel ID
    - `name` string: Channel name
    - `privateChannel` boolean: Whether or not this channel is private
  - `message` string: Action message
  - `eachRowOfDataAsMessage` boolean: Whether or not to send a separate message for each row of the data
  - `botAccessToken` string: Service access token
  - `teamId` string: Service team ID
  - `teamName` string: Service team Name used for display purpose
  - `botClientId` integer: Service client ID
  - `channel` AlertChannel: Action API channel
    - `id` string, required: Channel ID
    - `name` string: Channel name
    - `privateChannel` boolean: Whether or not this channel is private

## Response `200`

Success

- AlertActionApi: Action API for messaging platform such as Teams and Slack
  - `createdDate` integer: Created date in milliseconds
  - `lastModDate` integer: Last modified date
  - `id` integer: Action ID
  - `userId` integer: Action owner's user ID
  - `actionType` string: Action type
  - `name` string, required: Action name
  - `channels` AlertChannel[]
    - `id` string, required: Channel ID
    - `name` string: Channel name
    - `privateChannel` boolean: Whether or not this channel is private
  - `message` string: Action message
  - `eachRowOfDataAsMessage` boolean: Whether or not to send a separate message for each row of the data
  - `botAccessToken` string: Service access token
  - `teamId` string: Service team ID
  - `teamName` string: Service team Name used for display purpose
  - `botClientId` integer: Service client ID
  - `channel` AlertChannel: Action API channel
    - `id` string, required: Channel ID
    - `name` string: Channel name
    - `privateChannel` boolean: Whether or not this channel is private

## Other responses

- `400`: Bad request
- `401`: User is not authenticated
- `500`: Error during processing

---

[API](https://skmtc.dev/agenticbi/apis/user-management-api.md) · [All operations](https://skmtc.dev/agenticbi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenticbi/apis/user-management-api/revisions/62c42a99830e?raw)
