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

# List folder agents

> Lists agents assigned to a folder.



## OpenAPI

````yaml /api-reference/openapi.json post /folder/{folder_id}/agents
openapi: 3.1.0
info:
  title: SuperU API
  description: >-
    Comprehensive API reference for SuperU voice agents, calls, tools, contacts,
    audiences, and knowledge bases.
  version: 1.0.0
servers:
  - url: https://voip-middlware.superu.ai
    description: Production
security:
  - superUApiKey: []
tags:
  - name: Calls
    description: Create and analyze calls.
  - name: Agents
    description: Create, list, import, update, and delete agents.
  - name: Agent Versions
    description: Manage versions for existing agents.
  - name: Phone Numbers
    description: Fetch phone numbers available in your account.
  - name: Call Logs
    description: Retrieve call history with filters.
  - name: Tools
    description: Create and manage callable tools.
  - name: Folders
    description: Organize agents into folders.
  - name: Contacts
    description: Create and list contacts.
  - name: Audiences
    description: Create and manage audiences and contacts.
  - name: Knowledge Base
    description: Upload and manage knowledge bases.
  - name: Campaigns
    description: Create and manage outbound campaigns with automated workflows.
paths:
  /folder/{folder_id}/agents:
    post:
      tags:
        - Folders
      summary: List folder agents
      description: Lists agents assigned to a folder.
      operationId: listFolderAgents
      parameters:
        - name: folder_id
          in: path
          description: Folder ID
          required: true
          schema:
            type: string
            default: a3740204-726f-4547-b0f8-8831a5147207
            example: a3740204-726f-4547-b0f8-8831a5147207
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FolderAgentsRequest'
            example:
              page: 1
              per_page: 20
        description: Request body for List folder agents.
      responses:
        '200':
          description: Folder agents returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResponse'
              example:
                success: true
                agents:
                  - _id: 69c228835c764b0c5ef71944
                    user_id: user_32UrXxvrVxWSYp1dGLsPdElDtRu
                    name: Acme Dental Clinic - AI Receptionist
                    company_name: ''
                    vapi_assistant_id: 04cf74f7-019b-4c3d-883c-610a42b32bc4
                    voice_id: EXAVITQu4vr4xnSDxMaL
                    speed: '1'
                    bg_noice: 'false'
                    status: active
                    created_at:
                      $date: '2026-03-24T06:00:35.877Z'
                    first_message: >-
                      Thank you for calling Acme Dental Clinic! This is Emma.
                      How can I help you today?
                    industry_id: Healthcare
                    usecase_id: Inbound Receptionist
                    type: inbound
                    first_message_url: >-
                      https://static.pathora.in/plivo/EXAVITQu4vr4xnSDxMaL_3348c28e-a2a7-4e3f-8282-5feff0264674.mp3
                    call_forwarding: null
                    knowledge_base: null
                    composio_app: {}
                pagination:
                  total: 1
                  page: 1
                  per_page: 20
                  total_pages: 1
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '501':
          $ref: '#/components/responses/NotImplemented'
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request POST \\
              --url https://voip-middlware.superu.ai/folder/a3740204-726f-4547-b0f8-8831a5147207/agents \\
              --header 'superU-Api-Key: YOUR_SUPERU_API_KEY' \\
              --data '{
              "page": 1,
              "per_page": 20
            }'
        - lang: python
          label: Python
          source: |-
            from superu import SuperU

            client = SuperU("YOUR_SUPERU_API_KEY")

            payload = {
                "folder_id": "a3740204-726f-4547-b0f8-8831a5147207",
                "page": 1,
                "per_page": 20
            }

            response = client.folders.get_agents(**payload)
            print(response)
components:
  schemas:
    FolderAgentsRequest:
      allOf:
        - type: object
          required:
            - page
            - per_page
          properties:
            page:
              type: integer
              minimum: 1
              example: 1
              description: Page value.
            per_page:
              type: integer
              minimum: 1
              maximum: 100
              example: 20
              description: Per page value.
      description: Folder Agents Request schema.
    GenericResponse:
      type: object
      properties:
        status:
          type: string
          description: Indicates if the request was successful.
          example: success
        message:
          type: string
          description: A descriptive message about the result of the request.
          example: Request completed successfully
        data:
          type: object
          additionalProperties: true
          description: The payload of the response, if any.
      additionalProperties: true
      description: A generic response schema for successful API calls.
    ErrorResponse:
      type: object
      required:
        - message
      properties:
        status:
          type: string
          example: error
          description: Status value.
        message:
          type: string
          example: Invalid request payload
          description: Message value.
        error:
          type: string
          example: Bad Request
          description: Error value.
        code:
          type: string
          example: BAD_REQUEST
          description: Code value.
      additionalProperties: true
      description: Error Response schema.
  responses:
    BadRequest:
      description: Bad Request - invalid parameters or payload.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            code: BAD_REQUEST
            message: Request validation failed.
    Unauthorized:
      description: Unauthorized - missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            code: UNAUTHORIZED
            message: Invalid or missing superU-Api-Key.
    NotFound:
      description: Not Found - requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            code: NOT_FOUND
            message: Resource not found.
    InternalServerError:
      description: Internal Server Error - unexpected backend error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            code: INTERNAL_SERVER_ERROR
            message: An unexpected server error occurred.
    NotImplemented:
      description: >-
        Not Implemented - this action is not available in the current
        deployment.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            code: NOT_IMPLEMENTED
            message: This endpoint is not implemented for your workspace.
  securitySchemes:
    superUApiKey:
      type: apiKey
      in: header
      name: superU-Api-Key
      description: Your SuperU API key.

````