Localizzato tramite IA

Get email

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

const result = await response.json();

Responses

{
  "object": "email",
  "id": "em_abc123xyz789def456ghi012jkl345",
  "token": "abc123xyz789",
  "message_id": "<abc123xyz789@yourdomain.com>",
  "from": "sender@yourdomain.com",
  "to": "recipient@example.com",
  "subject": "Hello World",
  "status": "delivered",
  "size": "12345",
  "scheduled_at": null,
  "created_at": "2026-01-08T12:00:00.123456Z",
  "updated_at": "2026-01-08T12:05:00.123456Z",
  "tracking": {
    "loads": true,
    "clicks": true
  },
  "meta": {
    "campaign": "summer",
    "type": "marketing"
  },
  "headers": "From: sender@yourdomain.com\r\nTo: recipient@example.com\r\nSubject: Hello World\r\nContent-Type: text/html; charset=utf-8\r\n...",
  "content": "Content-Type: text/html; charset=utf-8\r\n\r\n<html><body><h1>Welcome!</h1></body></html>"
}