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

# Create

> Queue a new deployment of the project. Defaults to the production environment; custom environments deploy to their own managed subdomain ("https://<project-slug>-<environment>.korve.app").



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/deploys
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/deploys:
    post:
      tags:
        - deploys
      summary: Create
      description: >-
        Queue a new deployment of the project. Defaults to the production
        environment; custom environments deploy to their own managed subdomain
        ("https://<project-slug>-<environment>.korve.app").
      operationId: deploys.create
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
      requestBody:
        required: false
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                gitRepo:
                  type: string
                  pattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$
                  description: Source repository as "owner/repo".
                gitRef:
                  type: string
                  description: Branch, tag, or commit. Defaults to main.
                environment:
                  type: string
                  pattern: ^[a-z][a-z0-9-]{0,38}$
                  description: >-
                    Environment to deploy to. Defaults to "production". An
                    environment that does not exist on the project answers 404.
                    Preview deployments are created from pull requests, never
                    here.
      responses:
        '202':
          description: Deployment accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                    enum:
                      - queued
                      - building
                      - deploying
                      - ready
                      - failed
                required:
                  - id
                  - status
        '402':
          description: Organization billing is not active.
        '404':
          description: No such project or environment in this organization.
        '422':
          description: >-
            Invalid gitRepo, gitRef, or environment — including deploys
            addressed to the preview environment.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````