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
| Nom | Type | Description |
|---|---|---|
| from | string | — |
| identityId | string | — |
| to | string | — |
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
| Statut | Description | Type |
|---|---|---|
| 202 | Accepted | send_test_email.SendTestEmailResult |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
Source machine : openapi.json · opération sendTestEmail