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>"
]
}
}
Send a message to a conversation 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>"
]
}
}
ID of the session
Message sent and processed successfully
The response is of type object
.
Was this page helpful?