Skip to main content
POST
Post a message to 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:

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

Body

application/json
body
string
required

The note text, as plain text: HTML is not interpreted and shows up literally, and line breaks are kept. Mention users and assignee groups with tokens: <@{userId}> mentions a user (any UserId, an active user of your partner) and <@group:{conversationAssigneeGroupId}> mentions an assignee group enabled for your partner. Each token is replaced with the same mention markup the portal composer stores, and mentioned users and groups are notified like portal mentions. A token that is malformed, unknown, or refers to a deactivated user is rejected with 400 naming the token. Plain @Name text and email addresses are left alone. The note is stored as a single paragraph, like a note composed in the portal.

Minimum string length: 1
Example:

"Shipment delayed. <@ovuid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344> and <@group:0b6f1c2e-6d0a-4f0e-9a41-5d7e3c8b9a10> please follow up."

isPrivate
enum<boolean>
required

Must be true: only private (internal) notes are supported in this version. false or omitting the flag is rejected. Public replies will be enabled through this same field in a future version.

Available options:
true
Example:

true

senderId
string

Platform user id. Newer ids are ovuid-<uuid>; legacy users may have bare (e.g. numeric) ids.

Minimum string length: 1
Example:

"ovuid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344"

parentMessageId
string<uuid>

Id of an internal note in this conversation to reply to. When set, the message is posted as a reply in that note’s thread instead of as a new note. The parent must be a top-level internal note of this conversation (not itself a reply) whose thread is not resolved; otherwise the request is rejected with 422.

Example:

"0b6f1c2e-6d0a-4f0e-9a41-5d7e3c8b9a10"

Response

Created message

id
string
required
body
string | null
required
isPrivate
boolean | null
required
parentMessageId
string | null
required

Id of the internal note this message replies to; null for a top-level message.