---
title: "List contact groups"
method: GET
path: "/v1/contact-groups"
tags: ["Contact Groups"]
---

# List contact groups

`GET /v1/contact-groups`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/contact-groups`
- Auth: API key in header `x-api-key`

Returns the organization's contact groups, newest first, filterable by type and active state. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.

## Query parameters

- `limit` string, nullable
- `cursor` string
- `type` union
  - 'static' | 'dynamic' | 'smart'
  - string[]
- `isActive` string, nullable

## Response `200`

ContactGroupPage

- ContactGroupPage
  - `items` object[], required
    - `id` string, required
    - `organizationId` string, required
    - `name` string, required
    - `description` string, nullable, required
    - `type` 'static' | 'dynamic' | 'smart', required
    - `criteria` object, nullable, required
    - `color` 'clay' | 'sand' | 'moss' | 'sky' | 'plum' | 'rose', nullable, required: The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces.
    - `icon` string, nullable, required
    - `parentGroupId` string, required
    - `contactCount` integer, required
    - `lastCalculatedAt` string, nullable, required
    - `isActive` boolean, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `nextCursor` string, nullable, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

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