---
title: "Get logs"
method: GET
path: "/botMetric/logs"
tags: ["BotMetric"]
---

# Get logs

`GET /botMetric/logs`

## Query parameters

- `botId` string
- `messageId` string
- `sourceId` string
- `leadId` string
- `actionId` string
- `start` string, date-time
- `end` string, date-time
- `maxCount` integer

## Response `200`

Success

- BotMetricLog[]
  - `timestamp` string, date-time
  - `botId` string, nullable
  - `messageId` string, nullable
  - `sourceId` string, nullable
  - `leadId` string, nullable
  - `actionId` string, nullable
  - `severity` integer, nullable
  - `message` string, nullable
  - `prompt` BotMetricPrompt[], nullable
    - `kind` string, nullable
    - `body` string, nullable
  - `response` string, nullable
  - `promptTokens` integer, nullable
  - `completionTokens` integer, nullable
  - `provider` string, nullable
  - `model` string, nullable
  - `purpose` string, nullable
  - `body` string, nullable

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
