---
title: "Deploy an application workspace project with Drop"
method: POST
path: "/ai/applications/{application_public_id}/projects/{project_id}/deploy"
tags: ["AI Applications"]
---

# Deploy an application workspace project with Drop

`POST /ai/applications/{application_public_id}/projects/{project_id}/deploy`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/applications/{application_public_id}/projects/{project_id}/deploy`
- Auth: HTTP bearer

Packages projects/<slug> from the application's persistent workspace and starts the existing Temps uploaded-source Drop workflow. The operation is exposed to chat through temps_write and therefore follows the active native approval mode.

## Path parameters

- `application_public_id` string, required
- `project_id` integer, required

## Request body

- DeployApplicationProjectRequest
  - `environment_id` integer, nullable: Target environment. Omit to use production, then the project's oldest active environment as a fallback.

## Response `202`

- ApplicationProjectDeploymentResponse
  - `environment_id` integer, required
  - `id` integer, required
  - `project_id` integer, required
  - `slug` string, required
  - `source_type` string, required
  - `state` string, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `409`
- `413`
- `503`

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - added the non-success response with the status `409`
- **2026-10-05** `63a80791dc58`: 1 info
  - removed the non-success response with the status `409`
- **2026-09-22** `1dd3766c34ed`: 1 info
  - added the non-success response with the status `409`
- **2026-09-07** `7a3103561bd0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/applications/:application_public_id/projects/:project_id/deploy/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
