Skip to main content
This schema describes objects returned by the Email endpoints.
A campaign email, a reply, a manually sent email, or any other email that’s visible in the Unibox

Fields

FieldTypeRequiredDescription
idstring (uuid)YesA Unique identifier (read-only)
timestamp_createdstring (date-time)YesTimestamp when the email was added to our database. This is not the timestamp of the email itself, since the email could have been sent at a different time. Please check the timestamp_email field for the timestamp of the email. (read-only)
timestamp_emailstring (date-time)YesThe timestamp of the email, as provided by the email server. Please note that the timestamp is not always accurate, as it can be manipulated by the sender or the email server. (read-only)
message_idstringYesUnique email ID from the email server (read-only)
subjectstringYesSubject line of the email message
from_address_emailstring (email), nullableNoThe sender email address, populated based on the eaccount (read-only)
to_address_email_liststringYesComma-separated list of recipient email addresses
cc_address_email_liststring, nullableNoComma-separated list of CC email addresses
bcc_address_email_liststring, nullableNoComma-separated list of BCC email addresses
reply_tostring, nullableNoReply-to email address
bodyobjectYesAn object containing the email body in HTML and text format (read-only)
body.textstringNoText content of the email
body.htmlstringNoHTML content of the email
organization_idstring (uuid)YesThe workspace ID (read-only)
campaign_idstring (uuid), nullableNoThe id of the campaign that the email is associated with (it can be null for manually sent emails)
subsequence_idstring (uuid), nullableNoThe id of the campaign subsequence that the email is associated with (it can be null for manually sent emails)
list_idstring (uuid), nullableNoThe id of the list (if the lead is part of a list)
leadstring, nullableNoThe email address of the lead that the email is associated with
lead_idstring (uuid), nullableNoThe lead id (if any)
eaccountstringYesThe email account that was used to send the email. This needs to be validated to make sure it exists in the user workspace
ue_typenumber, nullableNoEmail type based on the life cycle of the email. Possible values: 1 (Sent from campaign), 2 (Received), 3 (Sent), 4 (Scheduled)
stepstring, nullableNoThe campaign step that the email is associated with
is_unreadnumber, nullableNoIndicates if the email is unread
is_auto_replynumber, nullableNoIndicates if the email is an auto-reply. 0 (zero) - is false, and 1 is true (read-only)
reminder_tsstring (date-time), nullableNoTimestamp for the reminder.
ai_interest_valuenumber, nullableNoAI interest value
ai_assistednumber, nullableNoIndicates if AI assistance was used
is_focusednumber, nullableNoIndicates if the email is focused (is in the primary tab in the Unibox)
i_statusnumber, nullableNoIndicates the interest status of the email
thread_idstring (uuid), nullableNoIdentifier for the email thread. All the emails in the same thread have the same thread ID
content_previewstring, nullableNoA short preview of the email content (usually the first few lines of the email)
attachment_jsonobject, nullableNoAttachment metadata for the email. This field is null when there are no attachments. (read-only)
attachment_json.filesarrayNo
attachment_json.files[].filenamestringNoAttachment file name
attachment_json.files[].sizenumberNoAttachment file size in bytes
attachment_json.files[].typestringNoAttachment MIME type
attachment_json.files[].urlstring (uri)NoDownload URL when available
attachment_json.files[].errorstring, nullableNoError description when the attachment failed to upload
from_address_jsonarray, nullableNoList of from address details
to_address_jsonarray, nullableNoList of to address details
cc_address_jsonarray, nullableNoList of CC address details
ai_agent_idstring (uuid), nullableNoID of the AI agent that sent this email (if applicable)