> ## 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 clients in a client group

> This endpoint is available to Group API Keys only.

Returns a list of the clinic clients that belong to a client group. The clients are ordered by creation date, with the most recent appearing first. Fetch the clinic client for full contact details.

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/{client_group_id}/clients/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/client-groups/{client_group_id}/clients/:
    get:
      tags:
        - Clients And Patients
      summary: List all clients in a client group
      description: >-
        This endpoint is available to Group API Keys only.


        Returns a list of the clinic clients that belong to a client group. The
        clients are ordered by creation date, with the most recent appearing
        first. Fetch the clinic client for full contact details.


        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_group_clients_list
      parameters:
        - description: The ID of the client group.
          in: path
          name: client_group_id
          required: true
          schema:
            description: The ID of the client group.
            title: Client Group Id
            type: integer
        - 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
        - description: Filters to members who are clients of the clinic with this ID.
          in: query
          name: clinic_id
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Filters to members who are clients of the clinic with this ID.
            title: Clinic Id
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientGroupMemberList'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ClientGroupMemberList:
      properties:
        data:
          description: A single page of data contained within this list.
          items:
            $ref: '#/components/schemas/ExternalClientGroupMemberSchema'
          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: ClientGroupMemberList
      type: object
    ExternalClientGroupMemberSchema:
      description: A clinic client that belongs to a client group.
      properties:
        clinic_id:
          description: The ID of the clinic this client belongs to.
          title: Clinic Id
          type: integer
        id:
          description: The ID of the clinic client.
          title: Id
          type: integer
        organization_client_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: The organization client ID corresponding to this clinic client.
          title: Organization Client Id
      required:
        - id
        - clinic_id
        - organization_client_id
      title: ClientGroupMember
      type: object
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````