Step 7: Send a Test Message

POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages

After you have enabled the customer service window, you can send a test message to the consumer number you used in the previous steps. To do this, see the API call below.

Response

If successful, your sample response includes a message ID ( wamid.############ ). You need to use that ID to track the progress of your messages via Webhooks.

Request Body

{"messaging_product"=>"whatsapp", "to"=>"16315555555", "text"=>{"body"=>"hello world!"}}

HEADERS

| Key | Datatype | Required | Description |

RESPONSES

status: OK

{"id":"wamid.gBGGFlaCGg0xcvAdgmZ9plHrf2Mh-o"}