POST
https://botlinkd.com/api/whatsapp/message| Parameter | Type | Required | Description |
|---|---|---|---|
appkey |
String | Yes | App Key assigned to the relevant BotLinkd API configuration. |
authkey |
String | Yes | Auth Key paired with the App Key. |
to |
String | Yes | Recipient number in the international format accepted by the connected account. |
message |
String | Yes | The text content to send when the conversation is eligible. |
curl --request POST 'https://botlinkd.com/api/whatsapp/message' \
--form 'appkey="YOUR_APP_KEY"' \
--form 'authkey="YOUR_AUTH_KEY"' \
--form 'to="923001234567"' \
--form 'message="Your order is ready."'$curl = curl_init('https://botlinkd.com/api/whatsapp/message');
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => [
'appkey' => getenv('BOTLINKD_APP_KEY'),
'authkey' => getenv('BOTLINKD_AUTH_KEY'),
'to' => '923001234567',
'message' => 'Your order is ready.',
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
]);
$response = curl_exec($curl);
if ($response === false) {
throw new RuntimeException(curl_error($curl));
}
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
$data = json_decode($response, true, 512, JSON_THROW_ON_ERROR);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('message', 'Your order is ready.');
const response = await fetch('https://botlinkd.com/api/whatsapp/message', {
method: 'POST',
body: form,
signal: AbortSignal.timeout(30000)
});
const data = await response.json();
if (!response.ok) throw new Error(`BotLinkd request failed: ${response.status}`);import os
import requests
response = requests.post(
'https://botlinkd.com/api/whatsapp/message',
data={
'appkey': os.environ['BOTLINKD_APP_KEY'],
'authkey': os.environ['BOTLINKD_AUTH_KEY'],
'to': '923001234567',
'message': 'Your order is ready.',
},
timeout=30,
)
response.raise_for_status()
data = response.json()Eligibility still applies
Use an approved template whenever WhatsApp rules require business-initiated template messaging. API acceptance does not guarantee delivered or read status.