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

# Start uploading an app's source

> Signs an upload of the app as a .tar.gz, at most 100 MB, straight into storage: one URL to PUT the whole archive to, or for one over 64 MB, URLs to PUT each `partSize` slice to, in order, keeping each answer's ETag. The URLs last 15 minutes. Then deploy it with `POST /api/apps/{app}/deployments/from-upload`. Environment variables are set with the environment-variable routes, not here.



## OpenAPI

````yaml https://dojo.frogbot.ai/api/openapi.json post /api/apps/{app}/deployments/source-uploads
openapi: 3.1.0
info:
  title: Dojo API
  version: '1'
  description: >-
    Everything Dojo's pages do, for scripts and agents. Sign in with an API key
    as `Authorization: Bearer fb_…`. Paying and accepting the terms happen at a
    link a route answers, for a person to open.
servers:
  - url: https://dojo.frogbot.ai
security:
  - apiKey: []
tags:
  - name: Sign-in
  - name: Workspaces
  - name: Projects
  - name: Apps
  - name: Templates
  - name: Sharing
  - name: Deployments
  - name: Environment variables
  - name: Domains
  - name: Data
  - name: Billing
  - name: API keys
paths:
  /api/apps/{app}/deployments/source-uploads:
    post:
      tags:
        - Deployments
      summary: Start uploading an app's source
      description: >-
        Signs an upload of the app as a .tar.gz, at most 100 MB, straight into
        storage: one URL to PUT the whole archive to, or for one over 64 MB,
        URLs to PUT each `partSize` slice to, in order, keeping each answer's
        ETag. The URLs last 15 minutes. Then deploy it with `POST
        /api/apps/{app}/deployments/from-upload`. Environment variables are set
        with the environment-variable routes, not here.
      operationId: post/api/apps/:app/deployments/source-uploads
      parameters:
        - name: app
          in: path
          required: true
          description: The app's slug, such as `deals`, or its id.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                size:
                  type: integer
              required:
                - size
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: string
                  put:
                    type: string
                  uploadId:
                    type: string
                  partSize:
                    type: integer
                  parts:
                    type: array
                    items:
                      type: string
                  expiresAt:
                    type: string
                required:
                  - key
                  - expiresAt
        '400':
          description: '`invalid_request`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '401':
          description: '`unauthorized`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '402':
          description: '`payment_required`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '403':
          description: '`forbidden`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: '`not_found`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '413':
          description: '`too_large`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '429':
          description: '`rate_limited`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
components:
  schemas:
    Errors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              message:
                type: string
              data:
                type: object
                properties:
                  code:
                    type: string
                  url:
                    type: string
                    description: Where a person takes the next step, such as paying.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from `frogbot deploy`'s sign-in, `/api/cli/device/token`, or
        the API keys page.

````

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