Localizado por IA

Obtener metadatos del email

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

const result = await response.json();

Respuestas

{
  "object": "email",
  "id": "em_abc123xyz789def456ghi012jkl345",
  "type": "outbound",
  "token": "abc123xyz789",
  "message_id": "<abc123xyz789@yourdomain.com>",
  "from": "sender@yourdomain.com",
  "to": "recipient@example.com",
  "subject": "Hola Mundo",
  "status": "delivered",
  "size": 4523,
  "scheduled_at": null,
  "created_at": "2026-01-08T12:00:00.123456Z",
  "updated_at": "2026-01-08T12:05:00.123456Z",
  "tracking": {
    "loads": true,
    "clicks": false
  },
  "meta": null,
  "headers": {
    "From": "sender@yourdomain.com",
    "To": "recipient@example.com",
    "Subject": "Hola Mundo",
    "Content-Type": "multipart/mixed; boundary=----boundary123"
  },
  "attachments": [
    {
      "filename": "doc.pdf",
      "content_type": "application/pdf",
      "size": 12345,
      "content_id": null,
      "content_disposition": "attachment"
    }
  ]
}