---
title: "Save Slack messages from n8n to brand_messages table"
method: POST
path: "/api/slack/message"
tags: ["Slack"]
---

# Save Slack messages from n8n to brand_messages table

`POST /api/slack/message`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/slack/message`
- Auth: HTTP bearer

Processes Slack messages from n8n automation and saves them to the brand_messages table.
First identifies the brand_id from the Slack channel_id, then cleans the message format
and saves it with proper metadata like the Feishu integration.

## Request body

- object[]
  - `user` string, required: Slack user ID who sent the message
  - `type` string: Message type
  - `ts` string, required: Slack timestamp
  - `client_msg_id` string: Client message ID
  - `text` string, required: Message text content
  - `team` string: Slack team/workspace ID
  - `channel` string, required: Slack channel ID
  - `channel_type` string: Channel type
  - `sender_type` string: Sender type
  - `partnership_id` string: Partnership ID (optional)
  - `partnership_status` string: Partnership status (optional)
  - `blocks` object[]: Slack blocks (rich text formatting)

## Response `200`

Messages processed successfully

- object
  - `success` boolean
  - `processed_count` number
  - `results` object[]
    - `message_id` string
    - `channel_id` string
    - `status` string
  - `message` string

## Other responses

- `400`: Bad request - validation error or channel not found
- `500`: Internal server error

---

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