---
title: "POST Handle incoming messages for WhatsApp Bot"
description: "Receives incoming messages from WhatsApp, processes 'add' commands or queries, and returns a response through Twilio's MessagingResponse."
last_updated: "2026-05-07T04:47:27.738573+00:00"
canonical_url: "https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/api/whatsapp-bot/whatsapp-bot-chat"
---

<APIEndpoint
  method={"POST"}
  path={"/chat"}
  summary={"Handle incoming messages for WhatsApp Bot"}
  description={"Receives incoming messages from WhatsApp, processes 'add' commands or queries, and returns a response through Twilio's MessagingResponse."}
  deprecated={false}
  baseUrl={""}
/>

## Request Body

Incoming message from WhatsApp, typically containing a 'Body' field.

<APIRequestBody
  contentType={"application/x-www-form-urlencoded"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Twilio MessagingResponse XML string."}
  contentType={"text/xml"}
  schema={{"type":"string"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/chat"}
  parameters={[]}
  requestBody={{"contentType":"application/x-www-form-urlencoded","required":true,"description":"Incoming message from WhatsApp, typically containing a 'Body' field.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/faa36707-7c28-4f69-a18f-700ff61c704e/llms.txt) for all pages in this wiki.
