ILAINA MAIL API
Documentation

API SMTP HTTP

Authentification HMAC

Headers requis : X-API-Key, X-Timestamp, X-Signature. Signature = HMAC-SHA256 de timestamp + "." + raw_body avec votre Secret Key.

POST https://mailpro.gsmtool.eu.cc/api/v1/send.phpContent-Type: application/json X-API-Key: mpk_... X-Timestamp: 178... X-Signature: sha256_hmac... { "sender_id": 12, "to": "client@example.com", "subject": "Code OTP", "html": "<b>Votre code est 123456</b>" }

Réponse succès

{"ok":true,"mail_id":123,"status":"sent","charged_ar":0}

Webhooks

Événements : mail.sent, mail.failed. Vérifiez X-MailPro-Signature avec votre secret webhook.

Important

Gardez le Secret Key uniquement côté serveur. Chaque envoi API est soumis au quota du plan actif ou au tarif PAYG défini dans l’administration.