Start a new outbound conversation
POST /api/conversations/compose
Creates a new conversation initiated by a human agent (outbound). Specify the target contact by providing either a contactId (for existing contacts) or contactEmail/contactPhone (to create or find a contact). The message is sent via the specified channel. This starts an OutboundConversationWorkflow in Temporal.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
The workspace to create the conversation in.
Example
w1a2b3c4-5678-9abc-def0-1234567890abThe channel to send the message through (email, WhatsApp, etc.).
Example
ch1a2b3c-5678-9abc-def0-1234567890abThe ID of an existing contact to message. Provide this OR contactEmail/contactPhone, not both.
Example
ct1a2b3c-5678-9abc-def0-1234567890abEmail address of the recipient. Used when composing to a new or unresolved contact via email channel.
Example
jan.mueller@acme-customer.dePhone number of the recipient in E.164 format. Used when composing via WhatsApp or SMS channel.
Example
+4915112345678Display name for the recipient. Used when creating a new contact.
Example
Jan MuellerSubject line for the conversation. Required for email channels, optional for others.
Example
Follow-up: Your recent order inquiryThe message text to send.
Example
Dear Jan, I wanted to follow up on your recent inquiry about order #4521...Responses
Section titled “ Responses ”The outbound conversation was created and the message is being delivered.
Simple success acknowledgment returned by action endpoints (reply, resolve, take-over, etc.).
object
Always true on success.
Example
trueValidation error. For example, no contact identifier was provided, or the channel does not exist in the specified workspace.
Standard error response returned by all endpoints on failure.
object
A human-readable error message describing what went wrong.
Example
Conversation not found