---
description: >-
  This section is dedicated to give instructions on how to send messages using
  MM Lite API Beta.
---

# Sending Messages

{% hint style="info" %}
Messages sent using MM Lite may experience **different delivery times**: marketing messages sent via **MM Lite** are expected to be delivered in **under 8 seconds**, while messages sent via the Cloud API should be delivered in under 5 seconds.
{% endhint %}

## Sending a Marketing Template Message&#x20;

To send a template message you will need to use a POST request:

<mark style="color:green;">`POST`</mark>`https://waba-v2.360dialog.io/marketing_messages`

#### Headers

| Name         | Value              | Description                                                         |
| ------------ | ------------------ | ------------------------------------------------------------------- |
| Content-Type | `application/json` |                                                                     |
| D360-API-KEY | `Bearer <token>`   | D360-API-KEY received after approval to participate in this program |

#### Body

<table><thead><tr><th>Field</th><th width="133.93817138671875">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>messaging_product</code></td><td>Yes</td><td> <code>"whatsapp"</code></td></tr><tr><td><code>recipient_type</code></td><td>Yes</td><td><code>"individual"</code></td></tr><tr><td><code>to</code></td><td>Yes</td><td>Recipient phone number in international format. Example: <code>"441234567890"</code></td></tr><tr><td><code>type</code></td><td>Yes</td><td><code>"template"</code></td></tr><tr><td><code>template.name</code></td><td>Yes</td><td> <code>"marketing_text_no_param"</code></td></tr><tr><td><code>template.language.code</code></td><td>Yes</td><td> <code>"en"</code></td></tr><tr><td><code>template.language.policy</code></td><td>Yes</td><td><code>"deterministic"</code> </td></tr><tr><td><code>message_activity_sharing</code></td><td>Optional</td><td>Set to <code>true</code> to enable activity sharing (can be removed if not needed)</td></tr></tbody></table>

**cURL:**

<pre class="language-json"><code class="lang-json"><strong>curl --location 'https://https://waba-v2.360dialog.io/marketing_messages' \
</strong>--header 'Content-Type: application/json' \
--header 'D360-API-KEY: &#x3C;token>' \
--data '{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "&#x3C;&#x3C;RECIPIENT_PHONE_NUMBER>>",
    "type": "template",
    "template": {
        "name": "marketing_text_no_param",
        "language": {
            "policy": "deterministic",
            "code": "en"
        }
    },
    "message_activity_sharing":true
}'
</code></pre>

**Response**

An usual Cloud API response is expected after a successful message sent using MM Lite API.

{% tabs %}
{% tab title="200" %}
```json
{
    "messaging_product": "whatsapp",
    "contacts": [
        {
            "input": "<phone number>",
            "wa_id": "<<waba id>"
        }
    ],
    "messages": [
        {
            "id": "wamid.HBgLNTk4OTQ3MTQ0NjMVAgARGBJDNjM1NUM2OEEyMDU4REZERTgA"
        }
    ]
}
```
{% endtab %}
{% endtabs %}

### S**ending a Marketing Template Message with TTL using MM Lite API**

MM Lite API provides additional features that are not available to Marketing templates on Cloud API.&#x20;

This means you can include and set the value of the `message_send_ttl_seconds`  in the payload of your Marketing Message Template to test this feature.

{% hint style="info" %}
_**What is**_ [_**Time-To-Live (TTL)**_](../../../../messaging/template-messages/sending-template-messages#time-to-live) _**for Marketing template messages?**_

If Meta is unable to deliver a message to a WhatsApp user, they will continue attempting to deliver the message for a period of time known as a time-to-live (TTL), or message validity period.&#x20;

TTL is available for Authentication and Utility template messages on Cloud API, but TTL for Marketing template messages is exclusively available on Marketing Messages Lite API.&#x20;

[_See our documentation on How to set a TTLs for Marketing template messages._](../../../../messaging/template-messages#customizing-time-to-live)
{% endhint %}

***

### C**reating new Marketing Templates**

You can continue to use the same method you already use to create the [Marketing Templates](../../quickstarts/create-a-message-template).

After a Marketing Template is created for the phone number, it may take up to 10 minutes to sync with the connected Ad account. This sync enables message optimization and conversion tracking. The same delay applies if a template has been inactive for more than 7 days—sync will resume after the first new use.

To ensure proper delivery and tracking, wait a bit more than 10 minutes before sending marketing traffic with a newly created or reactivated template. MM Lite API supports all active Marketing templates.

{% hint style="info" %}
Learn more about this limitation here: [https://developers.facebook.com/docs/whatsapp/marketing-messages-lite-api/support](https://developers.facebook.com/docs/whatsapp/marketing-messages-lite-api/support)
{% endhint %}

