> ## Documentation Index
> Fetch the complete documentation index at: https://developer.vetcove.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List all client groups

> This endpoint is available to Group API Keys only.

Returns a list of all client groups in the organization. The client groups are sorted by creation date, with the most recent appearing first.

A **client group** is a named grouping of clinic clients (pet parents) within an organization. Clinics use client groups to decide who is eligible for promotions and pricing, to mark tax-exempt clients, and to filter and report on clients. A clinic client can belong to any number of client groups, and a client group can contain clients from any clinic in the organization.



## OpenAPI

````yaml get /ext/v2/client-groups/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/client-groups/:
    get:
      tags:
        - Clients And Patients
      summary: List all client groups
      description: >-
        This endpoint is available to Group API Keys only.


        Returns a list of all client groups in the organization. The client
        groups are sorted by creation date, with the most recent appearing
        first.


        A **client group** is a named grouping of clinic clients (pet parents)
        within an organization. Clinics use client groups to decide who is
        eligible for promotions and pricing, to mark tax-exempt clients, and to
        filter and report on clients. A clinic client can belong to any number
        of client groups, and a client group can contain clients from any clinic
        in the organization.
      operationId: client_groups_list
      parameters:
        - description: When provided, filters to objects with these IDs.
          in: query
          name: ids
          required: false
          schema:
            anyOf:
              - items:
                  type: integer
                type: array
              - type: 'null'
            description: When provided, filters to objects with these IDs.
            title: Ids
        - description: >-
            A cursor used for pagination. Fetches the page of results ending
            immediately before the object with the given ID. Cannot be used at
            the same time as `starting_after`.
          in: query
          name: ending_before
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              A cursor used for pagination. Fetches the page of results ending
              immediately before the object with the given ID. Cannot be used at
              the same time as `starting_after`.
            title: Ending Before
        - description: >-
            A cursor used for pagination. Fetches the page of results starting
            immediately after the given ID. Cannot be used at the same time as
            `ending_before`.
          in: query
          name: starting_after
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: >-
              A cursor used for pagination. Fetches the page of results starting
              immediately after the given ID. Cannot be used at the same time as
              `ending_before`.
            title: Starting After
        - description: The maximum number of items to return per page.
          in: query
          name: limit
          required: false
          schema:
            default: 10
            description: The maximum number of items to return per page.
            maximum: 100
            minimum: 1
            title: Limit
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientGroupList'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ClientGroupList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ExternalClientGroupSchema'
          title: Data
          type: array
        has_more:
          default: false
          description: Whether there are more pages or data in this list.
          title: Has More
          type: boolean
        next_page:
          description: A URL linking to the next page of this list.
          title: Next Page
          type: string
        type:
          default: list
          description: Type of this object. Always `list`.
          title: Type
          type: string
      required:
        - data
        - next_page
      title: ClientGroupList
      type: object
    ExternalClientGroupSchema:
      description: A named grouping of clinic clients within an organization.
      properties:
        description:
          description: The clinic-facing description of the client group.
          title: Description
          type: string
        id:
          description: The unique identifier for the client group.
          title: Id
          type: integer
        kind:
          anyOf:
            - $ref: '#/components/schemas/ClientGroupKind'
            - const: ''
              type: string
          description: The kind of client group.
          title: Kind
        name:
          description: The clinic-facing name of the client group.
          title: Name
          type: string
      required:
        - id
        - name
        - description
        - kind
      title: ClientGroup
      type: object
    ClientGroupKind:
      enum:
        - GENERAL
        - EMPLOYEES
        - WELLNESS_PROGRAM
      title: ClientGroupKind
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````