Create a Chat Room

Create a new 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

Request body

titlestring

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_idsstring[]

Sticker Pack IDs

reaction_pack_idsstring[]

Reaction Pack IDs

visibility'everyone' | 'members'

Who is allowed to see and join the chat room. Can be everyone or members.

sponsor_idsstring[]

Sets the sponsors associated with the chat room

chat_message_throttle_secondsnumber

Set chat messages throttling

profile_groupsstring[]

Array of user groups you want to link to the chat room

Response

201

idstring
urlstring
client_idstring
titlestring
created_atstring
content_filterstring
visibilitystring
report_message_urlstring
reported_messages_urlstring
delete_message_urlstring
upload_urlstring
memberships_urlstring
muted_status_url_templatestring
custom_messages_urlstring
sticker_packs_urlstring
reaction_packs_urlstring
custom_dataunknown
sponsors_urlstring
chatroom_messages_urlstring
chatroom_messages_count_urlstring
pubnub_messages_reaction_url_templatestring
pubnub_messages_remove_reaction_url_templatestring
chatroom_token_gate_access_url_templatestring
chatroom_access_rule_urlstring
reported_chat_messages_urlstring
reaction_space_idstring
chat_message_throttle_secondsnumber

Example response

{
  "id": "29c0fb7b-d6f9-4400-9dc5-2535a97d224c",
  "url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/",
  "client_id": "FVQI5U57tfCyDV99YjhF3ExdlpiObg5JASvy81Mu",
  "title": "testTitle",
  "created_at": "2023-04-27T09:07:22.982044Z",
  "content_filter": "none",
  "visibility": "everyone",
  "channels": {
    "chat": {
      "pubnub": "chatroom.29c0fb7b-d6f9-4400-9dc5-2535a97d224c"
    },
    "reactions": {
      "pubnub": "chatroom.reactions.29c0fb7b-d6f9-4400-9dc5-2535a97d224c"
    },
    "control": {
      "pubnub": "chatroom.control.29c0fb7b-d6f9-4400-9dc5-2535a97d224c"
    }
  },
  "report_message_url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/report-chat-message/",
  "reported_messages_url": "https://cf-blast.livelikecdn.com/api/v1/reported-chat-room-messages/?chat_room_id=29c0fb7b-d6f9-4400-9dc5-2535a97d224c&status=pending",
  "delete_message_url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/delete-chat-message/",
  "upload_url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/upload/",
  "memberships_url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/memberships/",
  "muted_status_url_template": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/muted-status/{profile_id}/",
  "custom_messages_url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/custom-messages/",
  "sticker_packs_url": "https://cf-blast.livelikecdn.com/api/v1/sticker-packs/?chat_room_id=29c0fb7b-d6f9-4400-9dc5-2535a97d224c",
  "reaction_packs_url": "https://cf-blast.livelikecdn.com/api/v1/reaction-packs/?chat_room_id=29c0fb7b-d6f9-4400-9dc5-2535a97d224c",
  "sponsors_url": "https://cf-blast.livelikecdn.com/api/v1/sponsors/?chat_room_id=29c0fb7b-d6f9-4400-9dc5-2535a97d224c&client_id=FVQI5U57tfCyDV99YjhF3ExdlpiObg5JASvy81Mu",
  "chatroom_messages_url": "https://cf-blast.livelikecdn.com/api/v1/chatroom-messages/",
  "chatroom_messages_count_url": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/chatroom_messages_count/",
  "pubnub_messages_reaction_url_template": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/pubnub-messages/{message_timetoken}/reactions/",
  "pubnub_messages_remove_reaction_url_template": "https://cf-blast.livelikecdn.com/api/v1/chat-rooms/29c0fb7b-d6f9-4400-9dc5-2535a97d224c/pubnub-messages/{message_timetoken}/reactions/{action_timetoken}/",
  "token_gates": [
    {
      "contract_address": "0xe60ede23D15Cc5e1807DeC001DA44f9B24d1e458",
      "network_type": "ethereum"
    }
  ],
  "chatroom_token_gate_access_url_template": "https://cf-blast.livelikecdn.com/api/v1/chatroom-token-gate-access/?chat_room_id=29c0fb7b-d6f9-4400-9dc5-2535a97d224c&wallet_address={wallet_address}",
  "chatroom_access_rule_url": "https://cf-blast.livelikecdn.com/api/v1/chat-room-access-rules/",
  "reported_chat_messages_url": "https://cf-blast.livelikecdn.com/api/v1/reported-chat-messages/",
  "reaction_space_id": "71b422ae-df6d-4c8e-bae3-c12204856754"
}

Changes

No recorded changes to this operation across all 1 revision of this API.