Lokalisiert durch KI

E-Mail-Inhalt abrufen

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();

Antworten

{
  "text": "Klartext-Inhalt der E-Mail",
  "html": "<html><body><h1>Willkommen!</h1><p>HTML-Inhalt der E-Mail</p></body></html>"
}