Getting started

How to get a Telegram API ID and API Hash: step-by-step guide

Get your own Telegram api_id and api_hash: verify your account, open API development tools, submit app details and save the result. Includes ERROR and code checks.

GetTGAPI editorial teamUpdated
Documentation notesReviewed

Based on official sources and independently maintained by GetTGAPI. Documentation and glossary →

On this page
  1. Is an apiid application the same as a Telegram API application?
  2. Before you start
  3. Do I need to buy a developer account or a temporary number?
  4. Start at the official portal
  5. Fill in application details
  6. Check the result before repeating a step
  7. Save the result
  8. Apply through GetTGAPI
  9. Follow the GetTGAPI video workflow
  10. Official reference and further development

Quick answer: Open my.telegram.org, verify an existing account you control, choose API development tools, and create or view its application. Save both api_id and api_hash. The official API is free; this is separate from optional GetTGAPI application assistance.

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

Is an apiid application the same as a Telegram API application?

In this context, apiid, api_id and API ID commonly mean the same field, while api_hash may be written as apihash. “TG appid” searches may refer to these credentials too. Confirm that you need the pair rather than a bot token or a new Telegram account.

Find the correct website in the developer portal entrance guide. If you previously applied and lost the result, retrieve the existing ID and Hash.

Before you start

This guide is for obtaining API ID and API Hash for your application. If you need a bot token, read how these credentials differ.

Prepare a registered Telegram account you own or are explicitly authorized to operate. Make sure you can read messages in an already signed-in Telegram client. Do not use someone else's shared API credentials as your application's long-term configuration.

Do I need to buy a developer account or a temporary number?

No separate “developer account” purchase is needed. Use an existing Telegram account you control, and retrieve its application details first if an app already exists. Telegram asks developers to keep the associated number up to date so they can receive important notifications. Official account and api_id requirements

For ongoing development, prefer an account and number you can continue to control. Temporary SMS numbers, shared numbers and pre-made accounts bought from someone else can leave uncertainty about number reassignment, recovery access or previous sessions. Receiving one code does not establish lasting control. Neither the number type nor the age of an account guarantees that an application will succeed.

GetTGAPI does not sell accounts or shared API credentials. Confirm that you can access your account before choosing self-service or application assistance.

Start at the official portal

  1. Open my.telegram.org and check the spelling of the domain.
  2. Enter the number, including its country code, for the account you intend to use.
  3. Read this portal request's verification message in Telegram and enter the code.
  4. Open API development tools and check for an existing application.

If API ID and API Hash are already visible, save them rather than creating again. Telegram currently documents one api_id per phone number. Official application instructions

Official portal sign-in screen explaining delivery of the confirmation code through Telegram

Public, empty form captured on October 14, 2026; no phone number was submitted. Rechecked the public sign-in instructions on November 2, 2026. This is portal verification, not a client-registration SMS request.

Fill in application details

If there is no app yet, complete the current form with an app title, short name, platform and intended use. Names should describe your actual application; follow the displayed short-name requirements.

Never include phone numbers, verification codes or private chats in these fields. Correct the indicated field when a format error appears instead of submitting identical details repeatedly.

The official form can change. After submitting, check whether credentials were created. If the page times out, reopen the application page to verify the outcome before submitting again.

Check the result before repeating a step

Where you stopped Next action
No portal code arrived Check the matching account, then follow the code delivery checklist
The code is expired or rejected Use the current request and new-code instructions
Create application shows ERROR Use the stage-based checks before changing several fields
Submission timed out Read the app details before creating again
ID is visible, Hash is dots Inspect the masked value; dots are not the credential

When present, App api_id is the numeric identifier and App api_hash is its matching credential. An access code, verification code or “submitted” message is not this result. Read both fields from the same application.

Save the result

Store API ID and API Hash separately somewhere safe under your control. Keep every Hash character and avoid extra spaces or line breaks. Do not share screenshots of complete credentials in groups or support chats.

Configuring and authorizing your client is a separate next step. Obtaining API credentials does not itself give a third-party application access to your account.

Apply through GetTGAPI

Choose a payment method at the application entry to obtain an access code for the purchased number of applications. Alipay and WeChat Pay require human payment checks and code delivery; Gram and USDT deliver the code automatically after payment is confirmed. If you already have an access code, enter it directly. See Pricing for current fees, minimum quantities and refund information.

Payment is not the same as a completed API application. After entering the access code, enter your number and complete portal verification on the website. A successful result containing your application's API ID and API Hash consumes one use. Support handles questions and manual payment checks; do not send portal codes, two-step verification passwords or API Hash to the support chat.

GetTGAPI does not add a Telegram client device session. Once the result is available, save the complete credentials before confirming deletion of the temporary result.

Follow the GetTGAPI video workflow

The application video and written steps, with English subtitles, show access-code entry, account verification and saving the result. The default app details usually need no changes. Use the payment options and recovery controls shown on the current page.

Keep the original record while it is processing. If Continue application is available, use it to check the original result and continue from the current state. Request a new portal code only when the current one has expired or the page requires it; waiting alone is not a reason to create another application. If you need help, tell support the exact error and stage, without secret values. If the application is unsuccessful, contact support for a refund.

Official reference and further development

Choose your next project in the Telegram API use-case overview, covering clients, auto replies, backups and support. Ordinary bots and user clients need different credentials, so this directory also helps confirm your requirements before applying.

This practical workflow is checked against Obtaining api_id. After obtaining credentials, use the Telegram developer-documentation hub for TDLib, authorization and error handling. Application credentials do not replace a user session.