---
title: "Create a Chat Room"
method: POST
path: "/"
---

# Create a Chat Room

`POST /`

## Request

- Base URL: `https://cf-blast.livelikecdn.com/api/v1/chat-rooms`
- URL: `https://cf-blast.livelikecdn.com/api/v1/chat-rooms/`
- Auth: none required

Create a new chat room

## Request body

- object
  - `title` string: Set an optional title for the Chat Room
  - `content_filter` 'none' | 'filtered' | 'producer' | 'ai': To manage the type of messages allowed in a chat room, we provide three levels of content filtering. Each level determines how messages are moderated and who is allowed to post. **1.** `none`: No content filtering, all users can post freely. **2.**`filtered`: Profanity is automatically filtered. **3.** `producer`: Only producers can post, others can view messages only. **4.** `ai`: message recognized by an AI model as objectionable, will be filtered.
  - `sticker_pack_ids` string[]: Sticker Pack IDs
  - `reaction_pack_ids` string[]: Reaction Pack IDs
  - `visibility` 'everyone' | 'members': Who is allowed to see and join the chat room. Can be `everyone` or `members`.
  - `sponsor_ids` string[]: Sets the sponsors associated with the chat room
  - `token_gates` object[]: Set an optional crypto token gates over chat
    - `contract_address` string: address of smart contract whose token will be used as gate
    - `network_type` 'ethereum' | 'polygon' | 'chiliz' | 'hedera': define network in which above contract is a block
    - `token_type` 'non-fungible' | 'fungible'
    - `attributes` object[]: Attributes are only attched with non-fungible type token-gates
      - `key` string
      - `value` string
  - `attributes` object[]: Array of custom attributes
    - `key` string
    - `value` string
  - `chat_message_throttle_seconds` number: Set chat messages throttling
  - `profile_groups` string[]: Array of user groups you want to link to the chat room

## Response `201`

201

- object
  - `id` string
  - `url` string
  - `client_id` string
  - `title` string
  - `created_at` string
  - `content_filter` string
  - `visibility` string
  - `channels` object
    - `chat` object
      - `sendbird` unknown
      - `pubnub` string
    - `reactions` object
      - `pubnub` string
    - `control` object
      - `pubnub` string
  - `report_message_url` string
  - `reported_messages_url` string
  - `delete_message_url` string
  - `upload_url` string
  - `memberships_url` string
  - `muted_status_url_template` string
  - `custom_messages_url` string
  - `sticker_packs_url` string
  - `reaction_packs_url` string
  - `custom_data` unknown
  - `sponsors_url` string
  - `chatroom_messages_url` string
  - `chatroom_messages_count_url` string
  - `pubnub_messages_reaction_url_template` string
  - `pubnub_messages_remove_reaction_url_template` string
  - `token_gates` object[]
    - `contract_address` string
    - `network_type` string
  - `chatroom_token_gate_access_url_template` string
  - `chatroom_access_rule_url` string
  - `reported_chat_messages_url` string
  - `reaction_space_id` string
  - `chat_message_throttle_seconds` number

---

[API](https://skmtc.dev/livelike/apis/chat-rooms.md) - [All operations](https://skmtc.dev/livelike/apis/chat-rooms/llms.txt) - [OpenAPI document](https://skmtc.dev/livelike/apis/chat-rooms/revisions/a637fa5c92a5?raw)
