Send a test (legacy)
curl --request POST \
--url https://intentleads.si/api/v1/webhooks/removals/test \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/webhooks/removals/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/webhooks/removals/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"delivered": true,
"event": "webhook.test",
"status": 200,
"error": null,
"response": "ok",
"duration_ms": 120,
"webhook_id": "test_9c1d2e3f4a5b6c7d8e9f0a1b"
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "no_webhook",
"message": "Set a webhook first (PUT /api/v1/webhooks/removals or POST /api/v1/webhooks)."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Send a test (legacy)
Legacy. Kept so existing integrations keep working. It manages one endpoint that receives every event; use /api/v1/webhooks to have several and pick their events.
Sends a signed {"type": "webhook.test"} now and returns what your endpoint answered.
Free. This doesn’t spend your balance.
POST
/
api
/
v1
/
webhooks
/
removals
/
test
Send a test (legacy)
curl --request POST \
--url https://intentleads.si/api/v1/webhooks/removals/test \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://intentleads.si/api/v1/webhooks/removals/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/webhooks/removals/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"delivered": true,
"event": "webhook.test",
"status": 200,
"error": null,
"response": "ok",
"duration_ms": 120,
"webhook_id": "test_9c1d2e3f4a5b6c7d8e9f0a1b"
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "no_webhook",
"message": "Set a webhook first (PUT /api/v1/webhooks/removals or POST /api/v1/webhooks)."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Authorizations
Headers
Only with an organization key: the workspace to act in (its id; ?workspace=<id> works too). Lanes, leads, exports, lists, websites and webhooks live in workspaces. Without it, an organization key acts in its only workspace, or gets 400 workspace_required (with the list of workspaces) when it has several. Workspace keys don't need it. On keys, team and activity it switches from the organization's own to that workspace's.