Send a test email to the tenant notification address
POST
/v1/tenants/me/notification-email/test
const url = 'https://api.emite.cr/v1/tenants/me/notification-email/test';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"notificaciones@empresa.cr"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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.crResponses
Section titled “Responses”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.