---
title: "Return all devices grouped by organization"
method: GET
path: "/devices/grouped"
tags: ["Devices"]
---

# Return all devices grouped by organization

`GET /devices/grouped`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/devices/grouped`
- Auth: HTTP bearer

## Query parameters

- `organization_id` string
- `exclusive_start_key` string
- `policyId` string
- `add_cves` string
- `use_decisions` string
- `from_date` string, date-time
- `to_date` string, date-time

## Response `200`

Returns all devices grouped by organization

- GroupedDevice
  - `shadows` object, required
  - `last_evaluated_key` string, required

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
