Skip to content

Get API token

To get a CryptoPay API token, you need to contact the bot @CryptoBot.

Using the testnet

To get a token in the test network, you should contact the bot @CryptoTestnetBot, and follow this instruction.

About bot

Check bot name

Before using the bot, make sure that the information about the bot matches the one below!

For main bot @CryptoBot:
main_bot_info main_bot_info

from test bot @CryptoTestnetBot:
test_bot_info test_bot_info

Start bot

Use the /start command in the bot to exit to the main menu and press the button 🏝️ Crypto Pay
start start

Creating of application

Click the Create application button, CryptoBot will automatically create an application for you with a unique name.
cryptopay cryptopay

Getting API token

Click the "API token" button to see your API token, it consists of an application identifier and a unique string in the format 000000:XXXXXXXXXXXXXXXXXXXXXXXXX
app app token token

Using of token

After receiving the token, use it when creating an instance of the class [CryptoPay][src.CryptoPayAPI.CryptoPay] like this CryptoPay('000000:XXXXXXXXXXXXXXXXXXXXXXXXX').

Warning

Don't forget to set the testnet=True flag if you are using a test bot token, otherwise authorization will fail.


Last update: January 11, 2023
Created: December 29, 2022