API
РусскийAPI keys
An API key lets your server create payments and check their status. The API is a type of account, like payment links and stores: keys are created on an approved account of type API.
Creating a key
Open the API tab
Payments → API keys, and choose an approved account of type API. Payments created with the key go to that account.
Name the key
A name you will recognise later, for example “Production” or “Staging”.
Copy it now
The full key — it starts with tk_ — is shown once. Copy it straight into your server's configuration. Later the dashboard shows only its first characters.
Keeping it safe
- Use the key only on your server. Never put it in a website, a mobile app or a public repository.
- We store only a hash of the key, so a lost key cannot be recovered — create a new one.
- One key per environment makes it easy to revoke one without touching the others.
Revoking a key
Revoke a key from its row in the list. Requests with it stop working immediately, so switch your integration to a new key first. Revoked keys stay in the list for history.
New accounts need a confirmed phone number before the API accepts requests.
Is there a separate plan for the API?
No. An API account is opened like any other account — with a business questionnaire — and counts toward your plan's number of accounts. Payment limits are those of your plan. See Plans.