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

> Create a short-lived signed URL for uploading a project's source as a gzipped tar archive. Upload the archive with PUT, then pass the returned key to deploys.create as sourceKey to build and release it — no connected repository required. Ideal for deploying a local directory.



## OpenAPI

````yaml /openapi.json post /v1/orgs/{orgId}/projects/{projectId}/deploys/sources
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/sources:
    post:
      tags:
        - deploys
      summary: Create Source
      description: >-
        Create a short-lived signed URL for uploading a project's source as a
        gzipped tar archive. Upload the archive with PUT, then pass the returned
        key to deploys.create as sourceKey to build and release it — no
        connected repository required. Ideal for deploying a local directory.
      operationId: deploys.createSource
      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: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                byteLength:
                  type: integer
                  description: Exact size of the gzipped tar archive in bytes.
              required:
                - byteLength
      responses:
        '201':
          description: Signed upload. PUT the archive bytes to the URL before it expires.
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: string
                    description: >-
                      Opaque source key — pass it to deploys.create as
                      sourceKey.
                  url:
                    type: string
                  method:
                    type: string
                    enum:
                      - PUT
                  headers:
                    type: object
                    description: Headers that must accompany the upload request.
                    additionalProperties:
                      type: string
                  expiresAt:
                    type: string
                    format: date-time
                required:
                  - key
                  - url
                  - method
                  - expiresAt
        '402':
          description: Organization billing is not active.
        '404':
          description: No such project in this organization.
        '422':
          description: Invalid archive size.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````