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/messageMeta Cloud API · templates · delivery webhooks
POST /api/v1/messages/sendConnected WhatsApp · groups · newsletters · polls
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.
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.
GET /v1/public/track/organization/templatesWhatsApp Business ReadPOST /v1/public/track/templatesWhatsApp Business WritePOST /v1/public/track/files/upload_to_fbWhatsApp Business WriteGET or PUT /v1/public/webhookIntegrations Read or WriteMessage sends support text, image, video, audio, document, interactive button, and template payloads. Use the interactive reference for the complete request schemas and webhook payloads.