Webhook
Xoá endpoint
Xoá endpoint. Không gửi gì tới nó nữa.
DELETE
https://api.sangtao.ai/v2/webhooks/{id}Xác thực
X-Api-Keystring · headerbắt buộcAPI key của bạn, tạo ở trang API key trong tài khoản.
Tham số đường dẫn
idstringbắt buộcID trong đường dẫn.
data là { "deleted": true }. Các lần giao đang chờ bị huỷ.
Mã lỗi
| Mã | errorCode | Khi nào |
|---|---|---|
| 404 | WEBHOOK_NOT_FOUND | Không có endpoint nào của bạn với id này |
DELETE
/webhooks/{id}curl -X DELETE "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"deleted": true
}
}DELETE
/webhooks/{id}curl -X DELETE "https://api.sangtao.ai/v2/webhooks/whk_4nP8rT2xK" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"deleted": true
}
}