Registration Submission and Audit Result Callback Notification
Purpose
After a viewer submits registration information or an administrator audits a registration, a callback notification will be sent to the configured interface address.
Details
After the interface address is configured, when a viewer successfully submits registration information and it is stored in the database, or when an administrator performs an audit operation in the Polyv backend, the live streaming system will submit the relevant parameters via POST to the user-defined callback interface for notification.
Callback Parameter Description
| Parameter Name | Type | Description |
|---|---|---|
| type | String | Event type submit_application: submit registration audit_result: audit result |
| channelId | String | Channel ID |
| timestamp | Long | 13-digit timestamp |
| viewerId | String | Unique viewer identifier |
| nickname | String | Viewer nickname |
| data | String | A JSON-formatted string containing all registration form fields, in the format {"fieldId":"value"} |
| status | String | Audit status (only included in audit_result callbacks) pass: audit passed reject: audit rejected |
| operator | String | Operator userId (only included in audit_result callbacks) |
| sign | String | Encrypted string for verification, generated by the rule md5(AppSecret+timestamp); AppSecret is the key of the live streaming system |
Callback Examples
Example of registration submission callback:
{
"type": "submit_application",
"channelId": "123456",
"timestamp": 1557976774000,
"viewerId": "viewer123",
"nickname": "张三",
"data": "{\"4486753\": \"表单内容\"}",
"sign": "xxdxxxxx"
}
Example of audit result callback:
{
"type": "audit_result",
"channelId": "123456",
"timestamp": 1557976774000,
"viewerId": "viewer123",
"nickname": "张三",
"data": "{\"4486753\": \"表单内容\"}",
"status": "pass",
"operator": "userId",
"sign": "xxdxxxxx"
}
How to Set It Up
Set it up through the backend:
Log in to your account - click [Settings] - under [Development Settings], click [Callbacks and Interfaces] - find [Registration Submission and Audit Result Callback] and enter the callback address
Note: The submitted interface address must start with http:// or https://
Backend Settings Reference Images
New backend settings:

Old backend settings:

If you cannot find the corresponding settings, it may be due to insufficient account permissions. If you need help, please contact the online customer service in the lower right corner.
