Skip to main content
POST
Add a webhook endpoint

Authorizations

Authorization
string
header
required

A project key (Developers → API keys). Keep it on your server, not in an app.

Headers

traceparent
string

W3C Trace Context; joins your trace to ours

Body

application/json
url
string<uri>
required

Where Lurk sends events. HTTPS only, on the public internet

Maximum string length: 2048
events
enum<string>[]

Which events to send; all of them by default

Required array length: 1 - 3 elements
Available options:
activity.created,
rule.live,
unit.used
description
string

A note for your team

Maximum string length: 200

Response

Add a webhook endpoint

id
string
required

The endpoint's whe_… ID

url
string
required

Where Lurk sends the events

events
enum<string>[]
required

The events it receives

Available options:
activity.created,
rule.live,
unit.used
description
string | null
required

Your note for the team; null if there is none

status
enum<string>
required

disabled endpoints get nothing and do not count toward the limit of 25 active ones

Available options:
active,
disabled
disabled_reason
enum<string> | null
required

Why it was switched off: failing after 15 failed attempts in a row, manual when the person who added it can no longer change the project. Null while it is active

Available options:
failing,
manual,
null
created_at
string<date-time>
required

When it was created: UTC, ISO 8601

secret
string
required

Verifies the signature on each delivery. Shown once; Lurk cannot show it again