API lấy danh sách Webhooks
API này hỗ trợ Partner, Shop lấy danh sách các Webhook đã được tạo trước đó
Trường
Kiểu dữ liệu
Mô tả
Last updated
API này hỗ trợ Partner, Shop lấy danh sách các Webhook đã được tạo trước đó
Last updated
POST $BASE_URL.Webhook/GetWebhooks HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"webhooks": [
{
"created_at": "2026-03-07T03:54:04.328Z",
"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:54:04.328Z"
},
"last_sent_at": "2026-03-07T03:54:04.328Z",
"state": "text"
},
"url": "text"
}
]
}curl --location '$BASE_URL.Webhook/GetWebhooks' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{}'{
"webhooks": [
{
"id": "1414892734919211862",
"entities": [
"call_log"
],
"fields": [],
"url": "https://example.com/webhook",
"metadata": "",
"created_at": "2025-09-23T18:05:42Z",
"states": {
"state": "ok",
"last_sent_at": null,
"last_error": null
}
},
{
"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
}
}
]
}