REST API: Managing webhooks
This page belongs to the REST API reference, which covers the address, authentication, scopes, pagination and errors. Every path is appended to https://api.litelog.de/api. In the examples $KEY stands for your API key; the example values are made up.
These calls manage outgoing webhooks: address, events, pause, secret, test and delivery log. Which events exist, what the payload looks like and how to check the signature is described on the Webhooks page. A company can have at most 5 webhooks.
Overview
| Call | Purpose | Scope |
|---|---|---|
GET /v1/webhooks |
List outgoing webhooks | webhooks:read |
POST /v1/webhooks |
Create an outgoing webhook | webhooks:write |
GET /v1/webhooks/{id} |
Get an outgoing webhook | webhooks:read |
PATCH /v1/webhooks/{id} |
Change, pause, re-activate or renew the secret | webhooks:write |
DELETE /v1/webhooks/{id} |
Delete an outgoing webhook | webhooks:write |
POST /v1/webhooks/{id}/test |
Send a test delivery now | webhooks:write |
GET /v1/webhooks/{id}/deliveries |
Delivery log of a webhook (last 30 days) | webhooks:read |
GET /v1/webhooks
List outgoing webhooks.
Scope: webhooks:read
Example call
curl "https://api.litelog.de/api/v1/webhooks" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": "b84d1f6a-2c3e-4a59-8d70-1e9f5c7a3b26",
"name": "Zeiterfassung Lohnbüro",
"url": "https://lohn.example.com/webhooks/litelog",
"events": [
"time_entry.started",
"time_entry.stopped"
],
"status": "paused",
"disabled_reason": null,
"secret_prefix": "whsec_DEMO_2",
"previous_secret_expires_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-12-02T13:58:41.000Z",
"last_failure_at": null,
"created_at": "2026-12-02T09:00:00.000Z",
"updated_at": "2026-12-02T14:05:00.000Z"
},
{
"id": "3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17",
"name": "PMS-Anbindung",
"url": "https://pms.example.com/hooks/litelog",
"events": [
"incident.created",
"task.completed",
"patrol.missed"
],
"status": "active",
"disabled_reason": null,
"secret_prefix": "whsec_BEISPI",
"previous_secret_expires_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-12-01T10:42:07.000Z",
"last_failure_at": null,
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
}
]
}
POST /v1/webhooks
Create an outgoing webhook.
Scope: webhooks:write
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | At most 120 characters. |
url |
string | yes | At most 2000 characters. |
events |
array (string) | yes | Values: form_response.submitted, incident.created, task.completed, task.completion.cancelled, task.completion.reassigned, patrol.completed, patrol.missed, time_entry.started, time_entry.stopped. |
Example call
curl -X POST "https://api.litelog.de/api/v1/webhooks" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"name": "PMS-Anbindung",
"url": "https://pms.example.com/hooks/litelog",
"events": [
"incident.created",
"task.completed",
"patrol.missed"
]
}'
Example response (201)
{
"data": {
"id": "3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17",
"name": "PMS-Anbindung",
"url": "https://pms.example.com/hooks/litelog",
"events": [
"incident.created",
"task.completed",
"patrol.missed"
],
"status": "active",
"disabled_reason": null,
"secret_prefix": "whsec_BEISPI",
"previous_secret_expires_at": null,
"consecutive_failures": 0,
"last_success_at": null,
"last_failure_at": null,
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z",
"secret": "whsec_BEISPIEL_NICHT_VERWENDEN_000000000000000000"
}
}
GET /v1/webhooks/{id}
Get an outgoing webhook.
Scope: webhooks:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Example call
curl "https://api.litelog.de/api/v1/webhooks/3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"id": "3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17",
"name": "PMS-Anbindung",
"url": "https://pms.example.com/hooks/litelog",
"events": [
"incident.created",
"task.completed",
"patrol.missed"
],
"status": "active",
"disabled_reason": null,
"secret_prefix": "whsec_BEISPI",
"previous_secret_expires_at": null,
"consecutive_failures": 0,
"last_success_at": "2026-12-01T10:42:07.000Z",
"last_failure_at": null,
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-01T08:15:00.000Z"
}
}
PATCH /v1/webhooks/{id}
Change, pause, re-activate or renew the secret.
Scope: webhooks:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Body fields (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | no | At most 120 characters. |
url |
string | no | At most 2000 characters. |
events |
array (string) | no | Values: form_response.submitted, incident.created, task.completed, task.completion.cancelled, task.completion.reassigned, patrol.completed, patrol.missed, time_entry.started, time_entry.stopped. |
status |
string | no | Values: active, paused. |
rotate_secret |
boolean | no | Values: true. |
grace_hours |
integer | no | Only with rotate_secret. Hours the previous secret keeps signing X-LiteLog-Signature-Previous. Default: 24; 0 – 168. |
Example call
curl -X PATCH "https://api.litelog.de/api/v1/webhooks/3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"rotate_secret": true,
"grace_hours": 24
}'
Example response (200)
{
"data": {
"id": "3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17",
"name": "PMS-Anbindung",
"url": "https://pms.example.com/hooks/litelog",
"events": [
"incident.created",
"task.completed",
"patrol.missed"
],
"status": "active",
"disabled_reason": null,
"secret_prefix": "whsec_MUSTER",
"previous_secret_expires_at": "2026-12-03T09:30:00.000Z",
"consecutive_failures": 0,
"last_success_at": "2026-12-01T10:42:07.000Z",
"last_failure_at": null,
"created_at": "2026-12-01T08:15:00.000Z",
"updated_at": "2026-12-02T09:30:00.000Z",
"secret": "whsec_MUSTER_NICHT_VERWENDEN_00000000000000000000"
}
}
DELETE /v1/webhooks/{id}
Delete an outgoing webhook.
Scope: webhooks:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Example call
curl -X DELETE "https://api.litelog.de/api/v1/webhooks/3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17" \
-H "X-Api-Key: $KEY"
Example response: 204, no body.
POST /v1/webhooks/{id}/test
Send a test delivery now.
Scope: webhooks:write
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
Example call
curl -X POST "https://api.litelog.de/api/v1/webhooks/3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17/test" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": {
"ok": true,
"status_code": 200,
"duration_ms": 184,
"error_code": null
}
}
GET /v1/webhooks/{id}/deliveries
Delivery log of a webhook (last 30 days).
Scope: webhooks:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string (uuid) | yes | — |
page |
query | integer | no | Default: 1; at least 1. |
pageSize |
query | integer | no | Default: 50; 1 – 100. |
status |
query | string | no | Values: pending, running, delivered, failed, dead, skipped. |
Example call
curl "https://api.litelog.de/api/v1/webhooks/3f2b8c1e-5a4d-4e7b-9c1a-6d2f8e0b4a17/deliveries?page=1&pageSize=50" \
-H "X-Api-Key: $KEY"
Example response (200)
{
"data": [
{
"id": "90214",
"event_id": "c5d81e3a-7b42-4f09-a6e1-3d9b2f8c0a65",
"event_type": "task.completed",
"is_test": false,
"status": "pending",
"attempts": 1,
"last_status_code": 503,
"last_error": "http_status",
"duration_ms": 2310,
"next_attempt_at": "2026-12-01T11:20:00.000Z",
"delivered_at": null,
"created_at": "2026-12-01T11:15:02.000Z"
},
{
"id": "90211",
"event_id": "0a6f4c2e-1d83-4b57-9e20-8c7b5a3d1f94",
"event_type": "incident.created",
"is_test": false,
"status": "delivered",
"attempts": 1,
"last_status_code": 200,
"last_error": null,
"duration_ms": 184,
"next_attempt_at": null,
"delivered_at": "2026-12-01T10:42:07.000Z",
"created_at": "2026-12-01T10:42:06.000Z"
}
],
"total": 2,
"page": 1,
"pageSize": 50
}
