Skip to content

Save Logs

Endpoint used to save logs of a chat session in Toolzz Bots.

Terminal window
curl --request POST \
--url 'https://bots-viewer.toolzz.ai/api/v1/sessions/{sessionId}/clientLogs' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"clientLogs": {}
}'
{
"message": "<string>"
}
ParameterTypeDescriptionRequired
AuthorizationStringAccess token (must contain “Bearer” before the token)Yes
ParameterTypeDescriptionRequired
sessionIdstringThe unique identifier of the session to save logs for.Yes
ParameterTypeDescriptionRequired
clientLogsanyInformation about the logs generated.Yes

KeyTypeDescription
messagestringSuccessful save confirmation message.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request.