Key concepts

Telegram API ID and API Hash: where to find them

Find your Telegram API ID and API Hash in API development tools, understand their purpose and see why a BotFather token cannot replace them.

GetTGAPI editorial teamUpdated

Where to find them: Sign in to my.telegram.org with your own Telegram account and open API development tools. An existing application shows its API ID and API Hash; otherwise, complete the application form. A token from BotFather is a different credential and cannot replace this pair. Official instructions

Quick answer: ID and Hash come from your developer application. A Bot Token is for a bot; they are not interchangeable. GetTGAPI can help identify the credentials you need before assisting with the portal application.

For help, contact support at gettgapi.com/en/help#contact. Already have an access code? Start at gettgapi.com/en/redeem.

Check what your tool requires

Fields named api_id and api_hash usually mean Telegram application credentials. A Bot Token field usually means a Telegram Bot API integration. Neither can replace the other.

Do not buy solely because a tool says Telegram API. Read its configuration instructions. If unsure, give support the non-secret field names.

What do apiid, api_id, appid and apihash mean?

apiid, api_id and API ID commonly refer to the application ID; apihash, api_hash and API Hash refer to its matching Hash. Some discussions use appid, but other products use that name too, so read the actual field description.

“TG API key” is not precise enough to identify a credential. See the official entrances, Telethon configuration guide, or what application assistance delivers, depending on your task.

Find the credential by its field name

Field in your software What to obtain Next step
api_id plus api_hash Your developer application credentials Apply or view the app
bot_token only The token for your bot Manage it with BotFather
API ID, Hash and Bot Token together A bot using a client library may need both credential types Follow the library's documented bot authorization flow
session or tdata An authorized account session Not a substitute name for API ID or Hash
GetTGAPI access code Uses for our application-assistance workflow Enter the code

If a tool only says “API key,” read its documentation before pasting anything. Do not infer the type solely from the number of characters. For costs, see official APIs versus paid assistance.

API ID and API Hash

API ID identifies an application. API Hash is its associated credential. They come from the developer portal and are generally used together.

They are not phone verification codes or two-step passwords. Accessing a user account also requires user authorization: getting ID and Hash does not log in that user. Telegram user authorization

API ID is not an order number and API Hash is not a one-time code. Copy each value into its own field, without labels, quotes or explanatory text.

Bot Token

A Bot Token authorizes a bot to call the Bot API and is managed through official BotFather. Support bots and other bot functions use this type of credential.

Follow Telegram's BotFather instructions to create or manage bots. Our website service delivers API ID and API Hash; it does not replace BotFather or sell bot tokens.

Verification codes and two-step passwords

A developer portal code verifies access to that portal. A Telegram client login code belongs to the particular client login request. Do not mix them. Accounts with two-step verification may also need their password when authorizing a client.

GetTGAPI handles the developer portal flow and does not require that password. Support needs no verification codes. If you encounter an unexpected request, stop and describe the page wording without sharing secrets.

What can you build with application credentials?

Possible projects include clients, messaging workflows, chat backups, channel administration and support tools. Authorization and permissions differ by task. Choose a route in the api_id and api_hash use-case overview. For an ordinary bot, read the integration comparison before configuring credentials.

Choose your next step

  • Need ID and Hash: use the official portal guide or our assistance service.
  • Applied before but lost your copy: retrieve the existing app.
  • Need a Bot Token: use official BotFather.
  • Asked for a session file or login password: that is the tool's own account authorization process, not the API credentials we deliver.