simpla.fydocs

Add message to session

POST
/api/chat-sessions/{id}/messages
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/chat-sessions/string/messages" \  -H "Content-Type: application/json" \  -d '{    "role": "user",    "content": "Mostre vendas do mês"  }'
{
  "id": "msg-uuid",
  "sessionId": "session-uuid",
  "role": "user",
  "content": "Mostre vendas do mês",
  "metadata": {
    "operationType": "SELECT",
    "executionTimeMs": 245
  },
  "createdAt": "2025-10-21T14:05:00Z"
}