---
title: "Generate project TonAPI token"
method: POST
path: "/api/v1/services/tonapi/generate/token"
tags: ["tonapi_service"]
---

# Generate project TonAPI token

`POST /api/v1/services/tonapi/generate/token`

## Query parameters

- `project_id` integer, required

## Request body

- object
  - `name` string, required
  - `limit_rps` number
  - `origins` string[]
  - `capabilities` TokenCapability[]

## Response `201`

Project TonAPI token

- object
  - `token` ProjectTonApiToken, required
    - `id` integer, required
    - `name` string, required
    - `limit_rps` number
    - `token` string, required
    - `origins` string[], required
    - `date_create` integer, required
    - `capabilities` TokenCapability[]

## 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

## Changes

- **2026-07-17** `bffcc11719d3` — 1 breaking, 1 info
  - removed the enum value `mempool` of the request property `capabilities/items/`
  - removed the `mempool` enum value from the `token/capabilities/items/` response property for the response status `201`
- **2026-04-23** `af71bc81cc6d` — 1 warning, 1 info
  - added the new `mempool` enum value to the `token/capabilities/items/` response property for the response status `201`
  - added the new `mempool` enum value to the request property `capabilities/items/`
- **2026-04-22** `bffcc11719d3` — 1 warning, 1 info
  - added the new `cocoon` enum value to the `token/capabilities/items/` response property for the response status `201`
  - added the new `cocoon` enum value to the request property `capabilities/items/`
- **2025-10-25** `4a5979d5aed3` — 1 breaking
  - the request property `limit_rps` became not nullable
- **2025-10-25** `7a9b4611f547` — 1 breaking
  - the request property `limit_rps` became not nullable

[Full history](https://skmtc.dev/tonkeeper/apis/rest-api-to-ton-console/changes/api/v1/services/tonapi/generate/token/post.md)

---

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