Skip to main content
POST
Leave a draft message on a conversation

Authorizations

x-api-key
string
header
required

Send the API key in the x-api-key header.

Path Parameters

id
string<uuid>
required

Id of the conversation, as returned by GET /v1/conversation/list.

Example:

"8c1f2e3d-4b5a-4c6d-9e7f-0a1b2c3d4e5f"

Body

application/json
body
string
required

The draft text, as plain text: HTML is not interpreted and shows up literally. Each line becomes its own paragraph in the composer, and a blank line stays blank. In a private draft (isPrivate: true) users and assignee groups can be mentioned with the same <@{userId}> and <@group:{conversationAssigneeGroupId}> tokens as POST /v1/conversation/{id}/message; mentioned users and groups are notified only when an agent sends the draft. A public draft (isPrivate: false) rejects mention tokens with 400.

Minimum string length: 1
Example:

"On my way, about 20 minutes out."

isPrivate
boolean
required

true drafts a private (internal) note, false a public reply to the client. Each conversation holds one API draft per value.

Example:

false

Response

Created or updated draft

id
string<uuid>
required

Id of the draft. Posting again for the same conversation and isPrivate returns the same id.

Example:

"57f2d879-20f8-4106-9abb-44fa099e0448"

conversationId
string<uuid>
required

Id of the conversation the draft belongs to.

Example:

"8c1f2e3d-4b5a-4c6d-9e7f-0a1b2c3d4e5f"

isPrivate
boolean
required

Whether the draft is a private (internal) note or a public reply.

Example:

false

body
string
required

The draft text as sent in the request (trimmed).

Example:

"On my way, about 20 minutes out."

status
enum<string>
required

active when agents see the draft in the composer. dismissed when an agent already dismissed or sent this exact text: the draft stays retired and nobody sees it; post different text to propose it again.

Available options:
active,
dismissed
Example:

"active"