/ Platform API
Platform API
    Chat Platform API v3
    Chat Platform API
    Chat Platform API
    Version 3

    Overview

    Copy link

    The pinned messages feature allows you to pin messages in group channels. You can pin all types of messages including text message, file message, multiple file message, and admin message. The pinned messages feature allows users to mark or highlight specific messages which can be announcements, updates, instructions, or any other messages deemed important in a channel. This makes it easier for channel members to find and access important information, even in large or active channels where there may be a high volume of incoming messages.

    Limitations

    Copy link
    • The table below shows the types of channels that support pinned messages.
    Open channelGroup channelSupergroup channel

    Pinned messages

    Supported, only through Advanced Moderation's Moderator messages feature

    Supported, except ephemeral channels

    Not supported


    Actions

    Copy link

    API endpoints are relative to the base URL allocated to your Sendbird application. In this page, the base URL for the following endpoints are https://api-{application_id}.sendbird.com/v3.

    Note: If you want to know the ID and base URL of your application, sign in to the dashboard, go to the Settings > Application > General, and then check the Application ID and API request URL.

    List of actions

    Copy link
    ActionHTTP request

    Pin an existing message

    POST /{channel_type}/{channel_url}/messages/{message_id}/pin
    Pins an existing message in a channel.

    Pin a sending message

    POST /{channel_type}/{channel_url}/messages
    Pin while sending the message to a channel simultaneously.

    Unpin a message

    DELETE /{channel_type}/{channel_url}/messages/{message_id}/pin
    Unpin a message in a channel.

    List pinned messages for an open channel

    GET /open_channels/{channel_url}
    Retrieve a list of pinned messages of a single open channel.

    List pinned messages for all open channels

    GET /open_channels
    Retrieve a list of pinned messages of all open channels.

    On this page