Skip to main content
A webhook sends Hoista events to an HTTPS address you control. Use one to wake a background agent when a deployment finishes or an approval is waiting, without keeping a chat open.

Add a webhook

In Desktop, open Settings → Webhooks and choose Add a webhook. Enter the Address, choose which events to Send and which project it’s For, then choose Add webhook. Copy the signing secret right away. Hoista shows it only once. From the CLI:
Name single events such as deploy.succeeded, or a family such as deploy.*. Leave out --events to get every event. A webhook receives events from the moment you add it. The address must be public HTTPS. Hoista won’t send to this computer, a private network or a link-local address, and it doesn’t follow redirects. It looks up the address again before every delivery.

Verify each delivery

Each delivery is a POST with a JSON body and these headers: In your receiver:
  1. Split Hoista-Signature into t and v1.
  2. Compute the HMAC-SHA256 of t, a dot and the raw request body, using the secret, as hex. Compare it with v1 in constant time.
  3. Reject the delivery if t is more than five minutes from now.
  4. Skip it if you’ve already handled that Hoista-Event-Id.
  5. Return a 2xx status within 10 seconds.
Verify against the raw body before you parse the JSON.

Retries and failures

If a delivery doesn’t get a 2xx response, Hoista tries again after 30 seconds, 2 minutes, 10 minutes, 1 hour and 6 hours. After that it marks the delivery as failed. In Desktop, choose Deliveries on a webhook to see each attempt.
In Desktop, the ⋮ menu on a webhook has New secret and Remove. Rotating creates a new secret and the old one stops working at once, so update your receiver at the same time. Removing a webhook also deletes its delivery history.

What an event allows

An event only tells your receiver that something happened. To act on it, the agent connects through the MCP server with its own access, and the normal approvals apply. Only you can add, rotate or remove webhooks. Agents can’t.

Connect an agent

Every tool, and how each connects.

Approvals

What Hoista asks you before an agent acts.

Data protection

What Hoista stores and where.