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

# List Tests

> List your team's tests, newest first.



## OpenAPI

````yaml get /v1/agent/tests
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/tests:
    get:
      tags:
        - Agent Tests
      summary: List Tests
      description: >-
        List your team's tests, newest first. Filter with `agent_id` to see the

        tests attached to one agent. Paginate with `cursor` (follow
        `next_cursor`

        while `has_more` is true) or with `page` for offset pagination with a

        `total` count. The two are mutually exclusive.
      parameters:
        - in: query
          name: search
          description: Case-insensitive match on name.
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Search
          deprecated: false
        - in: query
          name: agent_id
          description: Only tests attached to this agent.
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Agent Id
          deprecated: false
        - in: query
          name: test_type
          description: ''
          required: false
          schema:
            anyOf:
              - enum:
                  - next_reply
                  - tool
                  - simulation
                type: string
              - type: 'null'
            default: null
            title: Test Type
          deprecated: false
        - in: query
          name: cursor
          description: ''
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Cursor
          deprecated: false
        - in: query
          name: page
          description: 1-based page number, mutually exclusive with cursor.
          required: false
          schema:
            anyOf:
              - minimum: 1
                type: integer
              - type: 'null'
            default: null
            title: Page
          deprecated: false
        - in: query
          name: include_total
          description: ''
          required: false
          schema:
            default: false
            title: Include Total
            type: boolean
          deprecated: false
        - in: query
          name: page_size
          description: ''
          required: false
          schema:
            default: 30
            maximum: 100
            minimum: 1
            title: Page Size
            type: integer
          deprecated: false
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  tests:
                    items:
                      $ref: '#/components/schemas/PublicAgentTestSummary'
                    title: Tests
                    type: array
                  has_more:
                    title: Has More
                    type: boolean
                  next_cursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Next Cursor
                  total:
                    anyOf:
                      - type: integer
                      - type: 'null'
                    default: null
                    title: Total
                required:
                  - tests
                  - has_more
                type: object
        '400':
          description: Bad request syntax or unsupported method
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '503':
          description: The server cannot process the request due to a high load
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    PublicAgentTestSummary:
      properties:
        test_id:
          title: Test Id
          type: string
        workspace_id:
          title: Workspace Id
          type: string
        name:
          title: Name
          type: string
        test_type:
          enum:
            - next_reply
            - tool
            - simulation
          title: Test Type
          type: string
        agent_ids:
          description: Agents this test is attached to.
          items:
            type: string
          title: Agent Ids
          type: array
        created_at:
          format: date-time
          title: Created At
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - test_id
        - workspace_id
        - name
        - test_type
        - created_at
        - updated_at
      title: PublicAgentTestSummary
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.