# 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://{server-hostname}:8383/dcapi/som/agents/totp` ## Scope `SOM.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/uninstallOtpDetails.v1+json` ## Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/som/agents/totp \ --header 'Accept: application/uninstallOtpDetails.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` - `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" } ``` ![ ](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.