À quoi servent les webhooks ?
MsgFlash can send signed HTTP requests to your application for each important event:
instance.connected
instance.disconnected
message.sent
message.delivered
message.read
message.failed
message.received
Manage your endpoints through the public API
Parameters
POST /api/v1/webhooks
DELETE /api/v1/webhooks/{id}
Listr
Create
Response:
Save the secret immediately. It is required to verify the HMAC signature.
Delete
Common errors
Example de payload
Verify the signature
Algorithme : HMAC-SHA256(secret, rawBody)
Livraison et retry
- 5 tentatives
- backoff exponentiel
- any no-2xx response triggers a retry
Répondez 200 rapidement puis traitez en asynchrone.