---
title: "✨ Preview assembled prompt"
method: GET
path: "/api/prompts/{prompt_id}/versions/{version_id}/prompt-preview"
tags: ["Prompts"]
---

# ✨ Preview assembled prompt

`GET /api/prompts/{prompt_id}/versions/{version_id}/prompt-preview`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/prompts/{prompt_id}/versions/{version_id}/prompt-preview`
- Auth: API key in header `Authorization`

Return the fully assembled prompt with few-shot examples injected.

## Path parameters

- `prompt_id` integer, required
- `version_id` integer, required

## Response `200`

- PromptPreviewResponse
  - `rendered_prompt` string, required

## Changes

> 142 revisions in range; 1 not diffed.

- **2026-07-08** `93493def8bb7`: 1 info
  - added the media type `application/json` for the response with the status `200`

[Operation history](https://skmtc.dev/humansignal/apis/label-studio-api/changes/api/prompts/:prompt_id/versions/:version_id/prompt-preview/get.md)

---

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