


https://www.example.com.https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json
Parameter | Description |
https | HTTPS protocol; request method is POST. |
www.example.com | Webhook URL. |
SdkAppid | SDKAppID assigned in the Chat console when creating the application. |
CallbackCommand | Fixed value: ContentCallback.ResultNotify. |
contenttype | Request body is always JSON. |
{"Scene":"C2C","SdkAppId":1400187352,"From_Account":"jared","ContactItem":{"ContactType":1,"To_Account":"Jonh"},"ContentType":"Text","TextContent":["aaabbbccc","1234567"],"MsgID":"1434460578_4137340972_1661154487","CtxcbResult":1,"CtxcbRequestId":"241ed925-4c56-4357-95dd-1e6e7798f214"}
Field | Type | Description |
Scene | String | Recognition scenario: C2C Chat = C2C. C2C Custom Message = C2CCustom. Group = Group. Group Custom Message = GroupCustom. Group Profile = GroupInfo. Group Member Profile = GroupMemberInfo. Relationship Chain = RelationChain. User Profile = UserInfo. |
From_Account | String | UserID of the sender of the recognized content. |
ContactItem | Object | Represents the recipient of the message during recognition. |
ContactType | Integer | Identifies whether the recipient is a group or C2C chat. ContactType = 1: C2C chat. ContactType = 2: group chat. |
To_Account | String | Recipient UserID when ContactType = 1. |
ToGroupId | String | Recipient GroupID when ContactType = 2. |
ContentType | String | Type of recognized content: Text = Text. Image = Image. Audio = Audio. Video = Video |
TextContent | String | Recognized text content when ContentType is Text. |
FileURL | String | Recognized file URL when ContentType is Image, Audio, or Video. |
MsgID | String | For C2C recognition, MsgID is the C2C message MsgKey; for group recognition, MsgID is the group message MsgSeq. |
CtxcbResult | Integer | Recognition result from the cloud review service: 1: Intercepted 0: Allowed |
CtxcbRequestId | String | Recognition identifier from the cloud review service. |
CtxcbKeywords | Array | Sensitive words detected in the text. |
CtxcbSuggestion | String | Recommendation from the third-party content moderation service: Block/Review/Pass. |
CtxcbLabel | String | Primary label for the detected violation category: Illegal / Abuse / Polity / Ad / Porn / Sexy / Terror / Composite. |
IsRestAPI | Bool | Indicates whether the webhook was triggered by active recognition: false: triggered by internal Chat recognition true: triggered by active recognition API, typically for audio/video recognition callbacks. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Result of request processing: OK: Success. FAIL: Failure. |
ErrorCode | Integer | Required | Error code: 0: App backend processed successfully. 1: App backend processing failed. |
ErrorInfo | String | Required | Error description. |



Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários