lumail.emails.get
SDK 2.1.0 · API v2 · GET /api/v2/emails/:id
MethodGET
/api/v2/emails/:id[email protected] · lumail.emails
emails.get(id: string): Promise<LumailResult<EmailObject>>One queued or sent transactional email, including last_event. List rows omit html, text, and tags.
Path Parameters
| Name | Type | Description |
|---|---|---|
id | string | Required. Email id (eml_...). |
Response Fields
| Field | Type | Description |
|---|---|---|
object | "email" or "list" | Discriminator. Always email on this endpoint. |
id | string | Lumail email id. |
message_id | string or null | Provider message id once accepted. null while queued. |
from | string | Envelope From, including display name when you sent one. |
to | string[] | Recipients. v2 send accepts one address. |
subject | string | Subject line. |
html | string or null | Rendered HTML body. |
text | string or null | Plain-text body. |
bcc | string[] or null | Blind carbon copies from send, otherwise null. |
cc | string[] or null | Carbon copies from send, otherwise null. |
reply_to | string[] or null | Reply-To addresses from send, otherwise null. |
last_event | "queued" / "sent" / "delivered" / "opened" / "clicked" / "bounced" / "complained" / "failed" | Latest delivery or tracking event. |
scheduled_at | null | Always null. Scheduled send is not supported. |
tags | { name, value }[] | Tags from send. Empty array when none. |
created_at | string | ISO 8601 timestamp. |
data is the email object. Failures return { data: null, error: { name, message, statusCode } }.