WaForgeDevelopers

Reference

Change events (webhooks)

Change events go from your site to WaForge: "stock of product p1 just changed". WaForge then drops its short cache, so the next customer question is read live from your feed. Optional, recommended for stock and prices.

Endpoint #

POST
https://waforge.online/api/v1/connect/events

Signed exactly like our requests to you (same feed secret, same algorithm), with METHOD = POST and path_and_query = /api/v1/connect/events. The kid in your signature tells WaForge which feed the event is for; the account is never taken from the body. Add Idempotency-Key = your event id.

Example
POST /api/v1/connect/events
Content-Type: application/json
Idempotency-Key: evt_123
WaForge-Signature: t=1762424400,kid=fs_k3j9x0aq1m2b7c,v1=...

{ "id": "evt_123", "type": "stock.changed", "occurred_at": "2026-11-06T10:15:00Z",
  "data": { "product_id": "p1", "variant_id": "v1", "quantity_available": 0, "status": "out_of_stock" } }

Event types #

typedataEffect
stock.changedproduct_id, variant_id?, quantity_available?, statusCached stock dropped
price.changedproduct_id, variant_id?, priceCached prices dropped
product.updated, product.deletedproduct_idCached product dropped
order.status_changedorder_number, statusRecorded. Order status is never cached, so nothing needs dropping. The agent never messages a customer because of an event.
booking.cancelledbooking_idRecorded
hours.changed, faq.updatednoneCache dropped
Pushed values are hints, not facts. WaForge drops every cached answer of that feed and reads your feed again at the next question; it never quotes a value from an event.

Responses #

StatusBodyMeaning
200{"received": true, "duplicate": false}Accepted
200{"received": true, "duplicate": true}This Idempotency-Key was already received for your account. Do not retry.
401problem+jsonBad signature, unknown key id, or clock off by more than 5 minutes
422problem+jsonBody is not JSON, unknown type, or no Idempotency-Key header and no id in the body
429More than 600 requests per minute from your IP. Retry later.

Retry 5xx and network errors with exponential backoff for up to 24 hours, keeping the same id. The WordPress plugin and the Laravel and Node packages include a ready sendEvent.