Skyden Send
Sign in
POST https://skyden.kiloconnectrdc.com/api/v1/messages

Send Template Message

Send a message using a pre-configured template. The template is rendered on the server, with variables replaced.

API key required application/json

Body Parameters

to Required
string (E.164)

Recipient phone number.

Example: 243812345678

type Required
enum (template)
content Required
object

Template payload.

template Required
string

Template name (snake_case).

data Optional
object

Variables to replace in the template body.

Code Examples

curl -X POST https://skyden.kiloconnectrdc.com/api/v1/messages \
  -H 'Authorization: Bearer sks_live_xxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "to": "243812345678",
    "type": "template",
    "content": {
      "template": "order_confirmed",
      "data": {
        "name": "Alex",
        "order": "ORD-123",
        "total": "49.99"
      }
    }
  }'
<?php
use Skyden\Send\SkydenSend;

SkydenSend::config('sks_live_xxxxx');

SkydenSend::to('+243812345678')
    ->template('order_confirmed', [
        'name' => 'Alex',
        'order' => 'ORD-123',
        'total' => '49.99',
    ]);
import { SkydenSend } from 'skyden-send';

SkydenSend.config('sks_live_xxxxx');

await SkydenSend
    .to('+243812345678')
    .template('order_confirmed', {
        name: 'Alex',
        order: 'ORD-123',
        total: '49.99',
    });

Error Responses

404 TEMPLATE_NOT_FOUND

The template name does not exist or is inactive.