Skip to content

CLI command

tinbox create-draft

Create a reply DRAFT (never sends on its own — a human reviews and sends, or use send_email if enabled). Provide the inboxId and, for a reply, the threadId. Returns the new draft's id and version.

Generated from tool: create_draft

Usage

sh
tinbox create-draft --inboxId <inboxId> --threadId <threadId> --to <to> --subject <subject> --bodyText <bodyText>

Flags

NameTypeRequiredDefaultDescription
--inboxIdstringyes—The inbox the draft belongs to (required).
--threadIdstringyes—The thread to reply to (for a reply draft).
--tostringyes—Recipient addresses.
--subjectstringyes—Draft subject.
--bodyTextstringyes—Draft body (plain text).