Skip to main content

Messaging

Unified messaging API for SMS, WhatsApp, and USSD.

Channels

ChannelProvidersFeatures
SMSClickatell, Africa's TalkingOTPs, Notifications
WhatsAppWhatsApp Business APIRich Media, Templates
USSDNetwork ProvidersInteractive Menu Sessions

Sending SMS

TypeScript

await client.messaging.sms.send({
to: '+27820000000',
body: 'Your Luna OTP is 1234'
});

Python

await client.messaging.sms.send(
to="+27820000000",
body="Your Luna OTP is 1234"
)

Go

client.Messaging().SMS().Send(ctx, &luna.SMSParams{
To: "+27820000000",
Body: "Your Luna OTP is 1234",
})

WhatsApp Templates

await client.messaging.whatsapp.send_template(
to="+27820000000",
template="welcome_message",
parameters=["John"]
)