Skip to main content
POST
Create Thread
CLI:

Overview

Creates a draft one-off email thread in Unibox. This does not send the email by itself. To send the message, call Send message with the returned thread.id. Use this endpoint when you want to start a new direct email conversation outside a campaign. Campaign sends still belong to the Campaigns API and sequence engine.

Request Body

At least one draft field must be present. A sendable one-off email needs participant_email plus an email sender account, either here as account_id or later in the send request. Attachment upload metadata is available only to authenticated dashboard sessions. No caller can attach files while creating a thread: omit draft_attachments or send the dashboard’s empty array, create the draft first, then add attachments to it in Unibox. Both Bearer API-key and session requests return 403 for a non-empty array.

Example

The response includes the created draft as thread.

Duplicate Recipient Handling

If the same sender already has a non-archived, non-warmup email thread with the recipient, the API returns 409 with existing_thread and existing_threads. Open that thread and call Send message instead of creating a duplicate.

AI agent notes

Use this endpoint before POST /api/threads/{id}/messages when starting a one-off email. Do not use it to send campaign sequence messages.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
account_id
string | null

Email sender account ID, or null when no sender is selected yet.

participant_email
string

Recipient email address.

participant_name
string

Recipient display name.

draft_subject
string

Draft email subject.

draft_body_text
string

Draft plain-text body.

draft_body_html
string | null

Draft HTML body.

draft_cc
string | null

Draft CC recipients.

draft_bcc
string | null

Draft BCC recipients.

draft_attachments
object[]

Forbidden when non-empty for all callers. Omit this field or send an empty array, then add attachments after creating the thread in Unibox.

Response

Thread created.