Guides
Moving from AiSensy
QMessage accepts the same request fields as AiSensy’s API campaigns. In most cases your software needs only a new address and a new API key.
Steps
- 1
Check your templates
Make sure the templates your software uses are approved on the WhatsApp number connected to QMessage. You see them in QMessage under Templates. - 2
Create the same API campaigns
In Campaigns → API campaigns, create one for each AiSensy API campaign, with the same name and template. ThencampaignNamedoesn’t change. - 3
Create an API key
In Manage → API keys. It replaces your AiSensy API key. - 4
Change the address and the key
Send requests tohttps://qmessage.gatiq.in/api/v1/sendwith the new key. You can keep the key inapiKeyin the body, but we recommend theAuthorizationheader. - 5
Test with dryRun
Add"dryRun": trueto a real request. QMessage checks it and shows the final message without sending. Remove it when all is well.
Field by field
| AiSensy field | In QMessage |
|---|---|
apiKey | Works. Use your QMessage key. The Authorization header works too. |
campaignName | Works. Must match a live QMessage API campaign. Capital letters don’t matter. |
destination | Works. A 10-digit number is taken as Indian, as on AiSensy. |
userName | Works. Optional in QMessage. |
templateParams | Works. The count must match the template, as on AiSensy. |
paramsFallbackValue | Works. See paramsFallbackValue. |
media | Works (url and filename). |
location | Works. |
buttons | Works for website link and copy-code buttons. |
carouselCards | Works. Card files must be https links. |
tags | Works. New tags are created instead of being ignored. |
attributes | Works. New fields are created instead of being ignored. |
source | Works. Saved as the contact field source. |
The same request works on both. Only the address and key change:
curl -X POST https://qmessage.gatiq.in/api/v1/send \
-H "Authorization: Bearer $QMESSAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"apiKey": "YOUR_QMESSAGE_API_KEY",
"campaignName": "order_update",
"destination": "919876543210",
"userName": "Priya Sharma",
"source": "Website order",
"templateParams": [
"Priya",
"#10234",
"Friday"
],
"tags": [
"customer"
],
"attributes": {
"city": "Jaipur"
}
}'What’s different
- Answers: QMessage answers with a status code and a clear
errorwhen something is wrong, and withmessageIdwhen it works. If your software only checks for status 200, nothing changes. See Responses and errors. - More template types: text header values, copy-code buttons, limited-time offers and one-time codes have their own simple fields. See Examples by template.
- Opted-out customers don’t get marketing messages. The request is refused with status 409.
- Speed: up to 20 requests a second per key.
Coming soon
Webhooks for delivered, read and reply events. Until then, delivery and read status is shown in QMessage.