> ## 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 Device Commands

Get information about the commands sent to a given device ID.

For more information on the available device status codes, visit [Kandji's documentation](https://api-docs.kandji.io/#740d515c-218d-48db-b452-959c3c73aaeb).

<Note>
  External Documentation

  To learn more, visit the [Kandji documentation](https://api-docs.kandji.io/#740d515c-218d-48db-b452-959c3c73aaeb).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description      |
  | --------- | ---------------- |
  | Device ID | The device's ID. |
</div>

## Example Output

```json theme={"dark"}
{
	"commands": {
		"count": 0,
		"next": "string",
		"previous": "string",
		"results": [
			{
				"attempts": 0,
				"command_type": "string",
				"date_completed": "string",
				"date_requested": "string",
				"error_chain": [
					{
						"code": 12021,
						"domain": "MCMDMErrorDomain",
						"localized_description": "“ActivationLockBypassCode” is not a valid request type.",
						"us_english_description": "“ActivationLockBypassCode” is not a valid request type."
					}
				],
				"last_pushed": "string",
				"metadata": {},
				"priority": 0,
				"request_requires_network_tether": false,
				"request_type": "string",
				"status": 0,
				"user": {
					"first_name": "Apple",
					"last_name": "TESTTTTTT"
				},
				"uuid": "string"
			}
		]
	},
	"device_id": "string"
}
```

## Workflow Library Example

[Get Device Commands with Kandji and Send Results Via Email](https://library.blinkops.com/workflows/get-device-commands-with-kandji-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-device-commands-with-kandji-and-send-results-via-email/canvas" />
</div>
