Disconnect / Log Out a Session
View All Telegram Messaging API APIs →Disconnect a session. By default it only drops the live connection while keeping the stored login, so the account can be restored later. Pass logout=true to also log out of Telegram remotely and delete the stored login — after which the account must log in again with a code or QR scan.
API Features
Graceful disconnect Drops the connection but preserves the login for a later restore
Full logout option logout=true logs out of Telegram remotely and wipes the stored login
Lifecycle control Programmatically retire sessions you no longer need
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 →
DELETE
/api/project/telegram-messaging/disconnect-session API Response (JSON)
{} Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Deprovision a customer's linked account on churn
- Rotate logins by logging out and re-linking
- Clean up idle sessions in a multi-tenant deployment