Set up a webhook
Who this is for: people who want another system (GitHub, Stripe, a web shop or your own app) to start a workflow when something happens.
Before you start: you need the Manage webhooks permission (admins and editors have it).
A webhook is a URL that another system calls. Each call is an event. Liitora checks that the event is genuine, records it, and starts every active workflow that listens to the webhook.

Create the webhook in the app
Section titled “Create the webhook in the app”- Open Webhooks.
- Select Add a webhook. When there are none yet, the button is in the middle of the page.
- Fill in Name. Use lowercase letters, numbers and hyphens, for example
devices-changed. Workflows listen on this name, and you cannot change it later. - Add a Description if you like.
- Pick the Sender: Any system, GitHub or Stripe.
- For Any system, pick How requests are checked: Signed by the sender (recommended), A token in each request or A username and password in each request. The hint under the field names the technical method (an HMAC-SHA256 signature, a Bearer token or HTTP Basic). GitHub and Stripe always use their own signatures.
- Select Create the webhook.
- The next screen shows the URL, the steps for the sender and the signing secret, with Copy this secret now. It won’t be shown again, not even to an admin. Select Copy the URL and Copy the secret, and put both into the sender.
- Select I’ve copied it. Nobody can show the secret again. If you didn’t copy it, open the webhook and select Rotate secret to get a new one.
- Select Open the webhook to see its page.
Your plan sets how many webhooks your company can have (see Limits per plan). When all of them are in use, delete one you no longer need before you add another.
Or ask your AI assistant
Section titled “Or ask your AI assistant”Ask, for example: “When our web shop sends a new ticket to a webhook, create it in the service desk.” The assistant uses create_webhook_workflow, which creates the webhook (or reuses one with that name) and a draft workflow in one go. It can also create only the webhook with create_webhook_endpoint.
The assistant gets the URL and the signing steps, never the secret. To get a secret to copy, open the webhook on the Webhooks page and select Rotate secret: the new secret is shown to you once. If you lose it later, rotate again.
Connect a workflow
Section titled “Connect a workflow”A workflow listens on an endpoint with on.webhook.endpoint:
on: webhook: { endpoint: devices-changed }The event is available to the steps as trigger.body (parsed JSON, a form as an object, or text) and trigger.headers. Senders can use JSON, forms, plain text, CSV (text/csv) or XML. JSON must be strict and nested at most 64 levels deep, or the sender gets 400 invalid_body. To get XML, CSV or form fields as an object in trigger.body, add parse: xml, parse: csv or parse: form to the trigger, see Webhook. Only active workflows are started. Until one is active, the webhook’s panel says No workflow uses this webhook yet. Events that arrive are kept, but they start nothing.
A webhook workflow needs a test case for a malformed payload before it can be activated. See Read and write workflow tests.
Set up your own system
Section titled “Set up your own system”- Give the sender the URL.
- Store the signing secret in the sender’s own secret store, not in its code.
- Sign each request as described in Webhook signing, which has samples in bash, Node.js, Python and PowerShell.
- Send an
Idempotency-Keyheader with a unique id per event, so a retried event never starts a workflow twice. - Retry on answers 429 and 5xx.
Set up GitHub
Section titled “Set up GitHub”- Create the webhook with Sender set to GitHub.
- Copy the secret from the screen that shows it once after you create the webhook. If you didn’t copy it, open the webhook, select Rotate secret and copy the new one.
- In GitHub, open the repository (or organization) Settings, then Webhooks, then Add webhook.
- Paste the URL into Payload URL.
- Set Content type to
application/json. - Paste the secret into Secret.
- Choose the events you want and select Add webhook.
- GitHub sends a
pingevent. It shows up under Recent events in the webhook’s panel.
Set up Stripe
Section titled “Set up Stripe”Stripe makes the signing secret itself, so the order is different.
- Create the webhook with Sender set to Stripe.
- Copy the URL. In the Stripe Dashboard, add a webhook endpoint with that URL and choose the events.
- Stripe shows the signing secret (it starts with
whsec_). Copy it. - Back in Liitora, select Paste Stripe’s signing secret on the done screen, or open the webhook and select Add the value in the note about its signing secret (people who manage secrets), or open Secrets and add the value at the top of the list. See Add a secret from a link.
- Until the secret is pasted, Liitora refuses every event with 401.
Check that it works
Section titled “Check that it works”- In the webhook’s panel, open Show technical details, then Send a test event, and select Show the script.
- Copy the script. Set
LIITORA_WEBHOOK_SECRETto the signing secret in your terminal, then run the script. - The answer is
{"duplicate":false,"event_id":"...","run_ids":[...]}. A new line appears under Recent events, with a link to each run it started. - Open Runs to follow the run.
If the answer is 401, see A webhook returns 401.
Pause or delete a webhook
Section titled “Pause or delete a webhook”- Pause in the webhook’s panel, under What you can do, refuses all events, as if the URL did not exist. Turn on accepts them again.
- Delete removes the URL at once, with its events and its secret. This can’t be undone. A person must do it.
If Liitora blocks a webhook
Section titled “If Liitora blocks a webhook”If a webhook is used in a way our terms don’t allow, for example to receive spam, we can block it. Its panel then says Liitora has blocked this webhook, with the date and the reason. Every event sent to its URL is refused, like for an unknown URL. We email the admins of your workspace when we block a webhook. Pausing and turning it on again doesn’t lift the block, and neither does deleting the webhook and creating it again with the same name. Contact support to get it lifted.
Settings through the API
Section titled “Settings through the API”The same settings are under Edit settings in the webhook’s panel. To change them from a script, use PATCH /api/v1/webhook-endpoints/{id} and an API token that has the Manage webhooks permission:
| Field | Meaning | Default |
|---|---|---|
ip_allowlist |
Sender addresses or ranges allowed, for example ["203.0.113.0/24"]. Empty means any address. At most 100 |
empty |
rate_limit_per_min |
Events per minute for this webhook, 1 to 100000 | 60 |
payload_max_bytes |
Largest body accepted, 1 to 262144 bytes | 262144 |
replay_window_s |
Accepted clock difference in seconds, 1 to 3600 | 300 |
signature_header |
Name of the signature header for the Liitora scheme | X-Liitora-Signature |
curl -sS -X PATCH "https://<your Liitora API address>/api/v1/webhook-endpoints/<endpoint id>" \ -H "Authorization: Bearer $LIITORA_API_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"ip_allowlist": ["203.0.113.0/24"], "rate_limit_per_min": 120}'A change reaches the webhook receiver within about 10 seconds.