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

# Get Clients Assigned to Agent

> Retrieves all clients associated with a specific assistant/agent, including their subscription and product details.

## Authentication
All requests require an `Authorization` header using Bearer token authentication:
`Authorization: Bearer <api_key>`



## OpenAPI

````yaml GET /api/v2/agents/{agent_id}/clients
openapi: 3.1.0
info:
  title: VoiceAIWrapper API
  description: >-
    REST API for managing campaigns, leads, clients, web widgets, and voice
    providers on VoiceAIWrapper.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.voiceaiwrapper.app
security:
  - bearerAuth: []
paths:
  /api/v2/agents/{agent_id}/clients:
    get:
      tags:
        - Agents
      summary: Get Clients Assigned to Agent
      description: >-
        Retrieves all clients associated with a specific assistant/agent,
        including their subscription and product details.


        ## Authentication

        All requests require an `Authorization` header using Bearer token
        authentication:

        `Authorization: Bearer <api_key>`
      operationId: getClientsFromAssistant
      parameters:
        - name: agent_id
          in: path
          required: true
          description: Provider-native assistant/agent ID (not a global ID). Required.
          schema:
            type: string
            example: asst_abc123
      responses:
        '200':
          description: >-
            Clients retrieved successfully. Returns a list of client objects
            with subscription details. Returns an empty array if no clients are
            assigned.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  message:
                    type: string
                    example: Clients retrieved successfully
                  data:
                    type: object
                    properties:
                      assistant_id:
                        type: string
                      clients:
                        type: array
                        items:
                          type: object
                          properties:
                            client_id:
                              type: string
                            client_name:
                              type: string
                            asset_group_id:
                              type: string
                              nullable: true
                            subscription:
                              type: object
                              nullable: true
        '400':
          description: Invalid request data. The agent_id path parameter is missing.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
              example:
                message: 'Assistant ID is missing: assistant_id (URL path parameter)'
        '401':
          description: Authentication failed. Ensure the Bearer token is present and valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '500':
          description: Internal server error. Contact support if this persists.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
components:
  schemas:
    ErrorMessage:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````