> ## 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.

# List Hardware Tokens

Retrieve a list of OTP hardware tokens.

To fetch all results, run repeatedly with the `Offset` parameter as long as the result metadata has a `next_offset` value.

If no `Type` and `Serial` parameters are provided, the list will contain all hardware tokens.

Otherwise, the list will contain either a single hardware token (if a match was found) or no hardware tokens.

**Note**: This action requires the `Grant resource - Read` API permission.

<Note>
  External Documentation

  To learn more, visit the [Duo documentation](https://duo.com/docs/adminapi#retrieve-hardware-tokens).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter     | Description                                                                                                                                                                                                                                   |
  | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Serial Number | The serial number of the hardware token.                                                                                                                                                                                                      |
  | Type          | Specify a type and serial number to look up a single hardware token. One of:<br /><br /> - `h6` - HOTP-6 hardware token<br /> - `h8` - HOTP-8 hardware token<br /> - `yk` - YubiKey AES hardware token<br /> - `d1` - Duo-D100 hardware token |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                        |
  | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Limit     | The maximum number of phones to retrieve. Defaults to `100` with a maximum of `500`.                                                                                                                               |
  | Offset    | The offset from 0 at which to start record retrieval.<br /><br />When used with `Limit`, the handler will return `limit` records starting at the n-th record, where `n` is the offset.<br /><br />Defaults to `0`. |
</div>

## Example Output

```json theme={"dark"}
{
	"stat": "OK",
	"response": [
		{
			"admins": [
				{
					"admin_id": "DESMP00LIAKRJPD4DZSH",
					"created": 1648143942,
					"email": "jsmith@example.com",
					"last_login": 1343921403,
					"name": "Joe Smith"
				}
			],
			"serial": "123456",
			"token_id": "DHIZ34ALBA2445ND4AI2",
			"totp_step": null,
			"type": "d1",
			"users": [
				{
					"alias1": "joe.smith",
					"alias2": "jsmith@example.com",
					"alias3": null,
					"alias4": null,
					"aliases": {
						"alias1": "joe.smith",
						"alias2": "jsmith@example.com"
					},
					"created": 1343621411,
					"email": "jsmith@example.com",
					"is_enrolled": true,
					"last_directory_sync": null,
					"last_login": 1343921403,
					"notes": "",
					"realname": "Joe Smith",
					"status": "active",
					"user_id": "DUJZ2U4L80HT45MQ4EOQ",
					"username": "jsmith"
				}
			]
		}
	]
}
```

## Workflow Library Example

[List Hardware Tokens with Duo and Send Results Via Email](https://library.blinkops.com/workflows/list-hardware-tokens-with-duo-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/list-hardware-tokens-with-duo-and-send-results-via-email/canvas" />
</div>
