ZaloPushToXBot
Query parameters
param.header.xp-api-keystringRequiredExample:
XBot will generate an xp-api-key and provide it to you. This key is used for authentication when XBot interacts with your system
7cc88fb5f4af7421ae777252b92de42a62f61b49b20a88867f8a66247d3872ad
Body
event_namestringOptional
Name of the event
app_idstringOptional
Application identifier
timestampstringOptional
Timestamp of the event
user_id_by_appstringOptional
User identifier within the application
Responses
200
Message pushed to Zalo successfully
application/json
default
Unexpected error
application/json
post
POST /webhook/xpbot/api/zalo/push HTTP/1.1
Host: xbot-i3p-uat.a4b.vn
Content-Type: application/json
Accept: */*
Content-Length: 269
{
"event_name": "user_send_text",
"app_id": "2553928453557884079",
"sender": {
"id": "6142494823xxxxxxxx"
},
"recipient": {
"id": "3662729599332560487"
},
"message": {
"text": "Chào A4B",
"msg_id": "cb31dff1c39642cc1b83"
},
"timestamp": "1699003881354",
"user_id_by_app": "979122185046046317"
}
{
"status": "text",
"message": "text"
}
Last updated