Submit 2FA Password
View all Telegram Messaging API endpoints →Submit the Telegram two-factor (cloud) password. Only valid while the session shows twoFactorRequired=true (phone mode after Verify OTP, or QR mode after scanning). Send a JSON body with password. The call is accepted asynchronously — poll Get Session Status until it reads CONNECTED.
API Features
Cloud password step Completes login for accounts protected by two-factor authentication
Works in both modes Applies after phone-mode OTP or after a QR scan
Async acceptance Returns immediately; poll the session for the CONNECTED result
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
POST
/api/project/telegram-messaging/submit-password API Response (JSON)
{} curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/submit-password?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"password\":\"my-cloud-password\"}"}'
curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/submit-password?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"password\":\"my-cloud-password\"}"}' Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Finish login for 2FA-protected accounts in an onboarding flow
- Unlock a QR login that prompted for the cloud password after scanning