EmailAttachment

The `EmailAttachment` entity.

Definition

TypeScript
interface EmailAttachment {
  id: string;
  emailId: string;
  fileId: string;
  filename: string;
  mimeType: string | null;
  size: number | null;
  contentId: string | null;
  disposition: string | null;
  createdAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
emailIdstringrequired — Email this attachment belongs to.
fileIdstringrequired — File record holding the stored attachment bytes.
filenamestringrequired — Original filename from the MIME Content-Disposition header.
mimeTypestring | nullrequired — MIME type reported by the sender, if any.
sizenumber | nullrequired — Size of the attachment in bytes, if known.
contentIdstring | nullrequired — RFC-2392 Content-ID used for inline references, if any.
dispositionstring | nullrequired — Content-Disposition value (e.g. 'inline', 'attachment').
createdAtstringreadonly required — ISO-8601 timestamp of creation.