---
title: "Get history for specific prompt"
method: GET
path: "/api/history_v2/{prompt_id}"
tags: ["workflow"]
deprecated: true
---

# Get history for specific prompt

`GET /api/history_v2/{prompt_id}`

> **Deprecated.**

**Deprecated.** Superseded by `GET /api/jobs/{job_id}`, which returns
the same execution record. Planned for removal no earlier than a future
major release; sunset timeline TBD.

Retrieve detailed execution history for a specific prompt ID.
Returns full history data including complete prompt information.

## Path parameters

- `prompt_id` string, required

## Response `200`

Success - History for prompt retrieved

- HistoryDetailResponse — Detailed execution history response for a specific prompt. Returns a dictionary with prompt_id as key and full history data as value.

## Other responses

- `401` — Unauthorized - Authentication required
- `404` — Prompt not found
- `500` — Internal server error

## Changes

- **2026-06-03** `8560879e6188` — 2 breaking, 8 info
  - removed the required property `error` from the response with the `401` status
  - removed the required property `error` from the response with the `404` status
  - api tag `workflow` added
  - api tag `history` removed
  - …6 more
- **2026-05-22** `c4db9e1283df` — 2 breaking, 6 warning
  - removed the required property `id` from the response with the `200` status
  - removed the required property `status` from the response with the `200` status
  - removed the optional property `completed_at` from the response with the `200` status
  - removed the optional property `created_at` from the response with the `200` status
  - …4 more
- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `getHistoryV2ByPromptId` removed and replaced with `getHistoryForPrompt`
  - added the non-success response with the status `500`
- **2026-05-12** `2f69d843959c` — 1 info
  - endpoint deprecated
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/history_v2/:prompt_id/get.md)

---

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