Skip to main content
POST
Send a message to a channel (channelId in body)

Authorizations

x-api-key
string
header
required

Placet API key (hp_...)

Body

application/json
channelId
string
required
Minimum string length: 1
text
string
status
enum<string>
Available options:
info,
success,
warning,
error
review
object
metadata
object
webhookUrl
string<uri>
attachmentIds
string[]
textAttachments
object[]
iterationOf
string

Response

Message created

id
string
required
Example:

"clxyz111"

channelId
string
required
Example:

"clxyz456"

senderType
enum<string>
required
Available options:
agent,
user
Example:

"agent"

senderId
string
required
Example:

"clxyz456"

createdAt
string
required
Example:

"2025-01-01T00:00:00.000Z"

attachments
object[]
required
text
string
Example:

"Hello from agent"

status
enum<string>
Available options:
info,
success,
warning,
error
Example:

"info"

review
object

Review object (null if no review)

Example:
metadata
object

Arbitrary metadata

Example: