Delete a webhook endpoint
curl --request DELETE \
--url https://app.sahlfinancial.com/api/v1/partner/webhooks/{endpoint_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/webhooks/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/webhooks/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"detail": "Invalid or revoked API key"
}{
"detail": "API key lacks the webhooks:manage scope"
}{
"detail": {
"code": "not_found",
"message": "Webhook not found"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "More than 60 calls a minute with this API key. Slow down.",
"limit": 60
}
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Delete a webhook endpoint
Required scope: webhooks:manage.
Deletes one of your workspace’s endpoints. 204 without a body; 404 not_found for an unknown id or another workspace’s endpoint.
DELETE
/
v1
/
partner
/
webhooks
/
{endpoint_id}
Delete a webhook endpoint
curl --request DELETE \
--url https://app.sahlfinancial.com/api/v1/partner/webhooks/{endpoint_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/webhooks/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/webhooks/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"detail": "Invalid or revoked API key"
}{
"detail": "API key lacks the webhooks:manage scope"
}{
"detail": {
"code": "not_found",
"message": "Webhook not found"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "More than 60 calls a minute with this API key. Slow down.",
"limit": 60
}
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Authorizations
API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.
Response
Deleted. No body.