제품 개요
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 value: C2C.CallbackAfterC2CMsgExtension. |
contenttype | The request body is 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": "C2C.CallbackAfterC2CMsgExtension","From_Account":"user1","To_Account":"user2","MsgKey":"93847636_1287657_1764688415","OperateType":1,"ExtensionList":[{"Key":"k1","Value":"v1","Seq":1}, // Version number of a single KV{"Key":"k2","Value":"v2","Seq":1},{"Key":"k3","Value":"v3","Seq":1}],"Seq":1, // Represents the latest version number of the entire message"EventTime":1764688540182}// Delete message extensions KV{"CallbackCommand": "C2C.CallbackAfterC2CMsgExtension", // Callback command"From_Account":"user1","To_Account":"user2","MsgKey":"93847636_1287657_1764688415","OperateType":2,"ExtensionList":[{"Key":"k1","Value":"","Seq":2},{"Key":"k2","Value":"","Seq":2},{"Key":"k3","Value":"","Seq":2}],"Seq":2, // Represents the latest version number of the entire message"EventTime":1764688641499}// Clear message extensions KV{"CallbackCommand": "C2C.CallbackAfterC2CMsgExtension", // Callback command"From_Account":"user1","To_Account":"user2","MsgKey":"93847636_1287657_1764688415","OperateType":3,"ExtensionList":[],"Seq":3, // Represents the latest version number of the entire message"EventTime":1764688662721}
Field | Type | Description |
CallbackCommand | String | Callback command. |
From_Account | String | UserID of the message sender. |
To_Account | String | UserID of the message recipient. |
MsgKey | String | Unique message identifier. |
OperateType | Integer | 1:Set message extension key-value(KV) pairs. 2:Delete message extension KV. 3:Clear all message extensions KV. |
ExtensionList | Array | Message Extension KV pair. |
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. |
피드백