Développeurs

Documentation API

Envoyez votre premier SMS en quelques minutes. Voici l'essentiel — la documentation complète est en ligne.

Démarrage rapide

URL de base
https://route.kyasms.com/api/v3
Authentification
En-tête HTTP : APIKEY: votre_clé
Envoyer un SMS
curl -X POST https://route.kyasms.com/api/v3/sms/send \
  -H "Content-Type: application/json" \
  -H "APIKEY: kyasms*******" \
  -d '{
    "from": "KYA SMS",
    "to": ["2290166000000", "2349134000000"],
    "type": "text",
    "message": "Votre code : 4821",
    "ref_custom": "cmd-1042"
}'
Réponse 200 OK
{
  "reason": "success",
  "from": "KYA SMS",
  "wallet": "23f918d0-d3f7-448d-a6ce-xxxxx",
  "data": [
    { 
      "messageId": "GSM01...",
      "status": "ACT", 
      "to": "2290166000000", 
      "route": "BJ_MTN", 
       "price": 8 
    },
    { 
      "messageId": "GSM02...", 
      "status": "ACT", 
      "to": "2349134000000", 
      "route": "NG_MTN", 
      "price": 3 
    },
  ]
}