API referenceWebhook events
message.received
A direct message (or postback) from a person to an Instagram, Facebook Page or WhatsApp account
X-Idempotency-Key*stringapplication/json- body
id*stringIdempotency key (= X-Idempotency-Key)
event*stringValue in
"post.published""post.failed""post.pending_approval""post.approved""post.rejected""action.pending_approval""action.approved""action.rejected""action.executed""action.failed""comment.received""mention.received""message.received""message.sent""message.read""message.delivered""message.reaction""message.status""template.status""template.quality""account.quality""account.connected""account.disconnected""connection.pending""phone_number.provisioned""phone_number.release_scheduled""phone_number.released""phone_number.failed""webhook.test"createdAt*stringFormat
date-timedata*Acknowledged; anything else is retried (6 attempts, exponential backoff)
Example Requests
POST/message.received
application/json
{ "id": "string", "event": "post.published", "createdAt": "2019-08-24T14:15:22Z", "data": {}}{ "X-SocialAPI-Signature": "string", "X-SocialAPI-Timestamp": "string", "X-SocialAPI-Event": "string", "X-SocialAPI-Delivery": "string", "X-Idempotency-Key": "string"}mention.received Webhook
The account was mentioned (Threads, Facebook mention field, Instagram mentions field where offered; with Instagram Login @mentions in comments arrive as comment.received)
message.sent Webhook
A message sent by the account: through Postgale, or elsewhere (Meta echo, e.g. from the Instagram app)