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

> Create a web or API application and its default environment.

An unarchived application with the same name in the project is returned unchanged (`created: false`), so repeating the request does not create a duplicate. Mobile applications are not supported here.



## OpenAPI

````yaml /api-reference/api.json post /v1/applications
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: Issues
  - name: Todos
  - name: Automations
paths:
  /v1/applications:
    post:
      tags:
        - Applications
      summary: Create application
      description: >-
        Create a web or API application and its default environment.


        An unarchived application with the same name in the project is returned
        unchanged (`created: false`), so repeating the request does not create a
        duplicate. Mobile applications are not supported here.
      operationId: CreateApplication
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApplicationRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApplicationResponse'
components:
  schemas:
    CreateApplicationRequest:
      type: object
      required:
        - name
        - environment
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Application name shown in the project.
        kind:
          type: string
          enum:
            - WEB_APPLICATION
            - API_APPLICATION
          description: >-
            WEB_APPLICATION opens a browser. API_APPLICATION runs browserless
            HTTP tests. Defaults to WEB_APPLICATION. Mobile applications are not
            created by this endpoint.
          default: WEB_APPLICATION
        description:
          type: string
          maxLength: 2000
          description: Optional description stored on the application.
        environment:
          $ref: '#/components/schemas/CreateApplicationEnvironment'
        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: >-
        Create a web or API application and its default environment in the
        project the API key is bound to.
    CreateApplicationResponse:
      type: object
      required:
        - created
        - application
      properties:
        created:
          type: boolean
          description: >-
            False when an unarchived application with this name already existed
            and was returned unchanged.
        application:
          $ref: '#/components/schemas/CreatedApplication'
    CreateApplicationEnvironment:
      type: object
      required:
        - url
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Environment name. Defaults to Default environment.
        url:
          type: string
          format: uri
          description: Public http(s) start URL. Required for web and API applications.
        isProduction:
          type: boolean
          description: >-
            Mark the environment as production. Defaults to false. The agent
            avoids destructive actions on production.
      description: >-
        Default environment created with an application. Web and API
        applications require a public URL.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    CreatedApplication:
      type: object
      required:
        - shortId
        - name
        - kind
        - environment
      properties:
        shortId:
          allOf:
            - $ref: '#/components/schemas/ApplicationShortId'
          description: >-
            Prefixed application short ID. Pass this as applicationShortId on
            later calls.
        name:
          type: string
        kind:
          type: string
          enum:
            - WEB_APPLICATION
            - API_APPLICATION
        environment:
          $ref: '#/components/schemas/CreatedApplicationEnvironment'
    ApplicationShortId:
      type: string
      pattern: ^app(-.+_.+|_.+)$
    CreatedApplicationEnvironment:
      type: object
      required:
        - shortId
        - name
        - url
      properties:
        shortId:
          $ref: '#/components/schemas/EnvironmentShortId'
        name:
          type: string
        url:
          type: string
    EnvironmentShortId:
      type: string
      pattern: ^env(-.+_.+|_.+)$
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

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