Back to appHeyWAGet API key

Webhooks

Create subscription

POST/api/public/v1/webhooks

Registers a public HTTPS callback. Signing secret is returned at creation; keep it private.

New state-change events require the API migration. Verify HMAC-SHA256 of the exact raw body against x-heywa-signature. Deduplicate x-heywa-event-id; delivery is at least once, with up to three attempts.

Authorizations

x-api-keystring· headerrequired

Your workspace API key from Settings. Keep it server-side.

Parameters

labelstring· body

Example: "CRM updates"

urlstring· body

Example: "https://hooks.yourdomain.com/heywa"

eventsarray· body

Example: ["reply_received","campaign_paused"]

Response codes

200
Success
400
Invalid input
401
Missing, invalid or revoked API key
402
Inactive plan or quota exceeded
404
Resource not found
409
Campaign state or idempotency conflict
422
Launch requirements not satisfied
429
Rate limit exceeded; follow Retry-After
503
API setup required or temporarily unavailable

Rate limit: 300 requests/minute per key. Read endpoints return identifiers and operational metadata, not contact personal information or message content.