- Quick-startYour first message in five minutes, in your language.
- Channel guidesSMS, WhatsApp, email, voice, push and USSD from one platform.
- API referenceEvery endpoint, its parameters, and a Sandbox « Try it ».
- Migrate from the old serviceMove from the old OTP/SMS product to Rassilo, step by step.
Send your first message
One call: POST /v1/messages, with your Sandbox key. Today, the same endpoint serves sms and whatsapp.
cURL
curl https://api.rassilo.ai/v1/messages \
-H "Authorization: Bearer $RASSILO_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Idempotency-Key: $(uuidgen)" \
-d '{
"channel": "sms",
"to": "+22200000000",
"body": "Votre code Karam Pay est 482913."
}'Node.js
// send.mjs
import { randomUUID } from 'node:crypto';
const response = await fetch('https://api.rassilo.ai/v1/messages', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RASSILO_API_KEY}`,
'Content-Type': 'application/json',
'X-Idempotency-Key': randomUUID(),
},
body: JSON.stringify({
channel: 'sms',
to: '+22200000000',
body: 'Votre code Karam Pay est 482913.',
}),
});
const message = await response.json();
console.log(message.provisionalId, message.status); // … submittedPython
# send.py
import os
import uuid
import requests
response = requests.post(
"https://api.rassilo.ai/v1/messages",
headers={
"Authorization": f"Bearer {os.environ['RASSILO_API_KEY']}",
"X-Idempotency-Key": str(uuid.uuid4()),
},
json={
"channel": "sms",
"to": "+22200000000",
"body": "Votre code Karam Pay est 482913.",
},
)
message = response.json()
print(message["provisionalId"], message["status"]) # … submittedPHP
<?php
// send.php
$ch = curl_init('https://api.rassilo.ai/v1/messages');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RASSILO_API_KEY'),
'Content-Type: application/json',
'X-Idempotency-Key: ' . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => json_encode([
'channel' => 'sms',
'to' => '+22200000000',
'body' => 'Votre code Karam Pay est 482913.',
]),
]);
$message = json_decode(curl_exec($ch), true);
echo $message['provisionalId'] . ' ' . $message['status']; // … submittedJava
// SendMessage.java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.util.UUID;
public class SendMessage {
public static void main(String[] args) throws Exception {
String json = """
{
"channel": "sms",
"to": "+22200000000",
"body": "Votre code Karam Pay est 482913."
}""";
HttpRequest request = HttpRequest.newBuilder(URI.create("https://api.rassilo.ai/v1/messages"))
.header("Authorization", "Bearer " + System.getenv("RASSILO_API_KEY"))
.header("Content-Type", "application/json")
.header("X-Idempotency-Key", UUID.randomUUID().toString())
.POST(HttpRequest.BodyPublishers.ofString(json))
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body()); // … "status": "submitted" …
}
}Sandbox and Live
Every account starts in Sandbox: sk_test_… keys, no billed message. Going Live — real money, real customers — takes a phone check; keys then become sk_live_….
Follow the service
API and channel availability is published on the status page. Your keys, logs and webhooks are managed in the dashboard.