chat

Get the global chat room

Changed on

Returns the global chat room, auto-joining the caller on first fetch. otherMembers is always empty for the global room (its membership is the entire userbase); memberCount carries the total instead. Subscribe to the returned channelName for real-time messages.

get/v1/chat/rooms/global

Request

  • Base URL
    https://app.legend.trade/api/rest
  • URL
    https://app.legend.trade/api/rest/v1/chat/rooms/global
  • Auth
    HTTP bearer

Response

Successful response

idstring required
type'dm' | 'group' | 'swap' | 'duel' | 'clan' | 'post' required
typeIdstring nullable required
typeNamestring nullable required
visibility'public' | 'private' required
namestring nullable required
imageUrlstring nullable required
channelNamestring required
createdAtstring required
unreadCountinteger required
hasUnreadMentionboolean
lastReadAtstring required
lastReadMessageIdstring nullable
mutedboolean required
isPinnedboolean
pinnedAtstring nullable
isArchivedboolean
archivedAtstring nullable
isMarkedUnreadboolean
status'accepted' | 'pending' | 'declined'
myRole'owner' | 'admin' | 'member'
isBannedboolean
memberCountinteger

Changes

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property ////// became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became nullable for the status

    • info

      response property archivedAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property imageUrl list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/attachments/items/thumbnail_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/attachments/items/url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/content list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/deleted_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/edited_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_clans/items/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/bio list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/clan/anyOf[subschema #1]/banner_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/clan/anyOf[subschema #1]/chat_room_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/clan/anyOf[subschema #1]/description list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/clan/anyOf[subschema #1]/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/clan_fee_rebate_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/clan_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/deleted_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/fee_rebate_override_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/fee_rebate_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/invite_code_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/last_online list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/last_online_mobile list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/last_reset_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/main_signer_quorum_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/max_market_order_slippage list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/referral_code list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/referral_code_alt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/referred_by_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/telegram_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/wallet_address list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/wallets/items/signer_quorum_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastMessage/anyOf[subschema #1]/mentioned_users/items/x_username list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property lastReadMessageId list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property name list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/bio list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/clan/anyOf[subschema #1]/banner_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/clan/anyOf[subschema #1]/chat_room_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/clan/anyOf[subschema #1]/description list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/clan/anyOf[subschema #1]/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/clan_fee_rebate_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/clan_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/deleted_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/fee_rebate_override_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/fee_rebate_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/invite_code_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/last_online list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/last_online_mobile list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/last_reset_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/main_signer_quorum_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/max_market_order_slippage list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/referral_code list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/referral_code_alt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/referred_by_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/telegram_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/wallet_address list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/wallets/items/signer_quorum_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property otherMembers/items/user/x_username list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property pinnedAt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/attachments/items/thumbnail_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/attachments/items/url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/content list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/deleted_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/edited_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_clans/items/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/bio list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/clan/anyOf[subschema #1]/banner_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/clan/anyOf[subschema #1]/chat_room_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/clan/anyOf[subschema #1]/description list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/clan/anyOf[subschema #1]/image_url list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/clan_fee_rebate_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/clan_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/deleted_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/fee_rebate_override_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/fee_rebate_rate list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/invite_code_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/last_online list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/last_online_mobile list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/last_reset_at list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/main_signer_quorum_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/max_market_order_slippage list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/referral_code list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/referral_code_alt list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/referred_by_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/telegram_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/wallet_address list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/wallets/items/signer_quorum_id list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property recentMessages/items/mentioned_users/items/x_username list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property typeId list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property typeName list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property //// to the response with the status