How to receive the WhatsApp answers

If you want to receive the answers from the WA number connected to the api, you can use a webhook.

As soon as you add your endpoint, all the messages received in your number will be sent to this webhook with a POST method including the content in json format as follows:

{
  "type": "text",
  "from": "549191919191",
  "from_name": "Joan",
  "to": "54134123123",
  "file": "null",
  "message": "Text Message received in WhatsApp"
}

Setup

To setup the webhook, please use the link below to configure your webhook:
https://api.textmebot.com/webhook.php?apikey=<YOUR_APIKEY_HERE>

Test the webhook

You can test the webhook using your own tools or you can also test it using this online tool.

Receive with php

You can reuse this php code to implement the webhook in your own server.

Receive in Google AppSheet

If you use Google AppSheet, you can receive the answers into your App using the instructions documented here.

Create a chatbot in Botpress

If you are planning to create a chatbot, have a look at Botpress with TextMeBot API Video. (create a chatbot in 6min)