GET /unibox/threads/by-lead/{leadId}

Authentication

Send your organization API key as a Bearer credential.

Authorization: Bearer YOUR_API_KEY

Path parameters

leadId number required

Lead ID

Example: 22092194

Response

application/json

Thread retrieved successfully

id number required

Unique ID of the email thread

Example: 999
is_archive boolean required

Indicates whether the thread is archived

Example: false
lead_id number required

ID of the lead associated with this thread

Example: 22092194
campaign_id string required

ID of the campaign associated with this thread

Example: c8a7b9d2-1234-5678-9999-abcdef123456
user_id number required

ID of the user who owns this thread

Example: 42
created_at string required

Thread creation timestamp

Example: 2025-12-08T10:00:00.000Z
updated_at string required

Last update timestamp for the thread

Example: 2025-12-08T11:00:00.000Z
last_reply_message_id number required

ID of the last reply message in the thread

Example: 555
last_message_date_sent string required

Date and time when the last message was sent in the thread

Example: 2025-12-08T11:30:00.000Z
emails object[] required

List of emails belonging to this thread

Show child attributes Hide child attributes
emails.id number required

Unique ID of the email record

Example: 123
emails.thread_id number required

ID of the thread this email belongs to

Example: 999
emails.date_sent string required

Date and time when the email was sent

Example: 2025-12-08T12:00:00.000Z
emails.from_name string required

Name of the sender

Example: John Doe
emails.from_email string required

Sender email address

Example: john@example.com
emails.to_email string required

Recipient email address

Example: lead@example.com
emails.body string required

Body content of the email

Example: Hello, this is message body
emails.subject string required

Subject of the email

Example: Subject text
emails.is_our_email boolean required

Indicates whether this email was sent by our system

Example: false
emails.is_new boolean required

Indicates whether this email is marked as new/unread

Example: true
emails.message_id string required

Unique Message-ID from email headers

Example: <message-id@mail.com>
emails.cc_email string required

Carbon copy (CC) email addresses

Example: cc@example.com
emails.attachments object[] required

Attachments belonging to this email. Empty array if the email has no attachments.

Show child attributes Hide child attributes
emails.attachments.id number required

Unique ID of the attachment

Example: 1
emails.attachments.unibox_email_id number required

ID of the email this attachment belongs to

Example: 123
emails.attachments.type number required

Attachment type. 1 — Generic, 2 — Personalised

Example: 1
emails.attachments.ext string required

File extension (without the leading dot)

Example: pdf
emails.attachments.original_filename string required

Original filename as uploaded by the user

Example: proposal.pdf
emails.attachments.saving_filename string required

Internal storage filename used by the system

Example: a1b2c3d4-5678-90ab-cdef-1234567890ab.pdf