Portal Community

What the Webhook Capability Provides

The Webhook capability enables two complementary integration patterns:

DirectionNodePurpose
InboundWebhookTriggerNodeReceives HTTP POST from external system → starts workflow
OutboundWebhookCallNodeSends HTTP request to external URL → captures response

Inbound Webhook URL Pattern

POST https://api.bizfirstai.com/webhook/{tenantId}/{threadId}
Content-Type: application/json
X-Webhook-Signature: sha256={HMAC}

{
  "event": "order.created",
  "orderId": "ord-001",
  "amount": 1250.00
}

The entire payload becomes $json in the triggered workflow. All downstream nodes can access $json.event, $json.orderId, etc.

Outbound Call Pattern

Node Config:
{
  "url": "https://partner.example.com/api/notify",
  "method": "POST",
  "headers": { "X-Api-Key": "$env.PARTNER_KEY" },
  "body": {
    "orderId": "$output.createOrder.orderId",
    "status": "confirmed"
  }
}

Node Output:
{
  "statusCode": 200,
  "body": { "accepted": true, "referenceId": "ref-xyz" },
  "headers": { "Content-Type": "application/json" }
}

Security Model

Prerequisite: Read Guide35_NodeCapabilitiesOverview for the capability framework before diving into this guide.