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

    List operators of an open channel

    Retrieves a list of operators of an open channel.


    HTTP request

    GET https://api-{application_id}.sendbird.com/v3/open_channels/{channel_url}/operators
    

    Parameters

    The following table lists the parameters that this action supports.

    Parameters
    RequiredTypeDescription

    channel_url

    string

    Specifies the URL of the channel.

    OptionalTypeDescription

    token

    string

    Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set as 0.

    limit

    int

    Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)

    ?token=YnQSRDpSRl1AEE1WXlVaF2R3&limit=5
    

    Response

    If successful, this action returns a list of channel resources registered as operators of the channel in the response body.

    {
        "operators": [
            {
                "user_id": "Katherine",
                "nickname": "Kathie",
                "profile_url": "https://sendbird.com/main/img/profiles/profile_176_512px.png",
                "metadata": {
                    "location": "Chicago",
                    "marriage": "N"
                }
            },
            ... # More operators
        ],
        "next": "aKV1e3deQVEZEuBRWFNeFp3Q2Fk3Tr~~"
    }
    

    List of response properties

    Property nameTypeDescription

    operators[]

    array of objects

    An array of users registered as operators of the channel.

    next

    string

    The value that can be used in the token parameter to retrieve the next page in the result set.

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