Polyv Help Center

Help Center

Live Stream Violation Interruption Callback Notification

Updated: 2025-09-04 13:57:21

Purpose

When a live stream under an account's channel is interrupted due to abnormal content violations, the interruption event and related violation information are sent back to the user via callback.

Callback Parameter Description

  • Request Method: POST

URL Parameters

Parameter Type & Range Description
timestamp long 13-digit timestamp
sign string Signature. The signature generation rule is MD5(appSecret + timestamp). To prevent callback request forgery, please verify the correctness of the sign value.

BODY Parameters:

Parameter Type Description
userId String Account ID
channelId Integer Channel ID
imageUrl String Screenshot of the violating live stream. Note: The image is a temporary URL, please process it promptly.
scene String Violation type, e.g., porn. See Violation Types for details.
detail String Specific description of the violation reason (may be empty).
rate String Probability of the result belonging to this type. Value range is [0.00-100.00]. A higher value indicates a higher probability of belonging to this type.
violationTime Integer Violation time (in seconds). A relative time calculated from the start of the stream. For example, a value of 120 means the stream may be suspected of violating rules around 2 minutes after starting.
violationItems List Specific violation items (may be empty). See Violation Items for details.
cutoffTime String Interruption time (format: yyyy-MM-dd HH:mm:ss).

Violation Types

Value Description
porn Pornography
terrorism Terrorism and political sensitivity
illegal Illegal activities
abuse Abuse
polity Political sensitivity
sexy Sexy content
violence Violence and gore
pyramid_scheme Pyramid schemes
gambling Gambling
fraud Fraud
medical_exaggeration Exaggerated claims for health products/medicines/medical devices
investment_fraud Recommending stocks and other financial products to induce user investment
religion Religious content
unknown Unknown

Violation Items

Parameter Type Description
item String Violation item
score Integer Review score. Value range is [0.00-100.00]. A higher value indicates a higher likelihood of violation.
reason String Reason for violation
type String Violation type. See Violation Types for details.

Callback Data Example


https://xxx.com/callback?timestamp=1753280691000&sign=xxxx

{
    "userId": "xxxxxxxxxx",
    "channelId": 10001,
    "imageUrl": "https://xxx.com/temp.jpg",
    "violationTime": 120,
    "scene": "religion",
    "detail": "检测到宗教相关内容(《周易》需卦),违反规定,需要告警。",
    "rate": "80.00",
    "cutoffTime": "2025-07-24 10:00:00",
    "violationItems": [
        {
            "item": "需卦内容展示",
            "score": 80.0,
            "reason": "图片中展示了《周易》中的需卦内容,包括卦辞、爻辞和卦象图,涉及宗教或哲学元素,可能被视为宗教相关内容。根据规则,宗教内容需要告警,无论是否敏感。",
            "type": "religion"
        }
    ]
}

How to Configure

Configure via the backend:

Log in to your account - Go to [Cloud Live] - Click [Development Settings] - Click [Callback Settings] - Live Stream Violation Interruption Callback Notification

If the corresponding setting cannot be found, it may be due to insufficient account permissions. For assistance, please contact the online customer service in the bottom right corner.

联系客服,在线咨询