Localizado por IA

Obtener cuerpo del email

const response = await fetch('https://api.emailit.com/v2/emails/em_abc123xyz789def456/body', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer em_test_51RxCWJ...vS00p61e0qRE',
    'Content-Type': 'application/json'
  }
});

const result = await response.json();

Respuestas

{
  "text": "Contenido en texto plano del email",
  "html": "<html><body><h1>¡Bienvenido!</h1><p>Contenido HTML del email</p></body></html>"
}