---
title: "Deploy a prompt version"
method: POST
path: "/api/prompts/{prompt_id}/deployments/"
tags: ["prompts"]
---

# Deploy a prompt version

`POST /api/prompts/{prompt_id}/deployments/`

Deploy a committed version as the live version for this prompt.

## Path parameters

- `prompt_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `version` integer, required — Version number to deploy as live.

## Response `201`

Version deployed successfully.

- PromptsDeployPromptVersionResponse201
  - `id` string
  - `prompt_version_id` string
  - `version` integer
  - `description` string, nullable
  - `messages` object[]
  - `model` string
  - `readonly` boolean
  - `is_deployed` boolean
  - `edited_by` ApiPromptsPromptIdDeploymentsPostResponsesContentApplicationJsonSchemaEditedBy
    - `id` integer
    - `email` string
    - `first_name` string
    - `last_name` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication
- `404` — Version not found

## Changes

> 6 revisions in range; 2 could not be searched.

- **2026-08-13** `4e064cf81dae` — 2 breaking, 27 warning, 4 info
  - the request property `version` became required
  - removed the success response with the status `200`
  - removed the request property `created_at`
  - removed the request property `description`
  - …29 more
- **2026-07-31** `c26d550029f8` — 2 breaking, 31 info
  - added the new required request property `prompt`
  - removed the success response with the status `201`
  - added the new optional request property `created_at`
  - added the new optional request property `description`
  - …29 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/prompts/:prompt_id/deployments/post.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
