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 #
https://waforge.online/api/v1/connect/eventsSigned 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.
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 #
| type | data | Effect |
|---|---|---|
stock.changed | product_id, variant_id?, quantity_available?, status | Cached stock dropped |
price.changed | product_id, variant_id?, price | Cached prices dropped |
product.updated, product.deleted | product_id | Cached product dropped |
order.status_changed | order_number, status | Recorded. Order status is never cached, so nothing needs dropping. The agent never messages a customer because of an event. |
booking.cancelled | booking_id | Recorded |
hours.changed, faq.updated | none | Cache 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 #
| Status | Body | Meaning |
|---|---|---|
| 200 | {"received": true, "duplicate": false} | Accepted |
| 200 | {"received": true, "duplicate": true} | This Idempotency-Key was already received for your account. Do not retry. |
| 401 | problem+json | Bad signature, unknown key id, or clock off by more than 5 minutes |
| 422 | problem+json | Body is not JSON, unknown type, or no Idempotency-Key header and no id in the body |
| 429 | More 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.