POST
https://botlinkd.com/api/whatsapp/template| Parameter | Type | Required | Description |
|---|---|---|---|
body_params[0] |
String | Yes | OTP value used in the first body placeholder. |
button0_params[0] |
String | Yes | OTP value passed to the first copy-code button parameter. |
curl --request POST 'https://botlinkd.com/api/whatsapp/template' \
--form 'appkey="YOUR_APP_KEY"' \
--form 'authkey="YOUR_AUTH_KEY"' \
--form 'to="923001234567"' \
--form 'template="login_otp"' \
--form 'language="en"' \
--form 'body_params[0]="482913"' \
--form 'button0_params[0]="482913"'$fields = [
'appkey' => getenv('BOTLINKD_APP_KEY'),
'authkey' => getenv('BOTLINKD_AUTH_KEY'),
'to' => '923001234567',
'template' => 'login_otp',
'language' => 'en',
'body_params[0]' => '482913',
'button0_params[0]' => '482913',
];Use an approved authentication template
The template name, language, body placeholders and button configuration must match the template approved for the connected WhatsApp account.