Developer API

Send approved WhatsApp Business Platform messages and manage templates.

WhatsApp Business API

Send with WhatsApp Business Platform

Use this API for a number connected through Meta’s WhatsApp Business Platform. It sends through Meta’s Cloud API and supports approved message templates.

WhatsApp Business Platform

POST /v1/public/message

Meta Cloud API · templates · delivery webhooks

WhatsApp

POST /api/v1/messages/send

Connected WhatsApp · groups · newsletters · polls

Note: Use an approved template to start a conversation. After a customer messages your business, you can send non-template messages for the next 24 hours. The WhatsApp endpoint below does not send through the WhatsApp Business Platform.

Send an approved template

The same Querygen API key works here. Both Bearer and Basic authorization schemes are accepted. Include senderPhone when your organization has more than one connected Business Platform number.

Complete template message request
curl -X POST "https://app.querygen.ai/v1/public/message" \
  -H "Authorization: Bearer qg_xxxxxxxxxxxxx" \
  -H "X-Organization-Id: <organization-id>" \
  -H "Idempotency-Key: order-42-shipped" \
  -H "Content-Type: application/json" \
  -d '{
    "fullPhoneNumber": "919876543210",
    "senderPhone": "919820160046",
    "callbackData": "order-42",
    "type": "Template",
    "template": {
      "name": "order_update",
      "languageCode": "en",
      "bodyValues": ["42", "shipped"]
    }
  }'

A successful request returns 201 Created when the message is accepted for delivery, along with the API campaign ID that tracks sends from this number. Reusing an Idempotency-Key with the same body avoids duplicate sends or campaign counts. Delivery status is recorded in the API campaign and can also be sent to an optional status webhook.

Note: People with Integrations Write access can configure the callback URL and authentication headers in Settings > Integrations > Delivery status webhook.
EndpointAccess
GET /v1/public/track/organization/templatesWhatsApp Business Read
POST /v1/public/track/templatesWhatsApp Business Write
POST /v1/public/track/files/upload_to_fbWhatsApp Business Write
GET or PUT /v1/public/webhookIntegrations Read or Write

Message sends support text, image, video, audio, document, interactive button, and template payloads. Use the interactive reference for the complete request schemas and webhook payloads.