WhatsApp Chatbot

Swagger API Contract Link

Send user sent messages to Chatbot through GET request

Forward user sent message to Chatbot through GET request.

get

/messages

Query parameters
tostringrequired

The receipient mobile number of message

fromstringrequired

The sender mobile number of message

media_typestringrequired

Type of message ex:- text, image

textstring

If media_type is "text" then the actual message would be picked from this field

media_datastring

media data if meda_type other than text

Responses
curl -L \
  --url '/whatsapp-webhook/messages?to=text&from=text&media_type=text'

No body

Send user sent messages to Chatbot through POST request

Forward user sent message to Chatbot through POST request

post

/messages

Query parameters
tostringrequired

The receipient mobile number of message

fromstringrequired

The sender mobile number of message

media_typestringrequired

Type of message ex:- text, image

textstring

If media_type is "text" then the actual message would be picked from this field

media_datastring

media data if meda_type other than text

Responses
curl -L \
  --request POST \
  --url '/whatsapp-webhook/messages?to=text&from=text&media_type=text'

No body

Last updated

Was this helpful?