Skip to content

Send Message

Endpoint used to send a message to the agent.

Terminal window
curl --request POST \
--url https://kratos.api.toolzz.com.br/api/v1/chat/send-message \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"conversationId": "<string>",
"botId": "<uuid>"
}
'
{
"message": {
"content": "<string>",
"conversationId": "<string>",
"transferToAgent": true,
"targetBotId": "<uuid>"
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
messageStringThe text content of the message to be sent to the agent.Yes
conversationIdStringUnique identifier of the conversation session.No
botIdUUIDUnique identifier of the agent (bot).Yes
KeyTypeDescription
messageObjectObject containing the interaction details and routing metadata.
message.contentStringTextual content of the generated response or system message.
message.conversationIdStringUnique identifier of the active conversation.
message.transferToAgentBooleanIndicates if the conversation should be transferred to a human agent or another support level.
message.targetBotIdUUIDIdentifier of the target Agent if the transfer occurs between bots.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page