
API Credentials for Telegraph
Guide to obtaining tokens, keys, and connections.
To use the Telegraph API you need a single piece of information: the "access_token" that identifies your account. You obtain this token by making a request to the account creation endpoint, which returns a JSON containing your key. Below is a step-by-step guide on how to get it.
Access Token
-
1
Open your web browser (Chrome, Firefox, Safari, etc.).
-
2
Customize the URL by replacing the values of short_name and author_name with your own, for example: https://api.telegra.ph/createAccount?short_name=MyBot&author_name=Myself
-
3
Copy the customized URL and paste it into the browser’s address bar. Press Enter.
-
4
The browser will display a JSON response. Inside the "result" object, locate the "access_token" property.
-
5
Select and copy the value of "access_token". This is your access token to authenticate requests to the Telegraph API.