POST
/
chat
/
messages
/
new
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

API key authentication. You can obtain your API key by registering on your project dashboard.

Body

application/json

Response

201
application/json

Messages successfully added

The response is of type object.