How it works without Apex
Pick the Apex webhook surface built for your direction of data flow: register an inbound source at /api/webhooks (returning a one-time whsec_ HMAC secret) to ingest signed JSON, use /api/notifications for Slack or HTTPS alerts on six workspace triggers (including experiment.started and experiment.completed), or register a journey Webhook destination at /api/webhook-destinations with HMAC signing, key rotation, and ping tests.
How Apex does it for you
Apex separates inbound ingestion, operator alerts, and outbound journey webhooks so each path enforces HMAC-SHA256 verification, blocks private-IP SSRF targets, and supports one-click secret rotation and test pings.
How to set this up in 5 steps
Choose which of the three webhook surfaces fits your flow
Use
/api/webhooksfor signed inbound events into Apex,/api/notificationsfor Slack or HTTP operator alerts, and/api/webhook-destinationsfor outbound steps inside an Adaptive Journey.Register inbound sources and store the one-time whsec_ secret
POST to
/api/webhookswith a lowercase source name and optional dot-path fieldMapping. Save the returned whsec_ secret immediately because Apex shows it only once, and sign incoming bodies with x-webhook-signature, x-hub-signature-256, or stripe-signature.Subscribe Slack or HTTPS endpoints to operator alerts
POST to
/api/notificationsas a workspace admin with type slack or webhook and any subset of the six supported triggers: experiment.started, experiment.completed, task.created, budget.recommendation, model.drift, or scoring.changed.Register journey destinations with private-IP SSRF protection
POST an HTTPS baseUrl to
/api/webhook-destinations(or configure it in Set up Apex). Private IPs and cloud metadata hosts are rejected automatically, and each destination receives its own HMAC signing key.Ping your destination and test key rotation
Send a live test payload via
POST /api/webhook-destinations/:id/ping to verify your signature check, and usePOST /api/webhook-destinations/:id/rotate whenever you need to roll signing secrets.
Three webhook surfaces at a glance
Teams often assume one webhook endpoint handles everything. In Apex's Webhooks API, three distinct surfaces exist on purpose so inbound ingestion, workspace alerts, and journey automation never blur security permissions:
| Surface | Path | Direction | Who configures it |
|---|---|---|---|
| Inbound source | /api/webhooks | Outside system into Apex | Session or apex_sk_ key |
| Operator alerts | /api/notifications | Apex to Slack or HTTPS | Workspace admin only |
| Journey destination | /api/webhook-destinations | Adaptive Journey step to your stack | Workspace admin only |

Inbound sources and HMAC headers
When an external system outside Apex's native connectors needs to push signed analytics payloads into Apex, register a lowercase source name and dot-path fieldMapping:
curl -X POST https://app.apex.inc/api/webhooks \
-H "Content-Type: application/json" \
-H "x-api-key: apex_sk_..." \
-d '{
"source": "billing",
"fieldMapping": {
"customer.email": "email",
"amount": "value"
}
}'Store the returned whsec_ secret immediately because Apex displays it only at creation time. Every incoming POST to https://app.apex.inc/api/webhooks/<source> must sign the raw request body with HMAC-SHA256 using one of three headers: x-webhook-signature, x-hub-signature-256, or stripe-signature. Unsigned or tampered payloads are rejected automatically.
Honest scope note: Custom /api/webhooks/:source sources map payloads into analytics rows rather than writing revenue events today. For verified Stripe, HubSpot, or Shopify revenue, use the native connector or the Server Events API.Operator alerts and journey destinations
Operator alerts (/api/notifications)
To notify Slack or an internal HTTPS receiver when experiments or scoring models move, create a notification rule subscribing to any subset of the six supported triggers:
experiment.startedandexperiment.completedtask.createdandbudget.recommendationmodel.driftandscoring.changed
Unknown trigger names are dropped (there is no goal.reached, lead.created, or connector.synced trigger). Inspect recent delivery attempts anytime with GET /api/notifications?logs=true.

Journey destinations (/api/webhook-destinations)
A journey Webhook step never lets an editor paste an unvetted URL directly on the canvas. First register the HTTPS baseUrl under Set up Apex (or POST /api/webhook-destinations). Apex rejects private IPs and metadata hosts to prevent SSRF, issues an isolated HMAC signing key per destination, and provides two operational endpoints:
POST /api/webhook-destinations/:id/pingto test connectivity and signature verification livePOST /api/webhook-destinations/:id/rotateto roll a destination's signing key cleanly
What this costs on Apex
Live Apex pricing · Pay-as-you-go
Estimated Apex cost for SaaS ops team routing 12,000 inbound webhook events and 8,000 journey webhook actions per month
$0 / month
Covered by monthly free allowances.
| Apex meter / schedule | Scenario volume | Free allowance / basis | Rate | Apex cost |
|---|---|---|---|---|
Events Signed inbound webhook events recorded via /api/webhooks/:source (12,000 monthly custom inbound payloads) | 12,000 / mo | 1M / month | $5 per 100K events | $0 |
Orchestrations Journey step evaluations and holdout assignments (8,000 monthly journey assignments) | 8,000 / mo | 1M / month | $5 per 100K assignments | $0 |
Operator alerts to Slack and HTTP via /api/notifications and signed journey webhook deliveries carry zero extra ad-platform activation charge. History: 13 months no card, 3 years with card, 7 years once you've paid an invoice. Live pricing.
Operator alerts to Slack and HTTP carry no extra per-notification fee, while inbound analytics payloads and outbound journey webhook calls meter cleanly alongside your regular workspace usage.
