Retrieve current TOTP for agent uninstallation

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Retrieves the current Time-based One-Time Password (TOTP) for agent uninstallation authorization. Used by agents to validate uninstall requests.

Endpoints

Request URL

https://{serverurl}/dcapi/som/agents/totp

Scope

DesktopCentralCloud.SOM.READCopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/uninstallOtpDetails.v1+jsonapplication/uninstallOtpDetails.v1+jsonCopied!

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
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
Hide Sub-Attributes
otpstring

The current TOTP value for agent uninstallation authorization

durationlong

Validity duration of the OTP in milliseconds

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Current TOTP value

Copied!
  {
    "duration": 1776340800000,
    "otp": "482951"
  }
                
Show full

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.