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

    List operators of a group channel

    Copy link

    You can retrieve a list of operators of a group channel using this API.


    HTTP request

    Copy link
    GET https://api-{application_id}.sendbird.com/v3/group_channels/{channel_url}/operators
    

    Parameters

    Copy link

    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
    

    Responses

    Copy link

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

    {
        "operators": [
            {
                "user_id": "Jeff",
                "nickname": "OldBoy",
                "profile_url": "https://sendbird.com/main/img/profiles/profile_22_512px.png",
                "metadata": {
                    "font_preference": "times new roman",
                    "font_color": "black"
                }
            },
            ... # More operators
        ],
        "next": "EK1VV3dFQVErEUBXWFNeFp3Q2Fkfe2~~"
    }
    

    List of response properties

    Copy link
    Property nameTypeDescription

    operators[]

    array of objects

    An array of users who are registered as the 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 like below is returned. See the error codes section for more details.

    {
        "message": "\"Channel\" not found.",
        "code": 400201,
        "error": true
    }