API & SMPP

Intégrez nos APIs dans vos
applications en minutes

Integrate our APIs into your
applications in minutes

API HTTPS REST, protocole SMPP et WhatsApp Business API. Documentation complète, exemples de code, support développeurs 24/7.

HTTPS REST API, SMPP protocol and WhatsApp Business API. Complete documentation, code examples, 24/7 developer support.

Langages supportés Supported languages PHP Python Java JavaScript .NET / C# C / C++ Delphi Ruby

Envoi SMS par requête HTTP GET / POST

Send SMS via HTTP GET / POST

GET sms.etech-keys.com/ss/envoyer.php

Envoi simple d'un SMS à un ou plusieurs destinataires.

Simple SMS sending to one or multiple recipients.

ParamètreDescriptionRequis
loginVotre identifiantYour usernameOui
passwordVotre mot de passeYour passwordOui
senderNom d'expéditeur (max 11 car.)Sender name (max 11 chars)Oui
telNuméro(s) destinataire(s)Recipient number(s)Oui
msgContenu du SMS (UTF-8)SMS content (UTF-8)Oui
typeflash / normalNon
POST v1.api.etech-keys.com/api/v1/send-sms

API REST v1 moderne avec authentification Bearer token.

Modern REST v1 API with Bearer token authentication.

Bearer Token JSON
PHP
// Envoi SMS via API HTTPS GET
$url = "https://sms.etech-keys.com/ss/envoyer.php";
$params = [
    'login'    => 'VOTRE_LOGIN',
    'password' => 'VOTRE_MOT_DE_PASSE',
    'sender'   => 'MON_SENDER',
    'tel'      => '237673767207',
    'msg'      => 'Bonjour depuis ETECH KEYS!',
];
$response = file_get_contents(
    $url . '?' . http_build_query($params)
);
echo $response;

Envoi de messages WhatsApp via REST

Send WhatsApp messages via REST

POST /api/v1/whatsapp/send

Envoi d'un message WhatsApp texte ou template.

Send a WhatsApp text or template message.

Bearer Token Template Meta
GET /api/v1/whatsapp/balance

Consulter le solde WhatsApp disponible.

Check available WhatsApp balance.

GET /api/v1/whatsapp/received

Récupérer les messages reçus (inbox).

Retrieve received messages (inbox).

PHP
// Envoi template WhatsApp
$ch = curl_init();
curl_setopt_array($ch, [
  CURLOPT_URL => 'https://v1.api.etech-keys.com/api/v1/whatsapp/send',
  CURLOPT_POST => true,
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer ' . $token,
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => json_encode([
    'to'       => '237673767207',
    'type'     => 'template',
    'template' => [
      'name'     => 'mon_template',
      'language' => 'fr',
      'components' => [[
        'type'   => 'body',
        'parameters' => [[
          'type'  => 'text',
          'text'  => 'Jean Dupont',
        ]],
      ]],
    ],
  ]),
  CURLOPT_RETURNTRANSFER => true,
]);
$result = curl_exec($ch);

Protocole SMPP — Haut débit

SMPP Protocol — High throughput

Connexion directe au réseau via protocole SMPP v3.4. Idéal pour les volumes importants (>10 000 SMS/min).

Direct network connection via SMPP v3.4 protocol. Ideal for high volumes (>10,000 SMS/min).

Serveur SMPP
SMPP Server

Hôte : sms.etech-keys.com · Port : 2775 (TLS: 2776)

Host: sms.etech-keys.com · Port: 2775 (TLS: 2776)

Version

SMPP v3.4 · Modes : Transmitter, Receiver, TransceiverModes: Transmitter, Receiver, Transceiver

Débit
Throughput

Jusqu'à 500 SMS/s selon l'abonnement

Up to 500 SMS/s depending on subscription

Sécurité
Security

Connexion TLS disponible · Authentification par login/password

TLS connection available · Login/password authentication

Config SMPP
# Paramètres de connexion SMPP

host       = sms.etech-keys.com
port       = 2775
port_tls   = 2776
version    = 3.4
system_id  = VOTRE_LOGIN
password   = VOTRE_MOT_DE_PASSE
system_type= SMPP
mode       = transceiver

# Encodage
data_coding= 0  (GSM7)
data_coding= 8  (UCS2/Unicode)

# Keepalive
enquire_link= 30s

Accusés de réception & Callbacks

Delivery reports & Callbacks

DLR SMS
SMS DLR

Recevez un callback HTTP sur votre URL dès qu'un SMS est livré ou échoue. Paramètres : tel, etat, id, date.

Receive an HTTP callback on your URL when an SMS is delivered or fails. Parameters: tel, status, id, date.

Webhook WhatsApp
WhatsApp Webhook

Réception de messages entrants, statuts de livraison, mises à jour templates. Vérification HMAC-SHA256.

Receive inbound messages, delivery statuses, template updates. HMAC-SHA256 verification.

SMS entrants (MO)
Inbound SMS (MO)

Recevez les réponses SMS de vos clients sur votre numéro court ou longcode via callback HTTP.

Receive SMS replies from your clients on your short number or longcode via HTTP callback.

PHP — Webhook
// callback.php — Réception DLR SMS
$tel   = $_GET['tel']  ?? '';
$etat  = $_GET['etat'] ?? '';  // 1=livré, 2=échoué
$id    = $_GET['id']   ?? '';

if ($etat === '1') {
    // SMS livré
    log_delivery($id, $tel, 'delivered');
} elseif ($etat === '2') {
    // SMS échoué
    log_delivery($id, $tel, 'failed');
}

http_response_code(200);
echo 'OK';

Prêt à intégrer nos APIs ?

Ready to integrate our APIs?

Créez votre compte et obtenez vos credentials en quelques minutes.

Create your account and get your credentials in minutes.