---
title: "Changes to Send query to stats service"
method: POST
path: "/api/v1/services/stats/query"
---

# Changes to Send query to stats service

`POST /api/v1/services/stats/query`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 13 of 50 revisions.

- **2025-11-03** `2bdf8d394d1a` — 1 info
- **2025-10-21** `356252841f50` — 1 breaking, 2 warning, 3 info
- **2025-03-14** `8f2ab3ccc15b` — 1 info
- **2024-11-06** `dc03bb6c514d` — 3 info
- **2024-03-22** `dbd561304b3b` — 2 info
- **2023-12-26** `fc9bd368b423` — 1 warning
- **2023-12-20** `f87ef13adb5f` — 3 info
- **2023-12-11** `e83620df7542` — 1 info
- **2023-12-04** `b179482c50fc` — 4 info
- **2023-12-01** `068f1873edc4` — 1 info
- **2023-11-22** `fd7dc5b14a12` — 1 info
- **2023-11-16** `e1eca95dfdb6` — 1 breaking, 1 info
- **2023-11-13** `fa4600c1538b` — 1 breaking, 8 info

## Changes

- **2025-11-03** `2bdf8d394d1a` — 1 info
  - added the non-success response with the status `402`
- **2025-10-21** `356252841f50` — 1 breaking, 2 warning, 3 info
  - removed the required property `estimate/approximate_cost` from the response with the `201` status
  - removed the optional property `cost` from the response with the `201` status
  - removed the optional property `total_cost` from the response with the `201` status
  - added the optional property `total_usd_cost` to the response with the `201` status
  - added the optional property `usd_cost` to the response with the `201` status
  - added the required property `estimate/approximate_usd_cost` to the response with the `201` status
- **2025-03-14** `8f2ab3ccc15b` — 1 info
  - added the non-success response with the status `409`
- **2024-11-06** `dc03bb6c514d` — 3 info
  - added the new optional request property `name`
  - added the optional property `name` to the response with the `201` status
  - added the optional property `query/name` to the response with the `201` status
- **2024-03-22** `dbd561304b3b` — 2 info
  - added the new optional `query` request parameter `chain`
  - added the required property `testnet` to the response with the `201` status
- **2023-12-26** `fc9bd368b423` — 1 warning
  - added the new `chat_gpt_query` enum value to the `type` response property for the response status `201`
- **2023-12-20** `f87ef13adb5f` — 3 info
  - added the optional property `last_repeat_date` to the response with the `201` status
  - added the optional property `total_cost` to the response with the `201` status
  - added the optional property `total_repetitions` to the response with the `201` status
- **2023-12-11** `e83620df7542` — 1 info
  - added the optional property `estimate/explain` to the response with the `201` status
- **2023-12-04** `b179482c50fc` — 4 info
  - added the new optional request property `gpt_message`
  - the request property `query` became optional
  - added the optional property `is_gpt` to the response with the `201` status
  - added the optional property `query/gpt_message` to the response with the `201` status
- **2023-12-01** `068f1873edc4` — 1 info
  - added the optional property `query/repeat_interval` to the response with the `201` status
- **2023-11-22** `fd7dc5b14a12` — 1 info
  - added the optional property `all_data_in_preview` to the response with the `201` status
- **2023-11-16** `e1eca95dfdb6` — 1 breaking, 1 info
  - the `spent_time` response's property format changed from `int32` to `int64` for status `201`
  - added the optional property `preview` to the response with the `201` status
- **2023-11-13** `fa4600c1538b` — 1 breaking, 8 info
  - removed the required property `success` from the response with the `201` status
  - api operation id `sendSqlToStats` removed and replaced with `sendQueryToStats`
  - added the new optional request property `repeat_interval`
  - added the optional property `cost` to the response with the `201` status
  - added the optional property `estimate` to the response with the `201` status
  - added the optional property `query` to the response with the `201` status
  - added the optional property `type` to the response with the `201` status
  - added the required property `date_create` to the response with the `201` status
  - added the required property `status` to the response with the `201` status

---

[Operation](https://skmtc.dev/tonkeeper/apis/rest-api-to-ton-console/docs/api/v1/services/stats/query/post.md) · [API](https://skmtc.dev/tonkeeper/apis/rest-api-to-ton-console.md) · [Page](https://skmtc.dev/tonkeeper/apis/rest-api-to-ton-console/changes/api/v1/services/stats/query/post)
