Incoming webhook
Verbindungstyp
webhookAn address that other systems call to start a flow, with the data they send.
Auf einen Blick
| Eigenschaft | Wert |
|---|---|
| Class name | webhook |
| Resource | ConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: webhook} |
| Driver | webhook |
| Provides | http-inbound |
| Mode | push (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.
| Einstellung | Typ | Standardwert | Beschreibung |
|---|---|---|---|
endpointId | string | - | Endpoint id |
signature | string | "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 |
signatureHeader | string | - | 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
War diese Seite hilfreich?