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

> Start an isolated one-shot container execution. Environment values are write-only and never returned.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/executions
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}/executions:
    post:
      tags:
        - executions
      summary: Create
      description: >-
        Start an isolated one-shot container execution. Environment values are
        write-only and never returned.
      operationId: executions.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: true
        x-korve-max-bytes: 256000
        content:
          application/json:
            schema:
              type: object
              properties:
                image:
                  type: string
                  minLength: 1
                  maxLength: 512
                command:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 4096
                  minItems: 1
                  maxItems: 128
                region:
                  type: string
                  minLength: 1
                  maxLength: 64
                resources:
                  type: object
                  properties:
                    cpuKind:
                      type: string
                      enum:
                        - shared
                        - performance
                    cpus:
                      type: integer
                      minimum: 1
                      maximum: 16
                    memoryMb:
                      type: integer
                      minimum: 256
                      maximum: 65536
                  additionalProperties: false
                runtime:
                  type: object
                  properties:
                    nestedContainers:
                      type: boolean
                  additionalProperties: false
                env:
                  type: object
                  description: >-
                    Write-only environment variables supplied only to this
                    execution.
                  additionalProperties:
                    type: string
                    maxLength: 32768
                imagePullCredentials:
                  type: object
                  description: >-
                    Write-only credentials used to import this execution's
                    private OCI image. The password may be a registry token or
                    password and is never returned.
                  properties:
                    registry:
                      type: string
                      minLength: 1
                      maxLength: 253
                      description: >-
                        Supported registry hostname advertised by
                        executions.availability. It must match the registry in
                        image; Docker Hub aliases are normalized.
                    username:
                      type: string
                      minLength: 1
                      maxLength: 512
                    password:
                      type: string
                      minLength: 1
                      maxLength: 16384
                  required:
                    - registry
                    - username
                    - password
                  additionalProperties: false
                timeoutSeconds:
                  type: integer
                  minimum: 1
                  maximum: 86400
              required:
                - image
                - command
                - region
              additionalProperties: false
      responses:
        '202':
          description: Execution accepted and starting.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                    enum:
                      - starting
                      - running
                      - succeeded
                      - failed
                      - cancelled
                      - timed_out
                  image:
                    type: string
                  command:
                    type: array
                    items:
                      type: string
                  region:
                    type: string
                  resources:
                    type: object
                    properties:
                      cpuKind:
                        type: string
                        enum:
                          - shared
                          - performance
                      cpus:
                        type: integer
                        minimum: 1
                        maximum: 16
                      memoryMb:
                        type: integer
                        minimum: 256
                        maximum: 65536
                    required:
                      - cpuKind
                      - cpus
                      - memoryMb
                    additionalProperties: false
                  runtime:
                    type: object
                    properties:
                      nestedContainers:
                        type: boolean
                    required:
                      - nestedContainers
                    additionalProperties: false
                  timeoutSeconds:
                    type: integer
                  exitCode:
                    type:
                      - integer
                      - 'null'
                  errorCode:
                    type:
                      - string
                      - 'null'
                  cleanupStatus:
                    type: string
                    enum:
                      - pending
                      - confirmed
                      - attention_required
                  createdAt:
                    type: string
                    format: date-time
                  startedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  finishedAt:
                    type:
                      - string
                      - 'null'
                    format: date-time
                required:
                  - id
                  - status
                  - image
                  - command
                  - region
                  - resources
                  - runtime
                  - timeoutSeconds
                  - exitCode
                  - errorCode
                  - cleanupStatus
                  - createdAt
                  - startedAt
                  - finishedAt
                additionalProperties: false
        '402':
          description: The project hard-stop budget cannot reserve this execution.
        '404':
          description: No such project.
        '422':
          description: >-
            Invalid image, command, region, resources, runtime capability, or
            timeout.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````