Skip to main content
POST
/
sdk
/
{environmentId}
/
checkTelegramAuth
Telegram provider check auth
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/checkTelegramAuth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "state": "<string>",
  "telegramAuthToken": "<string>",
  "forceCreateUser": true,
  "code": "An example name",
  "sessionPublicKey": "An example name",
  "captchaToken": "<string>"
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "payload": {
    "walletPublicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
    "email": "[email protected]"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json

Telegram Check Auth

state
string

Temporary auth state for oauth2 access

telegramAuthToken
string

JWT Auth Token coming from Telegram Bot containing user information

forceCreateUser
boolean

Force create a user for Telegram Auto Login

code
string
Example:

"An example name"

sessionPublicKey
string
Example:

"An example name"

captchaToken
string

When provided, used to verify that a captcha is valid and get the success/failure result from the captcha provider server-side.

Response

The user is recognized