Skip to content

Commit 62e866d

Browse files
pixelplexFull-Hat
authored andcommitted
Add information about api keys (ton-community#729)
* Add information about api keys * Remove info about tariffs --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com>
1 parent 0af4c7b commit 62e866d

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

docs/develop/dapps/apis/api-key.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Api keys
2+
3+
## Overview
4+
5+
When using the TON HTTP API, a `token` (`key`) is generally not required. However, it unlocks request limitations. There are several available plans, all of which can be viewed in Toncenter mini app
6+
7+
## How to Get a Key
8+
9+
To get a key, visit [@tonapibot](https://t.me/tonapibot), press the `start` button, and follow the instructions.
10+
11+
![Telegram Bot](/img/registration-process/telegram-bot.png)
12+
13+
Press the `Manage API Keys` or `Toncenter` button to open the Telegram mini app.
14+
15+
![Toncenter Main Mini App](/img/registration-process/toncenter-main-miniapp.png)
16+
17+
Press `Create API Key`.
18+
19+
![Create API Key](/img/registration-process/create-api-key.png)
20+
21+
Fill in the required fields and press `Create`. That's it! The key can now be used for sending requests.
22+
23+
## How to Update the Subscription Plan
24+
25+
To update your subscription plan, follow these steps:
26+
27+
- Click the `MANAGE` button at the top of the app; a window with plans will open.
28+
- Choose the required plan and click `Purchase Subscription`.
29+
- Send the required amount of TON to the proposed address.
30+
31+
## Troubleshooting
32+
33+
If your Telegram app is outdated, the mini app may not work properly. Try updating the Telegram app.

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ const sidebars = {
298298
'develop/dapps/apis/README',
299299
'develop/dapps/apis/toncenter',
300300
'develop/dapps/apis/adnl',
301+
'develop/dapps/apis/api-key'
301302
],
302303
},
303304
{
Loading
58.9 KB
Loading
Loading

0 commit comments

Comments
 (0)