---
title: "Fetch a list of Device groups"
method: GET
path: "/device_groups"
---

# Fetch a list of Device groups

`GET /device_groups`

## Query parameters

- `cursor` string
- `per_page` integer
- `search` string

## Response `200`

A paged array of Device groups

- object
  - `page` integer — current page of data, as specified by the 'page' request parameter. This page number is 0-indexed.
  - `last_page` integer — the final page number for the dataset. This is zero-indexed, so that a dataset with a record count less than or equal to the page size will be 0.
  - `data` DeviceGroup[] — Details about the Device groups
    - `id` string — The canonical identifier for this device group
    - `name` string — The human-readable reference name
    - `slack_channel` string — The ID of the slack channel this group is linke do
    - `created_at` string, date-time — when the device group was created
    - `archived` boolean — Whether or not this device has been archived. When a device group is archived, all devices that were assigned to them are unassigned.

## Other responses

- `403` — An 'unauthorized' response may occur for features restricted by or unavailable to your organization

---

[API](https://skmtc.net/kolide/apis/k2-api.md) · [All operations](https://skmtc.net/kolide/apis/k2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kolide/k2-api/versions/7013d788398e/schema)
