Chat / Platform API
Current version: v3
    Chat Platform API v3
    Chat Platform API
    Chat
    Platform API
    Home
    /
    Chat
    /
    Platform API
    /
    Bot

    Join channels

    Makes a bot join one or more group channels.


    HTTP request

    POST https://api-{application_id}.sendbird.com/v3/bots/{bot_userid}/channels
    

    Parameters

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    bot_userid

    string

    Specifies the unique ID of a bot.


    Request body

    The following table lists the properties of an HTTP request that this action supports.

    Required
    Property nameTypeDescription

    channel_urls

    array of strings

    Specifies an array of URLs of channels to join.

    {
        "channel_urls": ["sendbird_group_channel_24896181_cd8b2c7208536b61895fff76ab6649d76302ee81", "sendbird_group_channel_24896191_8c75a3fd58f77fa3ab4aa256a9bf83a536b43ec7"]
    }
    

    Response

    If successful, this action returns a list of joined group channel resources in the response body.

    In the case of an error, an error object is returned. A detailed list of error codes is available here.