# Retrieve current TOTP for agent uninstallation Retrieves the current Time-based One-Time Password (TOTP) for agent uninstallation authorization. Used by agents to validate uninstall requests. ## Endpoint [GET /dcapi/som/agents/totp](https://www.manageengine.com/products/desktop-central/help/api/cloud/computers-get-agent-uninstall-totp.html) ## Request URL `https://{serverurl}/dcapi/som/agents/totp` `{serverurl}`: [OAuth authentication endpoint domain](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html) ## Scope `DesktopCentralCloud.SOM.READ` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept**: string — **Mandatory** - `application/uninstallOtpDetails.v1+json` ## Sample Request ```curl curl --request GET \ --url https://appdomains/dcapi/som/agents/totp \ --header 'Accept: application/uninstallOtpDetails.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` - JSON Object - **otp**: string - The current TOTP value for agent uninstallation authorization - **duration**: long - Validity duration of the OTP in milliseconds ## Possible Response Codes - **200**: HTTP code ## Sample Response: HTTP 200 Current TOTP value ```json { "duration": 1776340800000, "otp": "482951" } ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.