POST
/
api
/
messaging
/
sessions
/
{sessionId}
/
messages
Send a message to a session
curl --request POST \
  --url http://localhost:3000/api/messaging/sessions/{sessionId}/messages \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>",
  "attachments": [
    {
      "type": "<string>",
      "url": "<string>",
      "name": "<string>"
    }
  ],
  "metadata": {}
}'
{
  "id": "<string>",
  "content": "<string>",
  "authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "isAgent": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "metadata": {
    "thought": "<string>",
    "actions": [
      "<string>"
    ]
  }
}

Path Parameters

sessionId
string
required

ID of the session

Body

application/json

Response

200
application/json

Message sent and processed successfully

The response is of type object.