Fired on all message creations, including your own.
postWebhookmessage.any
Payload
Example payload
{
"id": "evt_01aaaaaaaaaaaaaaaaaaaaaaaa",
"timestamp": 1634567890123,
"session": "default",
"metadata": {
"user.id": "123",
"user.email": "email@example.com"
},
"engine": "WEBJS",
"payload": {
"id": "false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA",
"timestamp": 1666943582,
"from": "11111111111@c.us",
"source": "api",
"to": "11111111111@c.us",
"media": {
"url": "http://localhost:3000/api/files/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga",
"mimetype": "audio/jpeg",
"filename": "example.pdf",
"s3": {
"Bucket": "my-bucket",
"Key": "default/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga"
}
},
"mediaUrl": "http://localhost:3000/api/files/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga",
"replyTo": {
"id": "AAAAAAAAAAAAAAAAAAAA",
"participant": "11111111111@c.us",
"body": "Hello!",
"media": {
"url": "http://localhost:3000/api/files/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga",
"mimetype": "audio/jpeg",
"filename": "example.pdf",
"s3": {
"Bucket": "my-bucket",
"Key": "default/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga"
}
}
}
},
"me": {
"id": "11111111111@c.us",
"lid": "123123@lid",
"jid": "123123:123@s.whatsapp.net",
"reachoutTimelock": {
"enforcementType": "RESTRICT_ALL_COMPANIONS",
"isActive": true,
"timeEnforcementEnds": 1784477333
},
"messageCapping": {
"cappingStatus": "FIRST_WARNING",
"totalQuota": 1000,
"usedQuota": 640,
"cycleStart": 1782874800,
"cycleEnd": 1785553199,
"mvStatus": "NOT_ELIGIBLE",
"oteStatus": "NOT_ELIGIBLE"
}
},
"environment": {
"version": "YYYY.MM.BUILD",
"engine": "WEBJS",
"tier": "PLUS",
"browser": "/usr/path/to/bin/google-chrome",
"platform": "linux/x86"
}
}Response
Return a 200 status to indicate that the data was received successfully
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.