Save Logs
Endpoint used to save logs of a chat session in Toolzz Bots.
Request Example
Section titled “Request Example”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": {} }'Response Example
Section titled “Response Example”{ "message": "<string>"}Request description
Section titled “Request description”Access Token
Section titled “Access Token”| Parameter | Type | Description | Required |
|---|---|---|---|
Authorization | String | Access token (must contain “Bearer” before the token) | Yes |
URL Parameters (Path)
Section titled “URL Parameters (Path)”| Parameter | Type | Description | Required |
|---|---|---|---|
sessionId | string | The unique identifier of the session to save logs for. | Yes |
Body Parameters
Section titled “Body Parameters”| Parameter | Type | Description | Required |
|---|---|---|---|
clientLogs | any | Information about the logs generated. | Yes |
Response description
Section titled “Response description”| Key | Type | Description |
|---|---|---|
message | string | Successful save confirmation message. |
Security
Section titled “Security”To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request.