POST
/
api
/
messaging
/
submit
Submit a message to the central messaging system
curl --request POST \
  --url http://localhost:3000/api/messaging/submit \
  --header 'Content-Type: application/json' \
  --data '{
  "channel_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "author_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "content": "<string>",
  "in_reply_to_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source_type": "<string>",
  "raw_message": {},
  "metadata": {}
}'
{
  "success": true,
  "data": {
    "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": {}
  }
}

Body

application/json

Response

201
application/json

Message submitted successfully

The response is of type object.