# 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` ## Request URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/som/agents/totp` ## 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 ### Sample Response: HTTP 200 Current TOTP value ```json { "duration": 1776340800000, "otp": "482951" } ``` ## Rate Limits **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.