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

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\"}"}'
📢
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Contact Us

Use Cases

Related operations

Guides

View Subscription Plans →