List Logs in Results
Endpoint used to list logs from a specific result in a Toolzz Bot.
Request Example
Section titled “Request Example”curl --request GET \ --url 'https://bots.toolzz.ai/api/v1/toolzz/{typebotId}/results/{resultId}/logs' \ --header 'Authorization: Bearer <token>'Response Example
Section titled “Response Example”{ "logs": [ { "id": "<string>", "resultId": "<string>", "level": "<string>", "message": "<string>", "createdAt": "<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 |
|---|---|---|---|
typebotId | string | The unique identifier of the Toolzz Bot to list logs from. | Yes |
resultId | string | The unique identifier of the result. Returned by the Start Chat endpoint or found via the List Results endpoint. | Yes |
Response description
Section titled “Response description”| Key | Type | Description |
|---|---|---|
logs | object[] | The logs data from the result. |
logs[].id | string | Unique identifier of the log entry. |
logs[].resultId | string | Unique identifier of the associated result. |
logs[].level | string | Severity level of the log (e.g. info, error). |
logs[].message | string | Log message content. |
logs[].createdAt | string | Log creation date. |
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.