---
title: "Send request to ChatGPT"
method: POST
path: "/api/v1/services/stats/gpt"
tags: ["stats_service"]
---

# Send request to ChatGPT

`POST /api/v1/services/stats/gpt`

## Query parameters

- `project_id` integer, required
- `chain` 'mainnet' | 'testnet'

## Request body

- object
  - `message` string, required
  - `context` string

## Response `200`

Answer from ChatGPT

- object
  - `message` string, required
  - `valid` boolean, required

## Other responses

- `400` — Something went wrong on client side
- `403` — Access token is missing or invalid
- `404` — The specified resource was not found
- `500` — Something went wrong on server side

---

[API](https://skmtc.net/tonkeeper/apis/rest-api-to-ton-console.md) · [All operations](https://skmtc.net/tonkeeper/apis/rest-api-to-ton-console/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonkeeper/rest-api-to-ton-console/revisions/bffcc11719d3/schema)
