Integration & Automation

Outbound webhooks: sending events to other tools

Where a trigger drives Bricksta from the outside, an outbound webhook works the other way: when something happens in a case, Bricksta sends the data to another system — for example Zapier, Make, n8n or your own backend. You find outbound webhooks in the menu under Automation → Outbound.

On this page

Creating a webhook

  1. 1
    Open Automation → Outbound.
  2. 2
    Give the webhook a name, choose the template and the event it should react to.
  3. 3
    Enter the target address (URL) of the receiving system. It must be publicly reachable — Bricksta rejects addresses that point into an internal network (such as localhost, 127.0.0.1, private ranges or a cloud metadata address).
  4. 4
    Optional: generate a secret — Bricksta creates the value itself and adds a signature to each event delivery so the other side can verify authenticity. “generate” replaces an existing secret immediately; enter the new value at the receiver as well.
  5. 5
    Use “Send test” to check the connection before the webhook goes live.
The filled-in create form for a webhook: name “Onboarding an Zapier”, template picker “Mitarbeiter-Onboarding”, event picker and the target URL, with the “Add” button on the right.
The create form: enter name, template, event and target URL — then add.

How an outbound webhook works

A webhook listens for an event of a case for a given template. This can be the case itself (created, started, completed, cancelled, reopened), a task (ready, completed) or a phase (completed).

When it occurs, Bricksta posts the related data as JSON to the configured target address. Because almost every tool accepts inbound webhooks, this one building block covers any number of target systems.

The event “Task ready” reports every task of a case as soon as it becomes open, and after a back-jump again with a higher run_no. The body carries only identifiers: event, event_id, task_id, case_id and run_no. The other system fetches the content through the API, ideally with GET /api/v1/tasks, which also locks the task for processing. The event is created exactly once per task and run, and a retry carries the same event_id, so the other side can recognise a duplicate.

Only the transition to “open” is reported, and only while the webhook is active. A task that became open before the webhook was created or while it was paused, that is unblocked, or that is back in progress after a rejected approval, triggers no event. Conversely, GET /api/v1/tasks returns a reported task only while it is not blocked and no approval is pending. So reconcile regularly with GET /api/v1/tasks. An event also does not mean the API account may work on the task: GET /api/v1/tasks returns only what it may.

Case cancelled and case reopened
  • Case cancelled reports every cancellation of a case. Case reopened reports that a cancelled case continues.
  • The body carries event, event_id, case_id, case_number, status and occurred_at, the time in UTC. Bricksta never sends the cancellation reason.
  • If the webhook is paused when a case is cancelled or reopened, nothing is sent, not even later.
  • For a cancellation or change request, korrektur and ursprung_case_id are added.
  • A case can be cancelled and reopened several times. The sends do not always arrive in that order. Subscribe to both events and, per case, act on the latest occurred_at.
  • Reopening reports neither Case started nor Task ready a second time. Only a task that was never reported can send its first Task ready at that point. Which tasks are open again is returned afterwards by GET /api/v1/tasks.
  • If a send still fails after the retries (table below), Bricksta does not send it again later. GET /api/v1/cases/{id} returns the valid state of a case at any time.

Runs and retries

The outbound page: at the top the create form with name, template picker, event picker (“case completed”) and target URL; below it the webhook “Onboarding an Zapier” with template, event and active status.
The outbound page: at the top the create form with event picker and target URL, below it the existing webhooks with template, event and status.

Every send is recorded with its HTTP status under “Recent runs”, so you can see whether the other side accepted it. Use the active switch to pause a webhook without deleting it.

If the other side does not answer, Bricksta aborts the send after ten seconds and records it as a failed attempt — a stalled target therefore does not hold up your other webhooks. Every send for an event carries its identifier, in the header x-bricksta-event-id and as the field event_id in the body, which the signature also covers. A retry carries the same identifier: if the other side remembers the identifiers it has already processed, it recognises every duplicate. “Send test” sends a sample without an identifier and without a signature.

Accepted (status 200 to 299)Done. Bricksta never calls the target again for this event.
No answer, address not resolvable for now, status 500 or above, 408, 425 or 429Bricksta calls the target again after about five minutes, at most three calls per event in total, the first one included.
Any other error, such as 400 or 404No further call. The error is under “Recent runs”, and the following events continue as usual.
Address points into an internal networkNo call goes there and nothing is retried. If a public address redirects there, only the first call reaches the public address. The reason is under “Recent runs”.
Entry without an HTTP status and without an errorBricksta could not record the outcome of a call and does not call again, so no duplicate arises.

Managing outbound webhooks and seeing their secret requires the template-management right (template.manage). Members without this right see the webhooks, but not their secret.