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

# 10. POST campaigns/send-manual → template WITH body variables ({{1}}, {{2}})

POST https://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2
Content-Type: application/json

Reference: https://docs.cleak.io/cleak-whats-app-api/phase-2-external-client-x-api-key-only-no-jwt/10-post-campaigns-send-manual-template-with-body-variables-1-2

## Request

### Headers

- `x-api-key` (string, optional)

### Body (application/json)

- `string`

## Examples

**Request**

```json
"{\n    \"name\": \"Order Confirmed — Arnav ORD-20260315\",\n    \"templateName\": \"order_confirmed\",\n    \"templateLanguage\": \"en_US\",\n    \"fromPhoneNumberId\": {{phone_number_id}},\n    \"category\": \"UTILITY\",\n    \"manualPhoneNumbers\": [\"919284139968\"],\n    \"templateStructure\": [\n      {\n        \"type\": \"BODY\",\n        \"text\": \"Hi {{1}}! 🎉\\n\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\n\\nWe'll notify you when it ships. Thank you for shopping with us!\",\n        \"example\": { \"body_text\": [[\"Customer name\", \"Order ID\", \"Order amount\"]] }\n      },\n      {\n        \"type\": \"BUTTONS\",\n        \"buttons\": [\n          { \"type\": \"URL\", \"text\": \"Track Order\", \"url\": \"https://cleak.in/orders/{{1}}\", \"example\": [\"1212\"] }\n        ]\n      }\n    ],\n    \"templateComponents\": [\n      {\n        \"type\": \"body\",\n        \"parameters\": [\n          { \"type\": \"text\", \"text\": \"Arnav\" },\n          { \"type\": \"text\", \"text\": \"ORD-20260315\" },\n          { \"type\": \"text\", \"text\": \"1499\" }\n        ]\n      },\n      {\n        \"type\": \"button\",\n        \"sub_type\": \"url\",\n        \"index\": \"0\",\n        \"parameters\": [\n          { \"type\": \"text\", \"text\": \"ORD-20260315\" }\n        ]\n      }\n    ]\n  }"
```

**SDK Code**

