← All tutorialsInfra

Webhook fan-out

One event in, N webhooks out. The platform handles retries and records every delivery in /audit-logs.

Cost~$0.0005 per delivery
Operations
notification.webhook

Prerequisites

  • notification.webhook enabled.

Walkthrough

1. Fan out

Loop your subscriber URLs, fire one call each. Use a per-delivery idempotency key so retries dedupe.

bash# One delivery. The platform retries 5xx with backoff and logs each attempt.
curl -X POST https://www.upivia.com/v1/service-requests \
  -H "Authorization: Bearer $AGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "service":"notification",
    "operation":"webhook",
    "payload":{
      "url":"https://customer.example.com/hooks/order",
      "method":"POST",
      "headers":{"X-Signature":"<hmac>"},
      "body":{"event":"order.created","id":"ord_123"}
    },
    "idempotency_key":"deliver_ord_123_customer.example.com"
  }'

Next steps

Audit every call at /audit-logs, watch spend at /usage, and tune budgets per service on the agent's page.

Create an account →