Zum Hauptinhalt springen

Incoming webhook

Verbindungstypwebhook

An address that other systems call to start a flow, with the data they send.

Auf einen Blick​

EigenschaftWert
Class namewebhook
ResourceConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: webhook}
Driverwebhook
Provideshttp-inbound
Modepush (the outside system pushes data in)

A workspace adds this connection on the Connections page or with lumen connect; credentials are kept in a Secret, never in the flow.

Einstellungen​

Wird unter config: im Connector gesetzt.

EinstellungTypStandardwertBeschreibung
endpointIdstring-Endpoint id
signaturestring"none"With HMAC-SHA256 every call must carry a signature of its body made with a secret only you and Lumen know.one of none, hmac-sha256
signatureHeaderstring-The header the signature arrives in. Empty is X-Signature-256, as sha256=<hex> or just the hex.maxLength 64

Das vollständige JSON Schema dieser Einstellungen: webhook.schema.json.

Verwendung​

connector.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-webhook
namespace: tenant-acme
spec:
classRef: {name: webhook}
config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: webhook-received-webhook-example
namespace: tenant-acme
spec:
displayName: "Incoming webhook"
triggers:
- id: start
ref: {name: webhook-received}
connectorRef: {name: my-webhook}
next: [notify-in-app]
nodes:
- id: notify-in-app
stepRef: {name: notify-in-app}
config:
body: 'Total: {total}'
title: New invoice from {supplier}
to: admins