v4

latestOpenAPI 3.0.0raw.githubusercontent.com2026-04-06211660.4 KB
Messages

Send a message to a channel (channelId in body)

post/api/v1/messages

Request body

channelIdstring required
textstring
status'info' | 'success' | 'warning' | 'error'
metadataobject
webhookUrlstring uri
attachmentIdsstring[]
iterationOfstring

Response

Message created

idstring required
channelIdstring required
senderType'agent' | 'user' required
senderIdstring required
textstring
status'info' | 'success' | 'warning' | 'error'
reviewobject

Review object (null if no review)

metadataobject

Arbitrary metadata

createdAtstring required

Example response

{
  "id": "clxyz111",
  "channelId": "clxyz456",
  "senderType": "agent",
  "senderId": "clxyz456",
  "text": "Hello from agent",
  "status": "info",
  "review": {
    "type": "approval",
    "status": "pending"
  },
  "metadata": {
    "source": "automation"
  },
  "createdAt": "2025-01-01T00:00:00.000Z",
  "attachments": [
    {
      "id": "clxyz789",
      "messageId": "clxyz123",
      "pluginType": "file",
      "filename": "report.pdf",
      "mimeType": "application/pdf",
      "size": 1024,
      "storageKey": "uploads/clxyz123/report.pdf",
      "createdAt": "2025-01-01T00:00:00.000Z"
    }
  ]
}