Add a webhook endpoint
curl --request POST \
--url https://api.getlurk.com/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/hooks/lurk",
"events": [
"activity.created",
"unit.used"
],
"description": "Orders service"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://example.com/hooks/lurk',
events: ['activity.created', 'unit.used'],
description: 'Orders service'
})
};
fetch('https://api.getlurk.com/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/webhook-endpoints"
payload = {
"url": "https://example.com/hooks/lurk",
"events": ["activity.created", "unit.used"],
"description": "Orders service"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "whe_01m6nezem0emc8tkvw5bmgt4zr",
"url": "https://example.com/hooks/lurk",
"events": [
"activity.created",
"unit.used"
],
"description": "Orders service",
"status": "active",
"disabled_reason": null,
"created_at": "2026-11-05T09:00:00.000Z",
"secret": "whsec_EXAMPLE_NOT_A_REAL_SECRET"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Webhooks
Add a webhook endpoint
Lurk sends the events you pick to this URL, signed with the secret in the response. The secret is shown once. A project can have up to 25 active endpoints; switched-off ones are not counted.
POST
/
v1
/
webhook-endpoints
Add a webhook endpoint
curl --request POST \
--url https://api.getlurk.com/v1/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/hooks/lurk",
"events": [
"activity.created",
"unit.used"
],
"description": "Orders service"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://example.com/hooks/lurk',
events: ['activity.created', 'unit.used'],
description: 'Orders service'
})
};
fetch('https://api.getlurk.com/v1/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/webhook-endpoints"
payload = {
"url": "https://example.com/hooks/lurk",
"events": ["activity.created", "unit.used"],
"description": "Orders service"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "whe_01m6nezem0emc8tkvw5bmgt4zr",
"url": "https://example.com/hooks/lurk",
"events": [
"activity.created",
"unit.used"
],
"description": "Orders service",
"status": "active",
"disabled_reason": null,
"created_at": "2026-11-05T09:00:00.000Z",
"secret": "whsec_EXAMPLE_NOT_A_REAL_SECRET"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Body
application/json
Response
Add a webhook endpoint