Delete webhook endpoint
curl --request DELETE \
--url https://api.turos.app/v1/webhook_endpoints/{webhook_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.turos.app/v1/webhook_endpoints/{webhook_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.turos.app/v1/webhook_endpoints/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "webhook_endpoint.deleted",
"id": "wh_2ZK8Q1W9F4M6P7R3",
"deleted": true,
"requestId": "req_2ZK8Q1W9F4M6P7R3"
}Webhook endpoints
Delete webhook endpoint
Delete a webhook endpoint while preserving delivery audit history.
DELETE
/
v1
/
webhook_endpoints
/
{webhook_id}
Delete webhook endpoint
curl --request DELETE \
--url https://api.turos.app/v1/webhook_endpoints/{webhook_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.turos.app/v1/webhook_endpoints/{webhook_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.turos.app/v1/webhook_endpoints/{webhook_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "webhook_endpoint.deleted",
"id": "wh_2ZK8Q1W9F4M6P7R3",
"deleted": true,
"requestId": "req_2ZK8Q1W9F4M6P7R3"
}