📬 sendTemplatedEvent Endpoint
PRODUCTION Live Resource URL
Use this when initial config and tests are complete
POST https://vyknnvnab2.execute-api.ap-southeast-2.amazonaws.com/prod/wbk-m0b1ledigital
SANDBOX Testing Resource URL
Use this endpoint when testing code config
POST https://vyknnvnab2.execute-api.ap-southeast-2.amazonaws.com/sandbox/wbk-m0b1ledigital
Event Types
| Event Type |
Description |
Use Case |
| SMS |
Templated or event SMS send |
Text messages up to 306 characters (concatenated) |
| MMS |
Templated or event MMS send |
Messages with images/media (max 300KB) |
| SMSD |
Direct SMS send (no template) |
Simple SMS without pre-configured template |
⚠️ Important Limits:
• SMS: 160 characters per segment, up to 306 characters total (concatenated)
• MMS: Packet must be under 300KB
• Messages are charged per 160-character slot
💻 Code Examples
Complete Request Example (JSON)
POST /prod/wbk-m0b1ledigital HTTP/1.1
Host: vyknnvnab2.execute-api.ap-southeast-2.amazonaws.com
Content-Type: application/json
x-api-key: your_api_key_here
{
"recipient": "61412345678",
"event_name": "WelcomeMessage",
"event_type": "SMS",
"tracking_id": "TXN-12345-67890",
"merchant_id": "76",
"customerId": "CUST-001",
"system_internal_reference": "CRM-ID-123",
"delay": 0,
"optionParam": {
"firstname": "John",
"surname": "Smith",
"fullname": "John Smith",
"email": "john@mobile.digital",
"code": "RQHWV3L6T3066",
"pin": "1234",
"value": "20",
"url": "https://example.com/redeem",
"tracker_link": "https://example.com/track",
"marketing_message": "Special offer just for you!",
"personal_message": "Thanks for being a valued customer",
"title": "Welcome Gift",
"subject": "Your Gift Card",
"tc": "Terms apply. Valid 12 months.",
"expiry_date": "31/12/2025",
"store_name": "MyStore",
"custom_1": "VIP",
"custom_2": "Gold Member"
}
}
PHP Example using cURL
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://vyknnvnab2.execute-api.ap-southeast-2.amazonaws.com/prod/wbk-m0b1ledigital",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode(array(
"from" => "61428094360",
"recipient" => "61412345678",
"event_name" => "WelcomeMessage",
"event_type" => "SMS",
"tracking_id" => "TXN-".time(),
"merchant_id" => "76",
"optionParam" => array(
"firstname" => "John",
"email" => "john@example.com",
"code" => "GIFT123"
)
)),
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"x-api-key: your_api_key_here"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error: " . $err;
} else {
echo $response;
}
?>
Direct SMS Send (SMSD) - Simpler Example
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://vyknnvnab2.execute-api.ap-southeast-2.amazonaws.com/prod/wbk-m0b1ledigital",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode(array(
"from" => "61428094360",
"recipient" => "61412345678",
"trailing_sms" => "Hello! This is a test message.",
"tracking_id" => "TXN-".time(),
"merchant_id" => "76",
"event_type" => "SMSD"
)),
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"x-api-key: your_api_key_here"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;