Enumerate subscribable event types
curl --request GET \
--url https://www.presolve.com/api/v1/webhook-events \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.presolve.com/api/v1/webhook-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/webhook-events"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"wakeupEventType": "sync.events_available",
"events": [
{
"entity": "<string>",
"eventType": "<string>",
"phase": "shipped",
"requiredScope": "<string>",
"redaction": "payload-allowed"
}
]
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Events & Webhooks
Enumerate subscribable event types
Requires the events:read scope. Rate tier: read.
GET
/
api
/
v1
/
webhook-events
Enumerate subscribable event types
curl --request GET \
--url https://www.presolve.com/api/v1/webhook-events \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.presolve.com/api/v1/webhook-events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.presolve.com/api/v1/webhook-events"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"wakeupEventType": "sync.events_available",
"events": [
{
"entity": "<string>",
"eventType": "<string>",
"phase": "shipped",
"requiredScope": "<string>",
"redaction": "payload-allowed"
}
]
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>"
}Authorizations
Org-issued integration API key (service account credential). The plaintext secret is shown once at creation.