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

# Create an app from a Custom Docker Image

> JSON counterpart of POST /apps for apps deployed straight from an already-built Custom Docker Image — no file upload. The image's own ENTRYPOINT/CMD runs; language/version/entrypoint/custom_command don't apply.



## OpenAPI

````yaml /api-reference/openapi.json post /apps/custom-image
openapi: 3.0.0
info:
  title: Shard Cloud API
  description: >-
    API reference for Shard Cloud's authenticated management endpoints — Apps,
    Databases, VMs, Custom Docker Images, and project-level Alerts & Backups.
    Every endpoint on this page requires a JWT bearer token (see Authentication
    below). CDN endpoints have their own reference under the CDN tab.
  version: 2.0.0
servers:
  - url: https://shardcloud.app/api
    description: API base path
security: []
tags:
  - name: Databases
    description: PostgreSQL, MySQL, MongoDB, and Redis database services.
  - name: Apps
    description: Web application deployment, files, domains, and configuration.
  - name: VMs
    description: Full Linux virtual machines with SSH access.
  - name: Custom Images
    description: User-built Docker images, deployable straight to an App.
  - name: Project
    description: >-
      Resource alerts and backups — shared across App, Database, and VM
      projects.
paths:
  /apps/custom-image:
    post:
      tags:
        - Apps
      summary: Create an app from a Custom Docker Image
      description: >-
        JSON counterpart of POST /apps for apps deployed straight from an
        already-built Custom Docker Image — no file upload. The image's own
        ENTRYPOINT/CMD runs; language/version/entrypoint/custom_command don't
        apply.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAppFromCustomImageRequest'
      responses:
        '201':
          description: App created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: No valid subscription
      security:
        - JWTAuth: []
components:
  schemas:
    CreateAppFromCustomImageRequest:
      type: object
      required:
        - custom_image_id
        - name
        - ram
      properties:
        custom_image_id:
          type: string
          format: uuid
        name:
          type: string
        description:
          type: string
        subdomain:
          type: string
        ram:
          type: integer
        env:
          type: array
          items:
            $ref: '#/components/schemas/Env'
    Error:
      type: object
      properties:
        error:
          type: string
    Env:
      type: object
      properties:
        key:
          type: string
        value:
          type: string
  securitySchemes:
    JWTAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send your API token (Dashboard → Settings → API Token) as
        `Authorization: Bearer <token>`.

````