Reference
Contacts and opt-out
Every message sent through the API is linked to a contact in QMessage, so your team sees the whole conversation in one place.
Contacts are created for you
- If the number isn’t a contact yet, QMessage creates one, with the name from
userName. In Contacts you can find these with the filter “Added by API”. - If the contact already exists, its name is kept. A name your team saved is never replaced by the API.
tagsare added to the contact’s tags, andattributes(andsource) are saved as its custom fields. See Contact fields.
You can then use these tags and fields in normal QMessage campaigns, for example to send an offer to everyone tagged customer, or to fill a template value from the contact’s city.
Messages and replies
- Each message appears in the customer’s chat in Live Chat and in History, and in the API campaign’s list of messages.
- When the customer replies, the reply arrives in Live Chat. Your team can answer it, or a chatbot can.
- Delivered and read ticks update in QMessage as WhatsApp reports them.
Opt-out
When a customer opts out, for example by replying STOP, QMessage stops marketing messages to them. You set the opt-out words in Manage → Opt-in & opt-out.
| Template category | Customer opted out | Contact blocked |
|---|---|---|
| Marketing | Refused (409) | Refused (409) |
| Utility | Sent | Refused (409) |
| Authentication | Sent | Refused (409) |
Order updates and login codes still reach customers who stopped marketing messages. A contact your team blocked gets nothing.
Important
Send marketing messages only to customers who agreed to hear from you. WhatsApp watches how customers react, and many blocks or reports can lower your number’s quality and sending limit.
What it costs
- Each message is charged from your QMessage wallet when WhatsApp delivers it, at your rate for its category and the customer’s country.
- Messages your customers send you are always free.
- If the wallet runs too low, requests are refused with status 402 until you add money. QMessage warns you by email before that happens.
dryRunrequests and refused requests are never charged.