Enigma Developers
API ReferenceWebhooks

Inbound message

A contact sent a message. The body is the message content plus the sender's waId; type says which content fields are present. See Webhooks for headers and signature verification.

Request Body

application/json
  1. body

Depends on type. Text messages carry text; media messages carry mediaUrl.

type*string
Value in"text""image""document""sticker""video""audio""button_reply""list_reply""nfm_reply""nfm_screen_reply""location""message_with_buttons""flow""contact""order""template"
text?string
mediaUrl?string
waId*string

Sender's WhatsApp ID (phone number).

[key: string]?any

Response Body

Return any 2xx within 10 seconds.

Example Requests

POST/inbound_message