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

# Start Run

> Start a run

Start a run of a specified test. The primary requirements are to specify the ID of a test (which can be obtained via the Test API or in the UI) and the duration in minutes, from 2 minutes to 720 minutes. The endpoint returns a run\_id which can be used to monitor responses afterwards.


## OpenAPI

````yaml POST /run
openapi: 3.1.0
info:
  title: LoadForge API
  description: >-
    The LoadForge API provides programmatic access to create, manage, and run
    load tests on your web applications
  license:
    name: MIT
  version: 2.0.0
servers:
  - url: https://app.loadforge.com/api/v2
security:
  - bearerAuth: []
paths:
  /run:
    post:
      description: Start a run
      requestBody:
        description: Run details
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunRequest'
        required: true
      responses:
        '200':
          description: Run creation response
          content:
            application/json:
              schema:
                type: object
                properties:
                  run_id:
                    type: integer
                    description: ID of the created run
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RunRequest:
      type: object
      required:
        - test_id
        - duration
      properties:
        test_id:
          type: integer
          description: ID of the test to run
        duration:
          type: integer
          description: Duration of the run in minutes (2-720)
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````