Delete a webhook
Deleting an endpoint cascades to its pending deliveries, so anything queued and undelivered is dropped rather than retried against a URL you have removed.
There is no way to rotate a signing secret in place. To change one, delete the endpoint and register a new one.
Body parameters
No parameters.
Response
An id belonging to another account returns 404 with code NOT_FOUND, the same as one that does not exist.
curl -X DELETE https://api.rivo.markets/v1/webhooks/b4a4f7a0-4a5e-4e9d-9c1e-2f6d8f3a1c77 \
-H "Authorization: Bearer rivo_live_..."import requests
r = requests.delete(
"https://api.rivo.markets/v1/webhooks/b4a4f7a0-4a5e-4e9d-9c1e-2f6d8f3a1c77",
headers={"Authorization": "Bearer rivo_live_..."},
)
print(r.json()["data"])const res = await fetch("https://api.rivo.markets/v1/webhooks/b4a4f7a0-4a5e-4e9d-9c1e-2f6d8f3a1c77", {
method: "DELETE",
headers: {
Authorization: "Bearer rivo_live_...",
},
});
const { data } = await res.json();response
{
"success": true,
"data": { "id": "e11a...4c90", "deleted": true }
}