Envoyer un SMS
curl --request POST \
--url https://app.famulor.de/api/user/sms \
--header 'Content-Type: application/json' \
--data '
{
"from": 123,
"to": "<string>",
"body": "<string>"
}
'import requests
url = "https://app.famulor.de/api/user/sms"
payload = {
"from": 123,
"to": "<string>",
"body": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({from: 123, to: '<string>', body: JSON.stringify('<string>')})
};
fetch('https://app.famulor.de/api/user/sms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/sms",
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([
'from' => 123,
'to' => '<string>',
'body' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/sms"
payload := strings.NewReader("{\n \"from\": 123,\n \"to\": \"<string>\",\n \"body\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.famulor.de/api/user/sms")
.header("Content-Type", "application/json")
.body("{\n \"from\": 123,\n \"to\": \"<string>\",\n \"body\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.de/api/user/sms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": 123,\n \"to\": \"<string>\",\n \"body\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"message": "SMS sent successfully",
"data": {
"sms_id": "SMS_67890",
"from": "+4912345678",
"to": "+4915123456789",
"body": "Hello! This is a test SMS from Famulor.",
"segments": 1,
"cost": 0.05,
"currency": "EUR",
"status": "sent"
}
}
{
"message": "Invalid phone number format"
}
{
"message": "Insufficient balance to send SMS"
}
{
"message": "Phone number is not SMS-capable"
}
{
"message": "From number not found"
}
{
"message": "Failed to send SMS",
"error": "SMS service temporarily unavailable"
}
SMS
Envoyer un SMS
Envoie un message SMS depuis votre numéro de téléphone Famulor via l’API. Déclenchez des SMS transactionnels ou de suivi après des appels vocaux IA, la capture de prospects ou des campagnes.
POST
/
api
/
user
/
sms
Envoyer un SMS
curl --request POST \
--url https://app.famulor.de/api/user/sms \
--header 'Content-Type: application/json' \
--data '
{
"from": 123,
"to": "<string>",
"body": "<string>"
}
'import requests
url = "https://app.famulor.de/api/user/sms"
payload = {
"from": 123,
"to": "<string>",
"body": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({from: 123, to: '<string>', body: JSON.stringify('<string>')})
};
fetch('https://app.famulor.de/api/user/sms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.famulor.de/api/user/sms",
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([
'from' => 123,
'to' => '<string>',
'body' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.famulor.de/api/user/sms"
payload := strings.NewReader("{\n \"from\": 123,\n \"to\": \"<string>\",\n \"body\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.famulor.de/api/user/sms")
.header("Content-Type", "application/json")
.body("{\n \"from\": 123,\n \"to\": \"<string>\",\n \"body\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.de/api/user/sms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": 123,\n \"to\": \"<string>\",\n \"body\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"message": "SMS sent successfully",
"data": {
"sms_id": "SMS_67890",
"from": "+4912345678",
"to": "+4915123456789",
"body": "Hello! This is a test SMS from Famulor.",
"segments": 1,
"cost": 0.05,
"currency": "EUR",
"status": "sent"
}
}
{
"message": "Invalid phone number format"
}
{
"message": "Insufficient balance to send SMS"
}
{
"message": "Phone number is not SMS-capable"
}
{
"message": "From number not found"
}
{
"message": "Failed to send SMS",
"error": "SMS service temporarily unavailable"
}
API Famulor 1.0 (héritée). Cette page concerne uniquement Famulor 1.0 (
app.famulor.de) et est conservée pour la compatibilité. Pour la plateforme actuelle, consultez la référence API Famulor 2.0.Corps de la requête
integer
requis
L’identifiant de votre numéro de téléphone depuis lequel le SMS sera envoyé (doit être compatible SMS)
string
requis
Le numéro de téléphone du destinataire au format international (par ex., « +4915123456789 »)
string
requis
Le contenu du message SMS (300 caractères max.)
Champs de réponse
string
Message de succès confirmant que le SMS a été envoyé
object
Données supplémentaires concernant le SMS envoyé
Réponses d’erreur
object
Afficher Détails de l’erreur
Afficher Détails de l’erreur
string
Message d’erreur décrivant le problème (numéro de téléphone invalide, solde insuffisant, etc.)
object
Remarques
- Le numéro de téléphone expéditeur doit appartenir à l’utilisateur authentifié
- Le numéro de téléphone expéditeur doit être compatible SMS
- L’abonnement du numéro de téléphone doit être actif (non expiré)
- Un solde de compte suffisant est requis pour couvrir les coûts du SMS
- Les numéros de téléphone sont automatiquement formatés au format E.164
- Les coûts des SMS varient selon le pays de destination et sont facturés par segment
- Les messages longs peuvent être divisés en plusieurs segments, augmentant le coût
- Le numéro de téléphone du destinataire doit respecter les normes internationales
{
"message": "SMS sent successfully",
"data": {
"sms_id": "SMS_67890",
"from": "+4912345678",
"to": "+4915123456789",
"body": "Hello! This is a test SMS from Famulor.",
"segments": 1,
"cost": 0.05,
"currency": "EUR",
"status": "sent"
}
}
{
"message": "Invalid phone number format"
}
{
"message": "Insufficient balance to send SMS"
}
{
"message": "Phone number is not SMS-capable"
}
{
"message": "From number not found"
}
{
"message": "Failed to send SMS",
"error": "SMS service temporarily unavailable"
}
Pages associées : Introduction et Guide d’authentification, et Exemples d’intégration API.