```python
import requests

url = "https://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2"

payload = "{
    \"name\": \"Order Confirmed — Arnav ORD-20260315\",
    \"templateName\": \"order_confirmed\",
    \"templateLanguage\": \"en_US\",
    \"fromPhoneNumberId\": {{phone_number_id}},
    \"category\": \"UTILITY\",
    \"manualPhoneNumbers\": [\"919284139968\"],
    \"templateStructure\": [
      {
        \"type\": \"BODY\",
        \"text\": \"Hi {{1}}! 🎉\n\nYour order #{{2}} worth ₹{{3}} has been confirmed.\n\nWe'll notify you when it ships. Thank you for shopping with us!\",
        \"example\": { \"body_text\": [[\"Customer name\", \"Order ID\", \"Order amount\"]] }
      },
      {
        \"type\": \"BUTTONS\",
        \"buttons\": [
          { \"type\": \"URL\", \"text\": \"Track Order\", \"url\": \"https://cleak.in/orders/{{1}}\", \"example\": [\"1212\"] }
        ]
      }
    ],
    \"templateComponents\": [
      {
        \"type\": \"body\",
        \"parameters\": [
          { \"type\": \"text\", \"text\": \"Arnav\" },
          { \"type\": \"text\", \"text\": \"ORD-20260315\" },
          { \"type\": \"text\", \"text\": \"1499\" }
        ]
      },
      {
        \"type\": \"button\",
        \"sub_type\": \"url\",
        \"index\": \"0\",
        \"parameters\": [
          { \"type\": \"text\", \"text\": \"ORD-20260315\" }
        ]
      }
    ]
  }"
headers = {
    "x-api-key": "{{api_key}}",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{api_key}}', 'Content-Type': 'application/json'},
  body: '"{\n    \"name\": \"Order Confirmed — Arnav ORD-20260315\",\n    \"templateName\": \"order_confirmed\",\n    \"templateLanguage\": \"en_US\",\n    \"fromPhoneNumberId\": {{phone_number_id}},\n    \"category\": \"UTILITY\",\n    \"manualPhoneNumbers\": [\"919284139968\"],\n    \"templateStructure\": [\n      {\n        \"type\": \"BODY\",\n        \"text\": \"Hi {{1}}! 🎉\\n\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\n\\nWe\'ll notify you when it ships. Thank you for shopping with us!\",\n        \"example\": { \"body_text\": [[\"Customer name\", \"Order ID\", \"Order amount\"]] }\n      },\n      {\n        \"type\": \"BUTTONS\",\n        \"buttons\": [\n          { \"type\": \"URL\", \"text\": \"Track Order\", \"url\": \"https://cleak.in/orders/{{1}}\", \"example\": [\"1212\"] }\n        ]\n      }\n    ],\n    \"templateComponents\": [\n      {\n        \"type\": \"body\",\n        \"parameters\": [\n          { \"type\": \"text\", \"text\": \"Arnav\" },\n          { \"type\": \"text\", \"text\": \"ORD-20260315\" },\n          { \"type\": \"text\", \"text\": \"1499\" }\n        ]\n      },\n      {\n        \"type\": \"button\",\n        \"sub_type\": \"url\",\n        \"index\": \"0\",\n        \"parameters\": [\n          { \"type\": \"text\", \"text\": \"ORD-20260315\" }\n        ]\n      }\n    ]\n  }"'
};

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://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2"

	payload := strings.NewReader("\"{\\n    \\\"name\\\": \\\"Order Confirmed — Arnav ORD-20260315\\\",\\n    \\\"templateName\\\": \\\"order_confirmed\\\",\\n    \\\"templateLanguage\\\": \\\"en_US\\\",\\n    \\\"fromPhoneNumberId\\\": {{phone_number_id}},\\n    \\\"category\\\": \\\"UTILITY\\\",\\n    \\\"manualPhoneNumbers\\\": [\\\"919284139968\\\"],\\n    \\\"templateStructure\\\": [\\n      {\\n        \\\"type\\\": \\\"BODY\\\",\\n        \\\"text\\\": \\\"Hi {{1}}! 🎉\\\\n\\\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\\\n\\\\nWe'll notify you when it ships. Thank you for shopping with us!\\\",\\n        \\\"example\\\": { \\\"body_text\\\": [[\\\"Customer name\\\", \\\"Order ID\\\", \\\"Order amount\\\"]] }\\n      },\\n      {\\n        \\\"type\\\": \\\"BUTTONS\\\",\\n        \\\"buttons\\\": [\\n          { \\\"type\\\": \\\"URL\\\", \\\"text\\\": \\\"Track Order\\\", \\\"url\\\": \\\"https://cleak.in/orders/{{1}}\\\", \\\"example\\\": [\\\"1212\\\"] }\\n        ]\\n      }\\n    ],\\n    \\\"templateComponents\\\": [\\n      {\\n        \\\"type\\\": \\\"body\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Arnav\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"1499\\\" }\\n        ]\\n      },\\n      {\\n        \\\"type\\\": \\\"button\\\",\\n        \\\"sub_type\\\": \\\"url\\\",\\n        \\\"index\\\": \\\"0\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" }\\n        ]\\n      }\\n    ]\\n  }\"")

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

	req.Header.Add("x-api-key", "{{api_key}}")
	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://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '{{api_key}}'
request["Content-Type"] = 'application/json'
request.body = "\"{\\n    \\\"name\\\": \\\"Order Confirmed — Arnav ORD-20260315\\\",\\n    \\\"templateName\\\": \\\"order_confirmed\\\",\\n    \\\"templateLanguage\\\": \\\"en_US\\\",\\n    \\\"fromPhoneNumberId\\\": {{phone_number_id}},\\n    \\\"category\\\": \\\"UTILITY\\\",\\n    \\\"manualPhoneNumbers\\\": [\\\"919284139968\\\"],\\n    \\\"templateStructure\\\": [\\n      {\\n        \\\"type\\\": \\\"BODY\\\",\\n        \\\"text\\\": \\\"Hi {{1}}! 🎉\\\\n\\\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\\\n\\\\nWe'll notify you when it ships. Thank you for shopping with us!\\\",\\n        \\\"example\\\": { \\\"body_text\\\": [[\\\"Customer name\\\", \\\"Order ID\\\", \\\"Order amount\\\"]] }\\n      },\\n      {\\n        \\\"type\\\": \\\"BUTTONS\\\",\\n        \\\"buttons\\\": [\\n          { \\\"type\\\": \\\"URL\\\", \\\"text\\\": \\\"Track Order\\\", \\\"url\\\": \\\"https://cleak.in/orders/{{1}}\\\", \\\"example\\\": [\\\"1212\\\"] }\\n        ]\\n      }\\n    ],\\n    \\\"templateComponents\\\": [\\n      {\\n        \\\"type\\\": \\\"body\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Arnav\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"1499\\\" }\\n        ]\\n      },\\n      {\\n        \\\"type\\\": \\\"button\\\",\\n        \\\"sub_type\\\": \\\"url\\\",\\n        \\\"index\\\": \\\"0\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" }\\n        ]\\n      }\\n    ]\\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://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2")
  .header("x-api-key", "{{api_key}}")
  .header("Content-Type", "application/json")
  .body("\"{\\n    \\\"name\\\": \\\"Order Confirmed — Arnav ORD-20260315\\\",\\n    \\\"templateName\\\": \\\"order_confirmed\\\",\\n    \\\"templateLanguage\\\": \\\"en_US\\\",\\n    \\\"fromPhoneNumberId\\\": {{phone_number_id}},\\n    \\\"category\\\": \\\"UTILITY\\\",\\n    \\\"manualPhoneNumbers\\\": [\\\"919284139968\\\"],\\n    \\\"templateStructure\\\": [\\n      {\\n        \\\"type\\\": \\\"BODY\\\",\\n        \\\"text\\\": \\\"Hi {{1}}! 🎉\\\\n\\\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\\\n\\\\nWe'll notify you when it ships. Thank you for shopping with us!\\\",\\n        \\\"example\\\": { \\\"body_text\\\": [[\\\"Customer name\\\", \\\"Order ID\\\", \\\"Order amount\\\"]] }\\n      },\\n      {\\n        \\\"type\\\": \\\"BUTTONS\\\",\\n        \\\"buttons\\\": [\\n          { \\\"type\\\": \\\"URL\\\", \\\"text\\\": \\\"Track Order\\\", \\\"url\\\": \\\"https://cleak.in/orders/{{1}}\\\", \\\"example\\\": [\\\"1212\\\"] }\\n        ]\\n      }\\n    ],\\n    \\\"templateComponents\\\": [\\n      {\\n        \\\"type\\\": \\\"body\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Arnav\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"1499\\\" }\\n        ]\\n      },\\n      {\\n        \\\"type\\\": \\\"button\\\",\\n        \\\"sub_type\\\": \\\"url\\\",\\n        \\\"index\\\": \\\"0\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" }\\n        ]\\n      }\\n    ]\\n  }\"")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2', [
  'body' => '"{\\n    \\"name\\": \\"Order Confirmed — Arnav ORD-20260315\\",\\n    \\"templateName\\": \\"order_confirmed\\",\\n    \\"templateLanguage\\": \\"en_US\\",\\n    \\"fromPhoneNumberId\\": {{phone_number_id}},\\n    \\"category\\": \\"UTILITY\\",\\n    \\"manualPhoneNumbers\\": [\\"919284139968\\"],\\n    \\"templateStructure\\": [\\n      {\\n        \\"type\\": \\"BODY\\",\\n        \\"text\\": \\"Hi {{1}}! 🎉\\\\n\\\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\\\n\\\\nWe\'ll notify you when it ships. Thank you for shopping with us!\\",\\n        \\"example\\": { \\"body_text\\": [[\\"Customer name\\", \\"Order ID\\", \\"Order amount\\"]] }\\n      },\\n      {\\n        \\"type\\": \\"BUTTONS\\",\\n        \\"buttons\\": [\\n          { \\"type\\": \\"URL\\", \\"text\\": \\"Track Order\\", \\"url\\": \\"https://cleak.in/orders/{{1}}\\", \\"example\\": [\\"1212\\"] }\\n        ]\\n      }\\n    ],\\n    \\"templateComponents\\": [\\n      {\\n        \\"type\\": \\"body\\",\\n        \\"parameters\\": [\\n          { \\"type\\": \\"text\\", \\"text\\": \\"Arnav\\" },\\n          { \\"type\\": \\"text\\", \\"text\\": \\"ORD-20260315\\" },\\n          { \\"type\\": \\"text\\", \\"text\\": \\"1499\\" }\\n        ]\\n      },\\n      {\\n        \\"type\\": \\"button\\",\\n        \\"sub_type\\": \\"url\\",\\n        \\"index\\": \\"0\\",\\n        \\"parameters\\": [\\n          { \\"type\\": \\"text\\", \\"text\\": \\"ORD-20260315\\" }\\n        ]\\n      }\\n    ]\\n  }"',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '{{api_key}}',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "{{api_key}}");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "\"{\\n    \\\"name\\\": \\\"Order Confirmed — Arnav ORD-20260315\\\",\\n    \\\"templateName\\\": \\\"order_confirmed\\\",\\n    \\\"templateLanguage\\\": \\\"en_US\\\",\\n    \\\"fromPhoneNumberId\\\": {{phone_number_id}},\\n    \\\"category\\\": \\\"UTILITY\\\",\\n    \\\"manualPhoneNumbers\\\": [\\\"919284139968\\\"],\\n    \\\"templateStructure\\\": [\\n      {\\n        \\\"type\\\": \\\"BODY\\\",\\n        \\\"text\\\": \\\"Hi {{1}}! 🎉\\\\n\\\\nYour order #{{2}} worth ₹{{3}} has been confirmed.\\\\n\\\\nWe'll notify you when it ships. Thank you for shopping with us!\\\",\\n        \\\"example\\\": { \\\"body_text\\\": [[\\\"Customer name\\\", \\\"Order ID\\\", \\\"Order amount\\\"]] }\\n      },\\n      {\\n        \\\"type\\\": \\\"BUTTONS\\\",\\n        \\\"buttons\\\": [\\n          { \\\"type\\\": \\\"URL\\\", \\\"text\\\": \\\"Track Order\\\", \\\"url\\\": \\\"https://cleak.in/orders/{{1}}\\\", \\\"example\\\": [\\\"1212\\\"] }\\n        ]\\n      }\\n    ],\\n    \\\"templateComponents\\\": [\\n      {\\n        \\\"type\\\": \\\"body\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"Arnav\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" },\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"1499\\\" }\\n        ]\\n      },\\n      {\\n        \\\"type\\\": \\\"button\\\",\\n        \\\"sub_type\\\": \\\"url\\\",\\n        \\\"index\\\": \\\"0\\\",\\n        \\\"parameters\\\": [\\n          { \\\"type\\\": \\\"text\\\", \\\"text\\\": \\\"ORD-20260315\\\" }\\n        ]\\n      }\\n    ]\\n  }\"", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "{{api_key}}",
  "Content-Type": "application/json"
]
let parameters = "{
    \"name\": \"Order Confirmed — Arnav ORD-20260315\",
    \"templateName\": \"order_confirmed\",
    \"templateLanguage\": \"en_US\",
    \"fromPhoneNumberId\": {{phone_number_id}},
    \"category\": \"UTILITY\",
    \"manualPhoneNumbers\": [\"919284139968\"],
    \"templateStructure\": [
      {
        \"type\": \"BODY\",
        \"text\": \"Hi {{1}}! 🎉\n\nYour order #{{2}} worth ₹{{3}} has been confirmed.\n\nWe'll notify you when it ships. Thank you for shopping with us!\",
        \"example\": { \"body_text\": [[\"Customer name\", \"Order ID\", \"Order amount\"]] }
      },
      {
        \"type\": \"BUTTONS\",
        \"buttons\": [
          { \"type\": \"URL\", \"text\": \"Track Order\", \"url\": \"https://cleak.in/orders/{{1}}\", \"example\": [\"1212\"] }
        ]
      }
    ],
    \"templateComponents\": [
      {
        \"type\": \"body\",
        \"parameters\": [
          { \"type\": \"text\", \"text\": \"Arnav\" },
          { \"type\": \"text\", \"text\": \"ORD-20260315\" },
          { \"type\": \"text\", \"text\": \"1499\" }
        ]
      },
      {
        \"type\": \"button\",
        \"sub_type\": \"url\",
        \"index\": \"0\",
        \"parameters\": [
          { \"type\": \"text\", \"text\": \"ORD-20260315\" }
        ]
      }
    ]
  }" as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cleak.io/api/whatsapp/campaigns/send-manual#postApiWhatsappCampaignsSend-manual2")! 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()
```