POST
https://botlinkd.com/api/whatsapp/template| Parameter | Type | Required | Description |
|---|---|---|---|
appkey |
String | Yes | BotLinkd App Key. |
authkey |
String | Yes | BotLinkd Auth Key. |
to |
String | Yes | Recipient number in accepted international format. |
template |
String | Yes | Exact approved template name. |
language |
String | Yes | Template language code, for example en or the code configured for the approved template. |
body_params[n] |
Array | Optional | Ordered values for template body placeholders. Indexing begins at 0. |
platform_name |
String | Optional | Optional platform selector when the account uses multiple connected platforms. |
platform_id |
String | Optional | Optional platform identifier when required by the account configuration. |
curl --request POST 'https://botlinkd.com/api/whatsapp/template' \
--form 'appkey="YOUR_APP_KEY"' \
--form 'authkey="YOUR_AUTH_KEY"' \
--form 'to="923001234567"' \
--form 'template="order_confirmation"' \
--form 'language="en"' \
--form 'body_params[0]="Saira"' \
--form 'body_params[1]="#55340"'$fields = [
'appkey' => getenv('BOTLINKD_APP_KEY'),
'authkey' => getenv('BOTLINKD_AUTH_KEY'),
'to' => '923001234567',
'template' => 'order_confirmation',
'language' => 'en',
'body_params[0]' => 'Saira',
'body_params[1]' => '#55340',
];
$curl = curl_init('https://botlinkd.com/api/whatsapp/template');
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $fields,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
]);
$response = curl_exec($curl);const form = new FormData();
form.append('appkey', process.env.BOTLINKD_APP_KEY);
form.append('authkey', process.env.BOTLINKD_AUTH_KEY);
form.append('to', '923001234567');
form.append('template', 'order_confirmation');
form.append('language', 'en');
form.append('body_params[0]', 'Saira');
form.append('body_params[1]', '#55340');
const response = await fetch('https://botlinkd.com/api/whatsapp/template', {
method: 'POST',
body: form,
signal: AbortSignal.timeout(30000)
});
const data = await response.json();import os
import requests
response = requests.post(
'https://botlinkd.com/api/whatsapp/template',
data={
'appkey': os.environ['BOTLINKD_APP_KEY'],
'authkey': os.environ['BOTLINKD_AUTH_KEY'],
'to': '923001234567',
'template': 'order_confirmation',
'language': 'en',
'body_params[0]': 'Saira',
'body_params[1]': '#55340',
},
timeout=30,
)
data = response.json()Parameter order must match the template
body_params[0] maps to the first placeholder, body_params[1] to the second, and so on.