POST
/
api
/
messaging
/
central-channels
/
{channelId}
/
messages
Send message to channel
curl --request POST \
  --url http://localhost:3000/api/messaging/central-channels/{channelId}/messages \
  --header 'Content-Type: application/json' \
  --data '{
  "author_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content": "<string>",
  "in_reply_to_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "raw_message": {},
  "metadata": {},
  "source_type": "<string>"
}'
{
  "success": true,
  "data": {
    "message": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "text": "<string>",
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": 123,
      "metadata": {}
    }
  }
}

Path Parameters

channelId
string
required

Body

application/json

Response

201
application/json

Message sent successfully

The response is of type object.