Skip to main content
POST
Add a message to an underwriting submission

Authorizations

Authorization
string
header
required

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

Path Parameters

submissionId
string<uuid>
required

The submission’s id.

Body

application/json
channel
enum<string>
required

How the message arrived: email, sms or chat.

Available options:
email,
sms,
chat
externalId
string
required

The channel’s own id for the message, such as an email’s Message-ID. A retry with the same id and body adds nothing.

Required string length: 1 - 998
threadRef
string

The channel’s thread id, kept as sent.

Required string length: 1 - 998
from
string

The sender: an email address, phone number or handle.

Required string length: 1 - 320
receivedAt
string<date-time>

When the message arrived.

text
string

The message’s text.

Required string length: 1 - 200000
raw
object
documents
object[]

Files that came with the message. With raw, its attachments are the documents.

Maximum array length: 50

Response

A retry with the same externalId and body: the message as first added.

id
string<uuid>
required
channel
string
required

Extensible: email, sms or chat.

Minimum string length: 1
externalId
string
required
Minimum string length: 1
threadRef
string | null
required
from
string | null
required

As given, else the email’s From address.

receivedAt
string<date-time> | null
required

As given, else the email’s Date.

documents
object[]
required

Its documents, in part order.

rejected
object[]
required

Attachments the file store refused; the rest were kept.