Webhooks
Delete an endpoint
Delete an endpoint. Nothing more is sent to it.
DELETE
https://api.sangtao.ai/v2/webhooks/{id}Authorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
data is { "deleted": true }. Deliveries still waiting are canceled.
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | WEBHOOK_NOT_FOUND | No endpoint of yours with this id |
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
}
}