> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get OTP Usage

Returns the OTP usage of an agent.

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                       |
  | --------- | ----------------------------------------------------------------- |
  | Agent ID  | The ID of the agent. Can be obtained by the `List Agents` action. |
</div>

## Example Output

```json theme={"dark"}
{
	"duration": "15",
	"user": "REST API",
	"hostname": "DESKTOP-G3GJO5S",
	"ip": "1.2.3.4",
	"status": "3",
	"purpose": "testing",
	"otpcode": "63994046",
	"otpid": "1674571510",
	"granted": "2019-10-18 02:39:23.195 +0000 UTC"
}
```

## Workflow Library Example

[Get Otp Usage with Airlock Digital and Send Results Via Email](https://library.blinkops.com/workflows/get-otp-usage-with-airlock-digital-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-otp-usage-with-airlock-digital-and-send-results-via-email/canvas" />
</div>
