> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.me-mate.net/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.me-mate.net/_mcp/server.

# Send Reply Button Service Message

POST https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6
Content-Type: application/json

This endpoint allows you to send service messages to recipients via WhatsApp.

### Request

* Method: POST

* URL: `https://business.me-mate.net/sendservicemessages/sendmessages`

* Headers:

  * Content-Type: application/json

* Body:

* to (string): The recipient's number.

* type (string): The type of message, in this case, "interactive".

  * interactive (object): The interactive message details.

    * body (object): The body of the message.

      * text (string): The main body text of the message.

    * type (string): The type of interactive message, in this case, "button".

    * action (object): The action to be performed.

      * buttons (array): An array of buttons for the interactive message.

        * type (string): The type of button, in this case, "reply".

        * reply (object): Details of the reply button.

          * id (string): The ID of the reply button.

          * title (string): The text displayed on the reply button.

    * footer (object): The footer of the message.

      * text (string, optional): The text for the footer.

    * **header (object, required)**: The header of the message.

      * text (string): The text for the header.

      * type (string): The type of header, in this case, "text".

* recipient\_type (string, required): The type of recipient, in this case, "individual".

* messaging\_product (string, required): The messaging product, in this case, "whatsapp".

* api\_key (string, required): Your production API key.> [How to get Your API key?](#requirements)

**Note: You Can use diffrent Header object for diffrent message header type like : Image Header, Video Header and Document Header.**

* **For Image Header**

```json
 "header": {
      "type": "image",
      "image": {
        "link": "Image full url"
      }
    }

```

* **For Video Header**

```json
"header": {
      "type": "video",
      "video": {
        "link": "video full url"
      }
    }

```

* **For Document Header**

```json
"header": {
    "type": "document",
    "document": {
      "link": "document full url",
      "filename": "file name"
    }
  }

```

#### Response

* messaging\_product (string): The messaging product used for the message(In this case WhatsApp).

* contacts (array): An array of contacts.

  * input (string): The input from the contact.

  * wa\_id (string): The WhatsApp ID of the contact.

* messages (array): An array of messages.

  * id (string): The ID of the message sent (By Meta).

Reference: https://apidocs.me-mate.net/business-me-mate-net-ap-is-document-v-1-0/send-service-message-ap-is/for-production-production-env/send-reply-button-service-message

## Request

### Body (application/json)

- `to` (string, required)
- `type` (string, required)
- `api_key` (string, required)
- `interactive` (object, required)
  - `body` (object, required)
    - `text` (string, required)
  - `type` (string, required)
  - `action` (object, required)
    - `buttons` (list of object, required)
      - `type` (string, required)
      - `reply` (object, required)
        - `id` (string, required)
        - `title` (string, required)
  - `footer` (object, required)
    - `text` (string, required)
  - `header` (object, required)
    - `text` (string, required)
    - `type` (string, required)
- `recipient_type` (string, required)
- `messaging_product` (string, required)

## Response

### 200

OK

- `contacts` (list of object, required)
  - `input` (string, required)
  - `wa_id` (string, required)
- `messages` (list of object, required)
  - `id` (string, required)
- `messaging_product` (string, required)

## Examples

**Request**

```json
{
  "to": "recipient's number",
  "type": "interactive",
  "api_key": "Your production api_key",
  "interactive": {
    "body": {
      "text": "Write Your Body Text Here"
    },
    "type": "button",
    "action": {
      "buttons": [
        {
          "type": "reply",
          "reply": {
            "id": "this is reply button id like: reply-1733820303910-0",
            "title": "Reply Button Text"
          }
        },
        {
          "type": "reply",
          "reply": {
            "id": "2nd reply button id",
            "title": "Reply Button Text"
          }
        },
        {
          "type": "reply",
          "reply": {
            "id": "3rd reply button id",
            "title": "Reply Button Text"
          }
        }
      ]
    },
    "footer": {
      "text": "Write Footer Text Here"
    },
    "header": {
      "text": "Write Your Header Text Here",
      "type": "text"
    }
  },
  "recipient_type": "individual",
  "messaging_product": "whatsapp"
}
```

**Response**

```json
{
  "contacts": [
    {
      "input": "recipient's number",
      "wa_id": "recipient's number"
    }
  ],
  "messages": [
    {
      "id": "wamid.HBgMOTE3MzE5OTUwMzUwFQIAERgSMDc2MEQ0RTgyNjM4NkIwQjVFAA=="
    }
  ],
  "messaging_product": "whatsapp"
}
```

**SDK Code**

```python
import requests

url = "https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6"

payload = {
    "to": "recipient's number",
    "type": "interactive",
    "api_key": "Your production api_key",
    "interactive": {
        "body": { "text": "Write Your Body Text Here" },
        "type": "button",
        "action": { "buttons": [
                {
                    "type": "reply",
                    "reply": {
                        "id": "this is reply button id like: reply-1733820303910-0",
                        "title": "Reply Button Text"
                    }
                },
                {
                    "type": "reply",
                    "reply": {
                        "id": "2nd reply button id",
                        "title": "Reply Button Text"
                    }
                },
                {
                    "type": "reply",
                    "reply": {
                        "id": "3rd reply button id",
                        "title": "Reply Button Text"
                    }
                }
            ] },
        "footer": { "text": "Write Footer Text Here" },
        "header": {
            "text": "Write Your Header Text Here",
            "type": "text"
        }
    },
    "recipient_type": "individual",
    "messaging_product": "whatsapp"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"to":"recipient\'s number","type":"interactive","api_key":"Your production api_key","interactive":{"body":{"text":"Write Your Body Text Here"},"type":"button","action":{"buttons":[{"type":"reply","reply":{"id":"this is reply button id like: reply-1733820303910-0","title":"Reply Button Text"}},{"type":"reply","reply":{"id":"2nd reply button id","title":"Reply Button Text"}},{"type":"reply","reply":{"id":"3rd reply button id","title":"Reply Button Text"}}]},"footer":{"text":"Write Footer Text Here"},"header":{"text":"Write Your Header Text Here","type":"text"}},"recipient_type":"individual","messaging_product":"whatsapp"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6"

	payload := strings.NewReader("{\n  \"to\": \"recipient's number\",\n  \"type\": \"interactive\",\n  \"api_key\": \"Your production api_key\",\n  \"interactive\": {\n    \"body\": {\n      \"text\": \"Write Your Body Text Here\"\n    },\n    \"type\": \"button\",\n    \"action\": {\n      \"buttons\": [\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"this is reply button id like: reply-1733820303910-0\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"2nd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"3rd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        }\n      ]\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here\"\n    },\n    \"header\": {\n      \"text\": \"Write Your Header Text Here\",\n      \"type\": \"text\"\n    }\n  },\n  \"recipient_type\": \"individual\",\n  \"messaging_product\": \"whatsapp\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"to\": \"recipient's number\",\n  \"type\": \"interactive\",\n  \"api_key\": \"Your production api_key\",\n  \"interactive\": {\n    \"body\": {\n      \"text\": \"Write Your Body Text Here\"\n    },\n    \"type\": \"button\",\n    \"action\": {\n      \"buttons\": [\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"this is reply button id like: reply-1733820303910-0\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"2nd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"3rd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        }\n      ]\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here\"\n    },\n    \"header\": {\n      \"text\": \"Write Your Header Text Here\",\n      \"type\": \"text\"\n    }\n  },\n  \"recipient_type\": \"individual\",\n  \"messaging_product\": \"whatsapp\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6")
  .header("Content-Type", "application/json")
  .body("{\n  \"to\": \"recipient's number\",\n  \"type\": \"interactive\",\n  \"api_key\": \"Your production api_key\",\n  \"interactive\": {\n    \"body\": {\n      \"text\": \"Write Your Body Text Here\"\n    },\n    \"type\": \"button\",\n    \"action\": {\n      \"buttons\": [\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"this is reply button id like: reply-1733820303910-0\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"2nd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"3rd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        }\n      ]\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here\"\n    },\n    \"header\": {\n      \"text\": \"Write Your Header Text Here\",\n      \"type\": \"text\"\n    }\n  },\n  \"recipient_type\": \"individual\",\n  \"messaging_product\": \"whatsapp\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6', [
  'body' => '{
  "to": "recipient\'s number",
  "type": "interactive",
  "api_key": "Your production api_key",
  "interactive": {
    "body": {
      "text": "Write Your Body Text Here"
    },
    "type": "button",
    "action": {
      "buttons": [
        {
          "type": "reply",
          "reply": {
            "id": "this is reply button id like: reply-1733820303910-0",
            "title": "Reply Button Text"
          }
        },
        {
          "type": "reply",
          "reply": {
            "id": "2nd reply button id",
            "title": "Reply Button Text"
          }
        },
        {
          "type": "reply",
          "reply": {
            "id": "3rd reply button id",
            "title": "Reply Button Text"
          }
        }
      ]
    },
    "footer": {
      "text": "Write Footer Text Here"
    },
    "header": {
      "text": "Write Your Header Text Here",
      "type": "text"
    }
  },
  "recipient_type": "individual",
  "messaging_product": "whatsapp"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"to\": \"recipient's number\",\n  \"type\": \"interactive\",\n  \"api_key\": \"Your production api_key\",\n  \"interactive\": {\n    \"body\": {\n      \"text\": \"Write Your Body Text Here\"\n    },\n    \"type\": \"button\",\n    \"action\": {\n      \"buttons\": [\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"this is reply button id like: reply-1733820303910-0\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"2nd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        },\n        {\n          \"type\": \"reply\",\n          \"reply\": {\n            \"id\": \"3rd reply button id\",\n            \"title\": \"Reply Button Text\"\n          }\n        }\n      ]\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here\"\n    },\n    \"header\": {\n      \"text\": \"Write Your Header Text Here\",\n      \"type\": \"text\"\n    }\n  },\n  \"recipient_type\": \"individual\",\n  \"messaging_product\": \"whatsapp\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "to": "recipient's number",
  "type": "interactive",
  "api_key": "Your production api_key",
  "interactive": [
    "body": ["text": "Write Your Body Text Here"],
    "type": "button",
    "action": ["buttons": [
        [
          "type": "reply",
          "reply": [
            "id": "this is reply button id like: reply-1733820303910-0",
            "title": "Reply Button Text"
          ]
        ],
        [
          "type": "reply",
          "reply": [
            "id": "2nd reply button id",
            "title": "Reply Button Text"
          ]
        ],
        [
          "type": "reply",
          "reply": [
            "id": "3rd reply button id",
            "title": "Reply Button Text"
          ]
        ]
      ]],
    "footer": ["text": "Write Footer Text Here"],
    "header": [
      "text": "Write Your Header Text Here",
      "type": "text"
    ]
  ],
  "recipient_type": "individual",
  "messaging_product": "whatsapp"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://business.me-mate.net/sendservicemessages/sendmessages#postSendservicemessagesSendmessages6")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```