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

# List Agents

> List the agents in your workspace on the v1 API.

<span data-api-safety-label="read-only"><Badge color="gray" size="sm" shape="pill">Read only</Badge></span>

<Info>
  **Recommended.** This endpoint is part of the public `/v1` API reference and is the supported path for new integrations. See the [migration guide](/docs/api-reference/v1/migrating-to-v1) for versioning guidance.
</Info>

Return the agents that belong to the authenticated organization. Use this to populate a picker in your own UI or to find an agent's `id` before fetching or updating it.

## When to use this

* **Agent pickers**: populate a dropdown of available agents in your own tooling.
* **ID lookup**: find an agent's `id` by title before calling [Get Agent Details](/docs/api-reference/v1/agents/get) or [Update Agent](/docs/api-reference/v1/agents/update).
* **Inventory checks**: audit which agents exist in a workspace, for example before cleaning up unused ones with [Delete Agent](/docs/api-reference/v1/agents/delete).

The response wraps the records in an `agents` array without pagination metadata; the full list is returned in one response. See [Pagination](/docs/api-reference/pagination) for how each list endpoint shapes its response.


## OpenAPI

````yaml GET /v1/agents
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /v1/agents:
    get:
      tags:
        - Agents V1
        - V1
      summary: List Agents
      description: >-
        Returns all agents for your organization. Agent functions are NOT
        included in list responses - fetch a specific agent by ID to get its
        functions.
      operationId: AgentsV1Controller_findAll
      parameters: []
      responses:
        '200':
          description: Agents returned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  agents:
                    type: array
                    items:
                      $ref: '#/components/schemas/Agents'
              examples:
                success:
                  summary: Successful response
                  value:
                    agents:
                      - id: agent_2g7Xy3tY53gRlp
                        folder_id: null
                        current_version_number: 1
                        timezone: Asia/Kolkata
                        agent_type: Single_Prompt_Agent
                        pipeline_type: Cascaded
                        webhook_id: null
                        current_version:
                          agent_id: agent_2g7Xy3tY53gRlp
                          version_number: 1
                          version_title: Version 1
                          title: Customer Support Agent
                          is_published: false
                          language_id: lang_en_in
                          voice_id: voice_abc123
                          llm_id: llm_A1B2C3D4E5F6G7
                          transcriber_id: trs_deepgram_nova_2
                          fallback_stt_enabled: true
                          stt_fallback_transcriber_id: trs_soniox
                          post_call_analysis_llm_id: llm_A1B2C3D4E5F6G7
                        versions:
                          - agent_id: agent_2g7Xy3tY53gRlp
                            version_number: 1
                            version_title: Version 1
                            title: Customer Support Agent
                            is_published: false
                            language_id: lang_en_in
                            voice_id: voice_abc123
                            llm_id: llm_A1B2C3D4E5F6G7
                            transcriber_id: trs_deepgram_nova_2
                            fallback_stt_enabled: true
                            stt_fallback_transcriber_id: trs_soniox
                            post_call_analysis_llm_id: llm_A1B2C3D4E5F6G7
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 400 Bad Request
                  value:
                    statusCode: 400
                    message: Invalid query parameters
                    error: Bad Request
        '401':
          description: Unauthorized - missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    statusCode: 401
                    message: API key is missing or invalid
                    error: Unauthorized
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 403 Forbidden
                  value:
                    statusCode: 403
                    message: You do not have permission to access this resource
                    error: Forbidden
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    statusCode: 500
                    message: Internal server error
                    error: Internal Server Error
      security:
        - bearer: []
components:
  schemas:
    Agents:
      type: object
      properties:
        id:
          type: string
          example: agent_2g7Xy3tY53gRlp
          description: Signed agent ID
        folder_id:
          type: string
          nullable: true
        current_version_number:
          type: integer
          nullable: true
        timezone:
          type: string
          nullable: true
        agent_type:
          type: string
          enum:
            - Single_Prompt_Agent
            - Conversational_Flow_Agent
        pipeline_type:
          type: string
          enum:
            - Cascaded
            - Speech_To_Speech
          nullable: true
        webhook_id:
          type: string
          nullable: true
        current_version:
          type: object
          properties:
            agent_id:
              type: string
            version_number:
              type: integer
            version_title:
              type: string
              nullable: true
            title:
              type: string
              nullable: true
            is_published:
              type: boolean
            language_id:
              type: string
              nullable: true
            voice_id:
              type: string
              nullable: true
            llm_id:
              type: string
              nullable: true
            transcriber_id:
              type: string
              nullable: true
            fallback_stt_enabled:
              type: boolean
            stt_fallback_transcriber_id:
              type: string
              nullable: true
            post_call_analysis_llm_id:
              type: string
              nullable: true
          nullable: true
        versions:
          type: array
          items:
            type: object
            properties:
              agent_id:
                type: string
              version_number:
                type: integer
              version_title:
                type: string
                nullable: true
              title:
                type: string
                nullable: true
              is_published:
                type: boolean
              language_id:
                type: string
                nullable: true
              voice_id:
                type: string
                nullable: true
              llm_id:
                type: string
                nullable: true
              transcriber_id:
                type: string
                nullable: true
              fallback_stt_enabled:
                type: boolean
              stt_fallback_transcriber_id:
                type: string
                nullable: true
              post_call_analysis_llm_id:
                type: string
                nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - agent_type
    ErrorResponse:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: phone_number must be a valid E.164 phone number
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````