Skip to main content
POST
Draft a reply on a submission’s email thread

Authorizations

Authorization
string
header
required

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

Path Parameters

submissionId
string<uuid>
required

Body

application/json
id
string<uuid>
required

A UUID you choose for the reply; reuse it to retry.

replyTo
string<uuid>
required

The received email to answer, from the correspondence list.

text
string
required
Required string length: 1 - 30000

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