---
title: "Get prompt history"
method: GET
path: "/history/{prompt_id}"
tags: ["ComfyUI"]
---

# Get prompt history

`GET /history/{prompt_id}`

## Request

- Base URL: `https://localhost:8080/api/v1`
- URL: `https://localhost:8080/api/v1/history/{prompt_id}`
- Auth: API key in header `Authorization`

Retrieves the execution history and outputs for a specific prompt ID.

## Path parameters

- `prompt_id` string, uuid, required

## Response `200`

Prompt history details

- object

## Other responses

- `400`: Bad Request (e.g., missing prompt_id)
- `401`: Unauthorized (Invalid or missing Bearer token)
- `404`: Not Found (Prompt ID not found in ComfyUI)
- `500`: Internal Server Error

---

[API](https://skmtc.dev/google/apis/comfyui-api-service-via-gin.md) - [All operations](https://skmtc.dev/google/apis/comfyui-api-service-via-gin/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/comfyui-api-service-via-gin/revisions/0ff52c8365aa?raw)
