Skip to main content
POST
/
chat
/
messages
/
new
Add new messages to a chat
curl --request POST \
  --url https://api.qtzl.ai/chat/messages/new \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "chat_id": "<string>",
  "messages": [
    {
      "content": "<string>",
      "participant": "<string>"
    }
  ]
}'
{
"result": "ok",
"messages": [
{
"participant": "9",
"content": "Absolutely",
"timestamp": "2025-03-14T01:42:25.960Z",
"translations": {
"es-ES": "Absolutamente"
}
},
{
"participant": "9",
"content": "Absolutely. Anything else?",
"timestamp": "2025-03-14T01:43:24.829Z",
"translations": {
"es-ES": "Absolutamente. ¿Algo más?"
}
}
]
}
Messages sent to this endpoint are immediately queued for translation. If 20 or fewer messages are sent, then the response will contain the completed translation. If over 20 messages are sent, then the translations will be queued and the response will not include translations. Translations can be queried later via messages/get.

Authorizations

api-key
string
header
required

Body

application/json
chat_id
string
required
messages
object[]
required
Minimum length: 1

Response

result
string
Example:
messages
object[]