API / Messaging

POST

/emails/test

Send a diagnostic test email from the UI

Sends a server-built email through the full DKIM-sign + outbox + MTA pipeline. Bypasses the monthly quota and tags the message as kind=test.

Authentification : clé API Bearer requise.

Corps JSON

Test parameters

NomTypeDescription
fromstring
identityIdstring
tostring

Exemple curl

curl -X POST https://api.sporee.fr/emails/test \
  -H "Authorization: Bearer $SPORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "hello@votredomaine.fr",
    "to": [
      "alex@example.com"
    ]
  }'

Réponses

StatutDescriptionType
202Acceptedsend_test_email.SendTestEmailResult
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError

Source machine : openapi.json · opération sendTestEmail