> 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 CTA URL Service Message

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

**Call to Action Button**. In a service or marketing message, it is a clickable button or text link that prompts the recipient to take an immediate next step—such as opening a website, completing a purchase, or tracking an order.  
  
The endpoint `https://business.me-mate.net/sendservicemessages/sendmessages` is a POST request used to send service messages.

### 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): An object containing the interactive message details.
    
    - body (object): The body of the interactive message.
        
        - text (string): The text content of the message body.
            
    - type (string): The type of interactive message, in this case "cta_url".
        
    - action (object): The action to be performed with the interactive message.
        
        - name (string): The name of the action, in this case "cta_url".
            
        - parameters (object): Parameters related to the action.
            
            - url (string): The URL for the call to action.
                
            - display_text (string): The display text for the call to action.
                
    - footer (object): The footer of the interactive message.
        
        - text (string, optional): The text content of the message footer.
            
    - **header (object):** The header of the interactive message.
        
        - text (string): The text content of the message header.
            
        - type (string): The type of header, in this case "text".
            

**Note : You can use Different Types of message Header (like: Image, video and Document) same as Reply Button**

- recipient_type (string): The type of recipient, in this case "individual".
    
- messaging_product (string): The messaging product, in this case "whatsapp".
    
- api_key (string): The production API key. > [How to get Your API key?](#requirements)
    

### Response

The response for this request is a JSON object with the following properties:

- messaging_product (string): In this case WhatsApp .
    
- contacts (array): An array of objects containing contact details.
    
    - input (string): The input from the contact.
        
    - wa_id (string): The WhatsApp ID of the contact.
        
- messages (array): An array of message objects.
    
    - id (string): The ID of the message (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-cta-url-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)
    - `name` (string, required)
    - `parameters` (object, required)
      - `url` (string, required)
      - `display_text` (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 Body Text Here"
    },
    "type": "cta_url",
    "action": {
      "name": "cta_url",
      "parameters": {
        "url": "url of cta url",
        "display_text": "display_text of cta_url"
      }
    },
    "footer": {
      "text": "Write Footer Text Here (optional)"
    },
    "header": {
      "text": "Write 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.HBgMOTE3MzE5OTUwMzUwFQIAERgSN0JFN0I3Q0EzNzBGMUNCNDQ3AA=="
    }
  ],
  "messaging_product": "whatsapp"
}
```

**SDK Code**

```python
import requests

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

payload = {
    "to": "recipient's-number",
    "type": "interactive",
    "api_key": "Your production api_key",
    "interactive": {
        "body": { "text": "Write Body Text Here" },
        "type": "cta_url",
        "action": {
            "name": "cta_url",
            "parameters": {
                "url": "url of cta url",
                "display_text": "display_text of cta_url"
            }
        },
        "footer": { "text": "Write Footer Text Here (optional)" },
        "header": {
            "text": "Write 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#postSendservicemessagesSendmessages7';
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 Body Text Here"},"type":"cta_url","action":{"name":"cta_url","parameters":{"url":"url of cta url","display_text":"display_text of cta_url"}},"footer":{"text":"Write Footer Text Here (optional)"},"header":{"text":"Write 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#postSendservicemessagesSendmessages7"

	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 Body Text Here\"\n    },\n    \"type\": \"cta_url\",\n    \"action\": {\n      \"name\": \"cta_url\",\n      \"parameters\": {\n        \"url\": \"url of cta url\",\n        \"display_text\": \"display_text of cta_url\"\n      }\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here (optional)\"\n    },\n    \"header\": {\n      \"text\": \"Write 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#postSendservicemessagesSendmessages7")

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 Body Text Here\"\n    },\n    \"type\": \"cta_url\",\n    \"action\": {\n      \"name\": \"cta_url\",\n      \"parameters\": {\n        \"url\": \"url of cta url\",\n        \"display_text\": \"display_text of cta_url\"\n      }\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here (optional)\"\n    },\n    \"header\": {\n      \"text\": \"Write 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#postSendservicemessagesSendmessages7")
  .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 Body Text Here\"\n    },\n    \"type\": \"cta_url\",\n    \"action\": {\n      \"name\": \"cta_url\",\n      \"parameters\": {\n        \"url\": \"url of cta url\",\n        \"display_text\": \"display_text of cta_url\"\n      }\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here (optional)\"\n    },\n    \"header\": {\n      \"text\": \"Write 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#postSendservicemessagesSendmessages7', [
  'body' => '{
  "to": "recipient\'s-number",
  "type": "interactive",
  "api_key": "Your production api_key",
  "interactive": {
    "body": {
      "text": "Write Body Text Here"
    },
    "type": "cta_url",
    "action": {
      "name": "cta_url",
      "parameters": {
        "url": "url of cta url",
        "display_text": "display_text of cta_url"
      }
    },
    "footer": {
      "text": "Write Footer Text Here (optional)"
    },
    "header": {
      "text": "Write 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#postSendservicemessagesSendmessages7");
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 Body Text Here\"\n    },\n    \"type\": \"cta_url\",\n    \"action\": {\n      \"name\": \"cta_url\",\n      \"parameters\": {\n        \"url\": \"url of cta url\",\n        \"display_text\": \"display_text of cta_url\"\n      }\n    },\n    \"footer\": {\n      \"text\": \"Write Footer Text Here (optional)\"\n    },\n    \"header\": {\n      \"text\": \"Write 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 Body Text Here"],
    "type": "cta_url",
    "action": [
      "name": "cta_url",
      "parameters": [
        "url": "url of cta url",
        "display_text": "display_text of cta_url"
      ]
    ],
    "footer": ["text": "Write Footer Text Here (optional)"],
    "header": [
      "text": "Write 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#postSendservicemessagesSendmessages7")! 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()
```