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

# Device Extensive Search

This API returns device details, summarized product compliance details, smart groups, and custom attributes for enrolled devices. For unenrolled devices, only the device details are returned in the response.

## Parameters

<div className="integrations-table">
  | Parameter                | Description                                                                                                                                                             |
  | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Custom Attributes        | Custom attribute names.                                                                                                                                                 |
  | Device ID                | The ID of the device to search. Can be obtained via the `Devices Search` action.                                                                                        |
  | End Date Time            | Filters devices such that devices with last seen till this date will be returned.                                                                                       |
  | Enrollment Status        | Filters devices based on their EnrollmentStatus \[Enrolled, EnterpriseWipePending, DeviceWipePending, Unenrolled].                                                      |
  | Mac Address              | MAC address.                                                                                                                                                            |
  | Organization Group ID    | OrganizationGroup to be searched, admin's OG is considered if not sent.                                                                                                 |
  | Page                     | Specific page number to get. 0 based index.                                                                                                                             |
  | Page Size                | Maximum records per page. Default 500.                                                                                                                                  |
  | Platform                 | Device platform.                                                                                                                                                        |
  | Start Date Time          | Filters devices such that devices with last seen after this date will be returned.                                                                                      |
  | Status Change End Time   | Filters the devices for which EnrollmentStatus has changes till enrollmentstatuschangeto datetime. This filter is only for Enrolled and Unenrolled enrollment status.   |
  | Status Change Start Time | Filters the devices for which EnrollmentStatus has changes from enrollmentstatuschangefrom datetime. This filter is only for Enrolled and Unenrolled enrollment status. |
</div>

## Example Output

```json theme={"dark"}
{
	"Devices": [
		{
			"AssetNumber": "Text value",
			"Compliant": true,
			"CustomAttributes": [
				{
					"ApplicationGroup": "services",
					"Name": "Device Model",
					"Value": "Latitude E7250"
				}
			],
			"DeviceFriendlyName": "Text value",
			"DeviceId": 1,
			"DeviceNetworkInfo": [
				{
					"ConnectionType": "Text value",
					"IPAddress": "Text value",
					"MACAddress": "Text value",
					"Name": "Text value",
					"Vendor": "Text value"
				}
			],
			"DeviceUuid": "26161ef7-550d-43da-bd83-ac458f6547bc",
			"EnrollmentDate": "2022-06-03T03:01:27.1955206+01:00",
			"EnrollmentStatus": "Text value",
			"LastSeen": "2022-06-03T03:01:27.1955206+01:00",
			"OrganizationGroupId": 6,
			"OrganizationGroupUuid": "f0b78e5e-16d6-42d6-8a63-66f9c812a1af",
			"Products": [
				{
					"Name": "Text value",
					"ProductId": 1,
					"Status": "Text value"
				}
			],
			"SerialNumber": "Text value",
			"SmartGroups": [
				{
					"Name": "Text value",
					"SmartGroupId": 1,
					"SmartGroupUuid": "8c2397ab-c62f-45e6-9161-2fa4cbf6a5fd"
				}
			],
			"Udid": "Text value",
			"UnEnrolledDate": "2022-06-03T03:01:27.2111437+01:00",
			"UserName": "Text value"
		}
	],
	"Page": 1,
	"PageSize": 2,
	"Total": 3
}
```

## Workflow Library Example

[Delete Inactive Devices with Workspace One Uem](https://library.blinkops.com/workflows/delete-inactive-devices-with-workspace-one-uem)

<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/delete-inactive-devices-with-workspace-one-uem/canvas" />
</div>
