List the events you can subscribe to
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/webhooks/events \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/webhooks/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/webhooks/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
"document.completed",
"document.failed",
"case.created",
"case.scored"
]{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}List the events you can subscribe to
Who can call it: Any signed-in member of the workspace.
Auth: dashboard session (Authorization: Bearer <access token>). Not available with a partner API key.
List the events you can subscribe to
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/webhooks/events \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/webhooks/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/webhooks/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
"document.completed",
"document.failed",
"case.created",
"case.scored"
]{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Authorizations
The access token (JWT) of a signed-in console user, from POST /v1/auth/login. It lasts 30 minutes. It is not an API key: a partner API key is refused here. There is no cookie.
Response
OK