> ## 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 [Iru Endpoint Management documentation](https://api-docs.iru.com/#740d515c-218d-48db-b452-959c3c73aaeb).

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Iru Endpoint Management documentation](https://api-docs.iru.com/#740d515c-218d-48db-b452-959c3c73aaeb).

## Parameters

| Parameter | Description |
| - | - |
| Device ID | The device's ID. |

## 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 Iru Endpoint Management and Send Results Via Email](https://library.blinkops.com/workflows/get-device-commands-with-iru-endpoint-management-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/get-device-commands-with-iru-endpoint-management-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/get-device-commands-with-iru-endpoint-management-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.