---
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/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/prompts/{prompt_id}/deployments/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

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

## Path parameters

- `prompt_id` string, required

## Request body

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

## Response `201`

Version deployed successfully.

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

## Other responses

- `400`: Validation failed, or the version is a draft. Commit it first.
- `403`: The API key is missing, invalid or expired.
- `404`: The prompt or version doesn't exist, or the prompt has no committed version.

## Changes

- **2026-10-21** `c30bcb383ee8`: 2 breaking, 4 info
  - request body became required
  - the response property `description` became nullable for the status `201`
  - api operation id `prompts_deployPromptVersion` removed and replaced with `deployPromptVersion`
  - the endpoint scheme security `DashboardJwt` was added to the API
  - …2 more
- **2026-10-02** `b830b79cfd52`: 3 warning, 3 info
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `is_deployed` from the response with the `201` status
  - added the non-success response with the status `403`
  - …2 more
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `deploy-prompt-version` removed and replaced with `prompts_deployPromptVersion`

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

---

[API](https://skmtc.dev/respan/apis/respan-api.md) - [All operations](https://skmtc.dev/respan/apis/respan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/respan/apis/respan-api/revisions/900841387635?raw)
