Créer un nouvel identifiant SMTP

POST /api/email/credentials

Crée un nouvel identifiant SMTP.

En-têtes de requête:
Status Codes:
Resqson string emailAddress:

L’adresse email d’envoi.

Resqson string serverAddress:

L’adresse (port inclus) du serveur SMTP servant à envoyer les emails.

Resqson string login:

Le nom d’utilisateur à utiliser pour l’authentification SMTP.

Resqson string password:

Le mot de passe utilisateur.

En-têtes de réponse:
  • Location – Le chemin d’accès du nouvel identifiant créé

Exemple de requête

POST https://my_waarp_gateway.net/api/email/credentials HTTP/1.1
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json
Content-Length: 197

{
  "emailAddress": "waarp@example.com",
  "serverAddress": "smtp.example.com:587",
  "login": "waarp",
  "password": "sesame"
}

Exemple de réponse

HTTP/1.1 201 CREATED
Location: https://my_waarp_gateway.net/api/email/credentials/waarp@example.com