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

NameTypeDescription
idstringRequired. Email id (eml_...).

Response Fields

FieldTypeDescription
object"email" or "list"Discriminator. Always email on this endpoint.
idstringLumail email id.
message_idstring or nullProvider message id once accepted. null while queued.
fromstringEnvelope From, including display name when you sent one.
tostring[]Recipients. v2 send accepts one address.
subjectstringSubject line.
htmlstring or nullRendered HTML body.
textstring or nullPlain-text body.
bccstring[] or nullBlind carbon copies from send, otherwise null.
ccstring[] or nullCarbon copies from send, otherwise null.
reply_tostring[] or nullReply-To addresses from send, otherwise null.
last_event"queued" / "sent" / "delivered" / "opened" / "clicked" / "bounced" / "complained" / "failed"Latest delivery or tracking event.
scheduled_atnullAlways null. Scheduled send is not supported.
tags{ name, value }[]Tags from send. Empty array when none.
created_atstringISO 8601 timestamp.

data is the email object. Failures return { data: null, error: { name, message, statusCode } }.