The Commersio WhatsApp API allows you to send WhatsApp messages programmatically. You can send both plain text messages and template-based messages to your customers.
https://glowquill.com/api/external
All API requests require authentication using an API key. You can generate your API key from the API Integration page in your dashboard.
API keys are 64-character hexadecimal strings
Include your API key in the request headers using one of these methods:
curl -H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
https://glowquill.com/api/external/templates
curl -H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
https://glowquill.com/api/external/templates
Send WhatsApp messages using either plain text or templates.
POST /whatsapp/send
curl -X POST "https://glowquill.com/api/external/whatsapp/send" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "+1234567890",
"text": "Hello! This is a test message."
}'
curl -X POST "https://glowquill.com/api/external/whatsapp/send" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "+1234567890",
"template_name": "order_confirmation",
"template_variables": {
"1": "John Doe",
"2": "ORD12345"
}
}'
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | Recipient phone number with country code |
| text | string | No* | Text message content |
| template_name | string | No* | Name of the template to use |
| template_variables | object | No | Variables for template placeholders |
* Either text or template_name is required
{
"success": true,
"message": "Message sent successfully",
"message_id": "wamid.HBgNMTIzNDU2Nzg5MAA="
}
Automated chatbots respond to customer messages using keyword triggers and AI fallback. Bots automatically pause when human agents are actively chatting.
Handles support inquiries and escalations
Helps customers browse and purchase products
Tracks orders and delivery status
Handles payment inquiries and processing
Retrieve all available message templates for your account.
GET /templates
curl -X GET "https://glowquill.com/api/external/templates" \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json"
[
{
"_id": "60f7b3b3b3b3b3b3b3b3b3b3",
"name": "order_confirmation",
"language": "en",
"category": "UTILITY",
"status": "APPROVED"
}
]
GET /messages
curl -X GET "https://glowquill.com/api/external/messages" \
-H "X-API-Key: your_api_key_here"
GET /contacts
curl -X GET "https://glowquill.com/api/external/contacts" \
-H "X-API-Key: your_api_key_here"
The API uses conventional HTTP response codes to indicate success or failure.
{
"error": "Invalid API key"
}
Download our Postman collection to quickly test all API endpoints with pre-configured requests.
EXTERNAL_BASE_URL variable to https://glowquill.com/api/externalAPI_KEY variable to your generated API key