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

# Run Tests by Folder ID API

> Execute all tests within a specific folder by its ID.



## OpenAPI

````yaml post /folder/{folder_id}/run
openapi: 3.0.3
info:
  title: Autonoma API
  description: |
    API for managing test runs and test definitions in the Autonoma platform.

    **Important Note:** Media URLs (images, videos) expire after 1 hour.
  version: 1.0.0
  contact:
    name: Autonoma Support
servers:
  - url: https://autonoma.app/api
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /folder/{folder_id}/run:
    post:
      summary: Run all tests within a folder
      description: Executes all tests contained within the specified folder.
      parameters:
        - name: folder_id
          in: path
          required: true
          description: id of the folder to run
          schema:
            type: string
            example: g41k688vndxzt7kh4kq5m12s
      requestBody:
        required: false
        description: Request body (optional)
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunFolderRequest'
      responses:
        '200':
          description: Run creation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunFolder'
        '400':
          description: Bad request (e.g., missing application version)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidCredentialsError'
        '404':
          description: Folder not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
      security:
        - ApiKeyAuth: []
          ApiSecretAuth: []
components:
  schemas:
    RunFolderRequest:
      type: object
      properties:
        application_version_id:
          type: string
          description: Optional application version ID to use for all tests in the folder
          example: cm7dbowr80042waka7thyjhkq
        source:
          type: string
          description: Source of the test run request
          default: api
          example: api
    RunFolder:
      type: object
      properties:
        message:
          type: string
          example: >-
            Folder with id cm9r0nog10012v301qtollv01 was scheduled to run. Since
            no applicationVersionID was provided, the latest version ('STG') for
            the application associated with the folder's tests was used.
        url:
          type: string
          example: https://autonoma.app/run/folder/pby4qnbppbvimimuls4v5ajq
        folder_run_id:
          type: string
          example: pby4qnbppbvimimuls4v5ajq
    BadRequestError:
      type: object
      properties:
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: >-
            No applicationVersionID provided, and could not automatically
            determine an application from the tests within folder
            cmbsgljfr00fd060153r9x8ek. Please specify an applicationVersionID or
            ensure at least one test has an associated application.
    InvalidCredentialsError:
      type: object
      properties:
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Invalid authentication credentials
    NotFoundError:
      type: object
      properties:
        error:
          type: string
          example: Not found
        message:
          type: string
          example: Resource with id `cm8d9gt6v000c9fe5glmyi33u` not found
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: autonoma-client-id
      description: Client ID for authentication
    ApiSecretAuth:
      type: apiKey
      in: header
      name: autonoma-client-secret
      description: Client secret for authentication

````