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

# List scenarios

> List the project's test scenarios: the folders test cases are organized in. Reuse an existing folder when filing a test case instead of creating a near-duplicate.



## OpenAPI

````yaml /api-reference/api.json get /v1/scenarios
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Scenarios
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/scenarios:
    get:
      tags:
        - Scenarios
      summary: List scenarios
      description: >-
        List the project's test scenarios: the folders test cases are organized
        in. Reuse an existing folder when filing a test case instead of creating
        a near-duplicate.
      operationId: ListScenarios
      parameters:
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ProjectScopedRequest'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListScenariosResponse'
components:
  schemas:
    ProjectScopedRequest:
      type: object
      properties:
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
      description: >-
        Mixin for project-scoped requests: an optional per-call project
        override.
    ListScenariosResponse:
      type: object
      required:
        - scenarios
      properties:
        scenarios:
          type: array
          items:
            $ref: '#/components/schemas/ProjectScenario'
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    ProjectScenario:
      type: object
      required:
        - shortId
        - name
        - path
        - parentScenarioShortId
        - testCaseCount
      properties:
        shortId:
          allOf:
            - $ref: '#/components/schemas/ScenarioShortId'
          description: >-
            Pass as `scenarioShortId` when creating or updating a test case,
            listing test cases, or scoping a rule.
        name:
          type: string
        path:
          type: string
          description: Full folder path from the root, such as `Checkout > Payments`.
        parentScenarioShortId:
          type: string
          allOf:
            - $ref: '#/components/schemas/ScenarioShortId'
          nullable: true
          description: Short ID of the folder this one is nested in, or null at the root.
        testCaseCount:
          type: integer
          format: int32
          description: >-
            Number of non-archived test cases directly in this folder, not
            counting nested folders.
    ScenarioShortId:
      type: string
      pattern: ^scenario(-.+_.+|_.+)$
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

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