Handle WhatsApp webhook retries without duplicate replies.
Separate event delivery from message execution so a repeated callback does not become another WhatsApp send.
Prelaunch information. Confirm availability and limits for your installation before relying on a workflow.
A repeated event is not a new request to reply.
A receiver may return too slowly, a network connection may close after acceptance, or a provider may retry a delivery. SuperSkope’s customer webhooks are at least once and may arrive out of order. Deduplicating only inside an in-memory JavaScript set will fail after a process restart.
Verify raw bytes before parsing.
Check X-SuperSkope-Timestamp and X-SuperSkope-Signature using the signing secret supplied for that subscription. The signature covers timestamp + a full stop + the exact request body bytes. Reject old timestamps and compare signatures in constant time. A parsed-and-reserialized body may not match the signed bytes.
The older agent bridge uses a different timestamp/envelope contract. Choose the verifier for your installed API version, rather than guessing from a header with a familiar name.
Accept durably, then do the work.
- Validate the signature, timestamp and bounded body.
- Insert the event ID into durable storage with a uniqueness constraint.
- Create the business job in the same transaction.
- Return 2xx after acceptance, without waiting for an AI reply.
- Let a worker fetch permitted content and process the job once.
Use a second identity for the outgoing effect.
An event ID identifies an incoming fact. A stable idempotency key identifies a particular outgoing action. A single event can legitimately produce several separately authorised actions, so keep both references. On an uncertain send, inspect the original request state before any new action. Webhook redelivery is not permission to replay a WhatsApp effect.
Plan for gaps and ordering.
Persist the returned event cursor, process continuation pages and handle an expired cursor with an explicit resync. Current source retention is bounded to seven days or 50,000 events. Customer notifications carry metadata; fetch message content and media separately with appropriate scope.
Continue reading.
Keep your business system in charge.
Use a scoped API, server SDK, signed webhooks and a local MCP adapter, with honest connector limits.
A WhatsApp API for the system you want to build.
Connect your own backend or agent to WhatsApp messages, groups and files with explicit permissions and recorded outcomes.
Start with one workflow.
Describe your team, the conversations involved and what you want to improve.
Discuss a managed pilot