Expected Errors & Programming Languages
Expected Errors
MM API is designed specifically for sending Marketing template messages. If you try to send any other message type—such as freeform, Authentication, Service, or Utility — you’ll receive an error response. These formats aren't supported in MM API.
It’s also important to note that MM API is a send-only API. It doesn’t support incoming messages from users. If your use case requires two-way communication, you’ll need to use the Cloud API alongside MM API on the same phone number to receive incoming messages and replies.
Using MM API to send normal text messages
The expected error if we try to send a message which is not a Marketing template message is:
{
"detail": {
"error": {
"message": "(#100) Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_data": {
"messaging_product": "whatsapp",
"details": "Message must be a template message."
},
"fbtrace_id": "AS8UhxdPr7P7WMufJGTGVGU"
}
}
}Using MM API to send Authentication/Utility templates
The expected error if we try to send a template message that is not a Marketing template message is:
Not allowed to send messages using MM API
The expected error if we try to send a MM API if the phone number is not activated for this API:
Using the wrong D360-API-KEY
If you use an invalid D360-API-KEY, the request will fail with an authentication error. This typically means the token is incorrect or missing.
Examples using multiple programming languages
1. Postman Collection
Once you’re approved to join the program, you can download the Postman collection that includes both successful request examples and the expected error responses:
This collection is designed to help you quickly test and validate MM API behavior across a range of use cases.
How to use:
Import in Postman, the JSON file corresponding to a collection of requests with examples related with MM API.
Modify the collection variables, with the values you received from 360Dialog Team.

2. NodeJS (using request library)
3. Python (using request library)
Last updated
Was this helpful?