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
| Field | Type | Notes |
|---|---|---|
id | string | readonly required |
emailId | string | required — Email this attachment belongs to. |
fileId | string | required — File record holding the stored attachment bytes. |
filename | string | required — Original filename from the MIME Content-Disposition header. |
mimeType | string | null | required — MIME type reported by the sender, if any. |
size | number | null | required — Size of the attachment in bytes, if known. |
contentId | string | null | required — RFC-2392 Content-ID used for inline references, if any. |
disposition | string | null | required — Content-Disposition value (e.g. 'inline', 'attachment'). |
createdAt | string | readonly required — ISO-8601 timestamp of creation. |