제품 개요
Basic Concepts
응용 시나리오
기능 소개
계정 시스템
사용자 정보 및 관계망
메시지 관리
그룹 시스템
Official Account
Audio/Video Call
사용 제한
SDKAppID parameter matches your application's SDKAppID. For additional security considerations, see Webhook Overview: Security Considerations.https://www.example.com.https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | The request protocol is HTTPS, and the request method is POST. |
www.example.com | Callback URL. |
SDKAppID | The SDKAppID assigned in the chat console when creating an application. |
CallbackCommand | Fixed as: Group.CallbackAfterGroupMsgExtension. |
contenttype | Request body fixed as JSON. |
ClientIP | Client IP address (e.g., 127.0.0.1). |
OptPlatform | Client platform. For the valid values, see the description of the OptPlatform parameter in Webhook Protocol. |
// Set Message Extension KV{"CallbackCommand": "Group.CallbackAfterGroupMsgExtension","GroupId":"test","MsgSeq":10,"OperateType":1,"ExtensionList":[{"Key":"key2","Value":"value2","Seq":56}, // Version number of a single KV{"Key":"key3","Value":"12122","Seq":56}],"Seq":56, // Represents the latest version number of the entire message"EventTime":1764688294360}// Delete Message Extension KV{"CallbackCommand": "Group.CallbackAfterGroupMsgExtension","GroupId":"test","MsgSeq":10,"OperateType":2,"ExtensionList":[{"Key":"key2","Value":"","Seq":57},{"Key":"key3","Value":"","Seq":57}],"Seq":57, // Represents the latest version number of the entire message"EventTime":1764688312045}// Clear Message Extension KV{"CallbackCommand": "Group.CallbackAfterGroupMsgExtension","GroupId":"test","MsgSeq":10,"OperateType":3,"ExtensionList":[],"Seq":58, // Represents the latest version number of the entire message"EventTime":1764688329047}
Field | Type | Description |
CallbackCommand | String | Callback command. |
GroupId | String | Group ID. |
MsgSeq | Integer | Group message Seq. |
OperateType | Integer | 1: Set message extension key-value(KV) pairs. 2: Delete message extension KV. 3: Clear all message extension KV. |
ExtensionList | Array | Array of message extension key-value pairs. |
Seq | Integer | Version number. |
EventTime | Integer | Event trigger timestamp, in milliseconds. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0 // 0: callback successful; 1: callback error.}
Field | Type | Required | Description |
ActionStatus | String | Required | Request processing result: OK: Successfully processed. FAIL: Processing failed. |
ErrorCode | Integer | Required | Error Code: 0: Callback processed successfully. 1: Callback processing error. |
ErrorInfo | String | Required | Error Message. |
피드백