---
title: "Telegram provider check auth"
method: POST
path: "/sdk/{environmentId}/checkTelegramAuth"
tags: ["SDK"]
---

# Telegram provider check auth

`POST /sdk/{environmentId}/checkTelegramAuth`

## Path parameters

- `environmentId` string, required

## Request body

- OauthResultRequest
  - `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
  - `sessionPublicKey` string
  - `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 `204`

The user is recognized

## Other responses

- `403` — Forbidden
- `404` — Not found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/revisions/aac826315d90/schema)
