---
title: "Get Number Message Used"
method: GET
path: "/api/chat/message-statistic"
tags: ["Chat"]
---

# Get Number Message Used

`GET /api/chat/message-statistic`

Get the number of messages used over a specified day interval.

## Query parameters

- `bot_id` string, uuid, nullable
- `day_interval` integer

## Response `200`

Successful Response

- MessageStatisticResponse[]
  - `bot_id` string, uuid, required — Unique identifier for the associated bot.
  - `bot_name` string, required — Name of the associated bot.
  - `message_count` MessageCountResponse[], required — List of message counts.
    - `date` string, date-time, required — Date of the message count.
    - `count` integer, required — Number of messages on the specified date.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
