API tạo Webhook
API này hỗ trợ Partner, Shop tạo các Webhook để nhận sự kiện trả về
Tên trường
Kiểu dữ liệu
Mô tả
Tên trường
Kiểu dữ liệu
Mô tả
Last updated
API này hỗ trợ Partner, Shop tạo các Webhook để nhận sự kiện trả về
Last updated
POST $BASE_URL.Webhook/CreateWebhook HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"entities": [
"call_log"
],
"url": "text"
}{
"created_at": "2026-03-07T03:32:28.175Z",
"entities": [
"call_log"
],
"fields": [
"text"
],
"id": "text",
"metadata": "text",
"states": {
"last_error": {
"error": "text",
"resp_body": "text",
"resp_status": 1,
"retried": 1,
"sent_at": "2026-03-07T03:32:28.175Z"
},
"last_sent_at": "2026-03-07T03:32:28.175Z",
"state": "text"
},
"url": "text"
}curl --location '$BASE_URL.Webhook/CreateWebhook' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"entities": [
"call_log"
],
"url": "https://example.com/webhook"
}'{
"id": "1415096549774721835",
"entities": [
"call_log"
],
"fields": [],
"url": "https://example.com/webhook",
"metadata": "",
"created_at": "2025-09-25T03:50:25Z",
"states": {
"state": "ok",
"last_sent_at": null,
"last_error": null
}
}