Skip to main content
GET
Read an email on a submission

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Path Parameters

submissionId
string<uuid>
required
emailId
string<uuid>
required

Response

The result.

id
string<uuid>
required
direction
enum<string>
required
Available options:
inbound,
outbound
state
enum<string>
required

A reply is a draft until a person sends it; a received email is sent.

Available options:
draft,
sending,
sent
sender
string
required
subject
string | null
required
sentAt
string<date-time>
required
messageId
string | null
required

The mail’s own id: the source.messageId of the documents that came with a received email. Null for a reply not sent yet.

inReplyTo
string | null
required

For a reply, the messageId of the received email it answers.

text
string | null
required