דלג לתוכן הראשי

Webhook נכנס

Connection typewebhook

כתובת שמערכות אחרות קוראות לה כדי להפעיל תהליך, עם הנתונים שהן שולחות.

במבט אחד​

מאפייןערך
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.

הגדרות​

Set under config: on the Connector.

הגדרהסוגברירת מחדלתיאור
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

ה-JSON Schema המלא של ההגדרות: webhook.schema.json.

שימוש​

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