> ## Documentation Index
> Fetch the complete documentation index at: https://cubed3-igor-cub-3093-query-tracing-sql-comment.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a deployment with an empty starter project and trigger its first build

Scaffolds an empty starter project and triggers the first build. When `creationMethod` is `github`, no starter project is scaffolded — connect a repository afterwards via POST /build/api/v1/deployments/:deploymentId/github/connect.


## OpenAPI

````yaml /api-reference/api.yaml post /build/api/v1/deployments
openapi: 3.1.0
info:
  title: Cube Platform API
  version: 1.0.0
  description: >-
    Programmatically manage Cube: deployments and everything scoped to them

    (environments, folders, reports, workbooks, notifications, workspace, and
    agents),

    plus account-level users, groups, policies, embedding, and AI settings.
    Data-model

    authoring, dev mode, branches, and uploads live under /build/api/v1 — same
    host and

    token, routed to the build pods.
servers:
  - url: https://{tenant}.cubecloud.dev
    description: Your tenant host. Replace the whole host if you use a custom domain.
    variables:
      tenant:
        default: your-tenant
        description: Your Cube tenant subdomain
security:
  - bearerAuth: []
tags:
  - name: Deployments
  - name: Deployment Creation
  - name: Environments
  - name: Env Variables
  - name: Regions
  - name: Data Model
  - name: Data Model Uploads
  - name: GitHub
  - name: GitHub Connection
  - name: dbt Sync
  - name: Folders
  - name: Reports
  - name: Workbooks
  - name: Notifications
  - name: Workspace
  - name: Users Admin
  - name: User Attributes
  - name: User Attribute Values
  - name: Tenant Settings
  - name: OAuth Integrations
  - name: User OAuth Tokens
  - name: OIDC Token Configs
  - name: App Theme
  - name: Embed
  - name: Embed Tenants
  - name: Dashboard Embed Access
paths:
  /build/api/v1/deployments:
    post:
      tags:
        - Deployment Creation
      summary: >-
        Create a deployment with an empty starter project and trigger its first
        build
      operationId: createDeployment
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDeploymentInput'
        description: CreateDeploymentInput
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Deployment'
          description: ''
components:
  schemas:
    CreateDeploymentInput:
      properties:
        cloudProvider:
          $ref: '#/components/schemas/CreateDeploymentInputCloudProvider'
        creationMethod:
          oneOf:
            - $ref: '#/components/schemas/CreateDeploymentInputCreationMethod'
            - type: 'null'
        creationStep:
          $ref: '#/components/schemas/CreationStep'
        deployMode:
          oneOf:
            - $ref: '#/components/schemas/CreateDeploymentInputDeployMode'
            - type: 'null'
        isManaged:
          type: boolean
        name:
          type: string
        region:
          type: string
        targetPlatform:
          type: string
      required:
        - name
        - cloudProvider
        - isManaged
        - region
        - targetPlatform
        - creationStep
      type: object
    Deployment:
      properties:
        creationStep:
          $ref: '#/components/schemas/CreationStep'
        deploymentUrl:
          type: string
        id:
          type: integer
        name:
          type: string
      required:
        - id
        - name
        - deploymentUrl
        - creationStep
      type: object
    CreateDeploymentInputCloudProvider:
      enum:
        - cubecloud
        - aws
        - gcp
      type: string
    CreateDeploymentInputCreationMethod:
      enum:
        - upload
        - cubecloud
        - github
        - ssh
      type: string
    CreationStep:
      enum:
        - project
        - upload
        - schema
        - github
        - ssh
        - databases
        - ready
        - demo
      type: string
    CreateDeploymentInputDeployMode:
      enum:
        - git
        - cli
      type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Token authentication. Send `Authorization: Bearer <YOUR_TOKEN>`.'

````