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

# Deploy app

> Deploy an existing app.

<RequestExample>
  ```bash Request theme={null}
  curl --request POST \
    --url http://localhost:8080/{app_id}/deploy \
    -d "api_key=ec-xxxx"
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  { "response": "App deployed successfully." }
  ```
</ResponseExample>


## OpenAPI

````yaml post /{app_id}/deploy
openapi: 3.1.0
info:
  title: Embedchain REST API
  description: This is the REST API for Embedchain.
  license:
    name: Apache 2.0
    url: https://github.com/embedchain/embedchain/blob/main/LICENSE
  version: 0.0.1
servers: []
security: []
paths:
  /{app_id}/deploy:
    post:
      tags:
        - Apps
      summary: Deploy app
      description: Deploy an existing app.
      operationId: deploy_app__app_id__deploy_post
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            title: App Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeployAppRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DeployAppRequest:
      properties:
        api_key:
          type: string
          title: Api Key
          description: >-
            The Embedchain API key for app deployments. You get the api key on
            the Embedchain platform by visiting
            [https://app.embedchain.ai](https://app.embedchain.ai)
          default: ''
      type: object
      title: DeployAppRequest
      example:
        api_key: ec-xxx
    DefaultResponse:
      properties:
        response:
          type: string
          title: Response
      type: object
      required:
        - response
      title: DefaultResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````