Webhooks and automations

Outgoing webhooks for resource events, incoming listeners, the Hypris-Signature header and triggering automations.

On this page

Hypris talks to other systems in both directions. An outgoing webhook sends an event from the workspace to your address when something changes in a resource. A webhook listener accepts a request from outside and runs an automation. You can also run an automation with a regular API request.

Outgoing webhooks

You attach an outgoing webhook to a specific resource: a workspace, database, field, document, whiteboard or agent. When an event from the list you choose occurs in that resource (or its children), Hypris sends a POST to the given address.

Webhooks in workspace settingsWebhooks in workspace settings
You attach an outgoing webhook to a resource and choose the event types.

You open the settings in the app:

When creating one, you provide a name, a URL, a list of event types (activityItemTypes), optional conditions on payload fields and whether Hypris should retry delivery after an error. You get the signing secret (whsec_…) when it's created, and you can see it when editing the webhook.

What arrives

The body is JSON with the activity event. The signature header is Hypris-Signature.

POST to your URL
{
  "type": "database.item.created",
  "payload": {},
  "resourcePath": [],
  "resourceId": "65a1f0c2b3d4e5f601234567",
  "resourceType": "database",
  "authorEntity": {"id": "…", "type": "user"},
  "deliveryId": "65a1f0c2b3d4e5f601234568:65a1f0c2b3d4e5f601234569"
}
FieldMeaning
typeThe event type, for example database.item.created. The full list is in the ActivityItemType glossary.
payloadEvent data. The shape depends on type.
resourcePathThe resource path from the workspace down.
resourceId / resourceTypeThe resource the event happened on.
authorEntityWho performed the action: a person, an agent or an app. May be missing.
deliveryIdA unique delivery: activityItemId:webhookId. Use it to avoid processing the same request twice.

The webhook object in API responses is described on the Webhook page.

Which events you can choose

The list depends on the resource you attach the webhook to. In the app you see only the events that resource supports. Examples:

ResourceExample events
Workspaceworkspace.updated, database.created, database.item.created, database.item.deleted, database.item.updated.state
Databasedatabase.updated, database.item.created, database.item.updated.value, database.property.created
Fielddatabase.property.updated, database.item.updated.value
Documentdocument.updated, document.archived, document.restored
Whiteboardwhiteboard.updated, whiteboard.archived
Agentagent.updated, agent.run.created, agent.run.updated

A workspace webhook also gets events from resources inside it, because Hypris looks for webhooks along the entire resource path.

Conditions

You can add conditions on payload fields to an event type. All of them must pass for the request to be sent.

OperatorMeaning
equals / notEqualsEqual or different.
contains / notContainsText contains a fragment.
in / notInThe value is on the list.

If the payload field is an array, equals and contains pass when at least one element matches. The negative operators require that none match. When comparing, Hypris takes entityId, then id, and finally the value itself.

The Hypris-Signature signature

Every request has the header:

Hypris-Signature: t=1715145600,v1=3b1c…
  • t is a Unix timestamp in seconds.

  • v1 is an HMAC-SHA256 of the signing key and the content t.body, in hex.

  • The secret starts with whsec_. Use the whole string, including the prefix.

  • Hypris rejects (and so should you) signatures older than 5 minutes.

Verification
import {createHmac, timingSafeEqual} from 'node:crypto'

function verifyHyprisSignature(secret, header, rawBody, nowSeconds = Math.floor(Date.now() / 1000)) {
  const match = /^t=(\d+),v1=([a-f0-9]+)$/.exec(header)
  if (!match) {
    return false
  }
  const timestamp = Number(match[1])
  if (Math.abs(nowSeconds - timestamp) > 5 * 60) {
    return false
  }
  const expected = createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest('hex')
  const actual = match[2]
  const expectedBuffer = Buffer.from(expected, 'hex')
  const actualBuffer = Buffer.from(actual, 'hex')
  return expectedBuffer.length === actualBuffer.length && timingSafeEqual(expectedBuffer, actualBuffer)
}

Verify the raw body of the request, not the object after JSON.parse. Otherwise the signature won't match.

Retries and errors

If you turn on retries, Hypris queues the delivery and tries again on network errors and non-success responses. A blocked address (for example a loop to an internal network) isn't retried. A disabled webhook or a missing secret ends the delivery without sending.

Incoming webhook

A webhook listener is a public address another system sends data to. Every accepted request runs automations with a Webhook trigger. You create listeners in the workspace, on the Webhook listeners page.

Webhook listenersWebhook listeners
A listener is a public URL that triggers an automation.
POST/webhook-listener/:webhookListenerId/trigger
cURL
curl -X POST "https://api.hypris.com/v1/webhook-listener/$LISTENER_ID/trigger" \
  -H "Content-Type: application/json" \
  -H "x-webhook-secret: $WEBHOOK_SECRET" \
  -d '{"orderId": "ORD-2026-0042", "total": 1250.5}'
  • This address doesn't require an API key. It's protected by the listener secret, if you set one, and we always recommend it.

  • You send the secret in the x-webhook-secret header. When the sender's system doesn't allow setting a header, pass it as a secret field in the body or in the URL parameters. Hypris removes secret from the data before it reaches the automation.

  • A missing or wrong secret ends with a 401 error.

  • The GET method also works. The input data is then the URL parameters.

  • An accepted request gets the response {"success": true, "data": {}}, and the automation continues on its own.

The listener object is described on the WebhookListener page.

Running an automation through the API

When you have an API key or a token, you can run an automation directly and get its result right away:

POST/automation/:automationId/run
{
  "triggerKey": "<trigger key, optional>",
  "payload": {"orderId": "ORD-2026-0042"}
}

The output field contains what the automation set with the Output step.

Webhook listenerOutgoing webhookPOST /automation/:automationId/run
DirectionInto HyprisOut of HyprisInto Hypris
AuthenticationListener secretHypris-Signature signatureAPI key or OAuth token
ResultAcknowledgment of receiptYour HTTP responseThe automation's result in the response
What it's forAnother system triggers an automationYour system listens for changes in HyprisYour own code that waits for the result

HTTP calls from automations

An automation calls an external API with the HTTP request step: you choose the method, URL, headers and body, and the response goes to the next steps. It doesn't replace outgoing webhooks: a webhook goes out on its own when an event occurs, while the HTTP step runs only when the flow reaches it.

How to build a flow is described in the Automations guide.