Skip to content

Send a test email to the tenant notification address

POST
/v1/tenants/me/notification-email/test
curl --request POST \
--url https://api.emite.cr/v1/tenants/me/notification-email/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "notificaciones@empresa.cr" }'

Sends a one-off test email so the tenant can confirm the inbox receives mail. Pass email to test an address not yet saved; omit it to test the saved destination (notificationEmail ?? email). One test every 30 seconds per company (422 TEST_EMAIL_COOLDOWN); 502 TEST_EMAIL_SEND_FAILED when the mail server refuses it; not available in the demo.

Media typeapplication/json
object
email

Address to test, typically the one in the form before it is saved. Omit it to test the saved destination (notificationEmail, else email).

string
Example
notificaciones@empresa.cr
Media typeapplication/json
object
sentTo
required

The address the test email was sent to: the email of the request, else the saved notificationEmail, else the company email.

string
Example
{
"sentTo": "notificaciones@emite.cr"
}

NOTIFICATION_EMAIL_MISSING — no address to test.