> ## 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.

# Create test case

> Create a new test case for a project



## OpenAPI

````yaml /api-reference/api.json post /v1/test-cases
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: >-
    REST API for triggering and managing AI-powered test runs. Authenticate with
    a project API token (Authorization: Bearer <token>) found in Project
    Settings -> Integrations.
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
paths:
  /v1/test-cases:
    post:
      tags:
        - Test Cases
      summary: Create test case
      description: Create a new test case for a project
      operationId: CreateTestCase
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTestCaseRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTestCaseResponse'
components:
  schemas:
    CreateTestCaseRequest:
      type: object
      required:
        - name
        - goal
        - applicationShortId
      properties:
        name:
          type: string
        goal:
          type: string
          minLength: 1
        expectedResult:
          type: string
        resumeFromDependencyProjectTestCaseId:
          type: string
        waitForDependenciesProjectTestCaseIds:
          type: array
          items:
            type: string
        configShortIds:
          type: array
          items:
            $ref: '#/components/schemas/ConfigShortId'
        applicationShortId:
          $ref: '#/components/schemas/ApplicationShortId'
        scenarioShortId:
          $ref: '#/components/schemas/ScenarioShortId'
      description: Request body for creating a new test case linked to a project
    CreateTestCaseResponse:
      type: object
      required:
        - success
        - testCase
      properties:
        success:
          type: boolean
        testCase:
          $ref: '#/components/schemas/TestCase'
    ConfigShortId:
      type: string
      pattern: ^cfg(-.+_.+|_.+)$
    ApplicationShortId:
      type: string
      pattern: ^app(-.+_.+|_.+)$
    ScenarioShortId:
      type: string
      pattern: ^scenario(-.+_.+|_.+)$
    TestCase:
      type: object
      required:
        - id
        - name
        - url
      properties:
        id:
          type: string
        name:
          type: string
        url:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````