---
title: "Register an existing Feishu chat"
method: POST
path: "/api/feishu/chat/register"
tags: ["Feishu"]
---

# Register an existing Feishu chat

`POST /api/feishu/chat/register`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/feishu/chat/register`
- Auth: HTTP bearer

Registers an existing Feishu chat with a brand to enable message storage

## Request body

- object
  - `chatId` string, required: Feishu chat ID to register
  - `chatName` string: Optional name for the chat
  - `chatType` string: Type of the chat
  - `brandId` string, required: Brand ID to associate with the chat
  - `creatorId` string: Optional creator ID

## Response `200`

Chat registered successfully

- object
  - `success` boolean
  - `data` object
    - `id` string: Database record ID
    - `chat_id` string: Feishu chat ID
    - `chat_name` string: Name of the chat
    - `chat_type` string: Type of the chat
    - `brand_id` string: Associated brand ID
    - `creator_id` string: Chat creator ID
    - `created_at` string, date-time: Creation timestamp
    - `updated_at` string, date-time: Last update timestamp
  - `message` string

## Other responses

- `400`: Bad request - validation error or registration failed
- `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)
