Skip to main content
Send a plain text message. Set preview_url: true to render a link preview.

Request

curl -X POST "${WHATSAPP_API_URL}/${WHATSAPP_PHONE_NUMBER_ID}/messages" \
  -H "Authorization: Bearer ${WHATSAPP_ACCESS_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "messaging_product": "whatsapp",
  "to": "15551234567",
  "type": "text",
  "text": {
    "preview_url": false,
    "body": "Hello from my app"
  }
}'
Both the sandbox (WHATSAPP_API_URL) and your own number (META_GRAPH_API_URL) point at the HookMyApp gateway and authenticate with your hmat_… token; the gateway swaps in the real Meta token server-side. The body is identical. See Overview for the full setup.