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

    Report a channel

    Reports a channel that has offensive messages or abusive activities.


    HTTP request

    POST https://api-{application_id}.sendbird.com/v3/report/{channel_type}/{channel_url}
    

    Parameters

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    channel_type

    string

    Specifies the type of channel. Acceptable values are open_channels and group_channels.

    channel_url

    string

    Specifies the URL of a channel.


    Request body

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

    Properties
    RequiredTypeDescription

    report_category

    string

    Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam.

    OptionalTypeDescription

    reporting_user_id

    string

    Specifies the unique ID of the user who reports a channel.

    report_description

    string

    Specifies additional information to include in the report.

    {
        "report_category": "inappropriate",
        "report_description": "Seems that people here are sharing something wrong."
    }
    

    Response

    If successful, this action returns a report resource on the channel in the response body.

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