# Webhook נכנס

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

Source: https://docs.go-lumen.ai/he/reference/connections/webhook

## במבט אחד

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

## הגדרות

Set under `config:` on the Connector.

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

ה-JSON Schema המלא של ההגדרות: [webhook.schema.json](https://docs.go-lumen.ai/schemas/connections/webhook.schema.json).

## שימוש

```yaml title="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
```
