---
title: "Get execution history (v2)"
method: GET
path: "/api/history_v2"
tags: ["workflow"]
deprecated: true
---

# Get execution history (v2)

`GET /api/history_v2`

> **Deprecated.**

**Deprecated.** Superseded by `GET /api/jobs`, which returns the same
execution records in a paginated, filterable format. Planned for removal
no earlier than a future major release; sunset timeline TBD.

Retrieve execution history for the authenticated user with pagination support.
Returns a lightweight history format with filtered prompt data (workflow removed from extra_pnginfo).

## Query parameters

- `max_items` integer
- `offset` integer

## Response `200`

Success - Execution history retrieved

- HistoryResponse — Execution history response with history array. Returns an object with a "history" key containing an array of history entries. Each entry includes prompt_id as a property along with execution data.
  - `history` HistoryEntry[], required — Array of history entries ordered by creation time (newest first)
    - `create_time` integer — Job creation timestamp (Unix timestamp in milliseconds)
    - `meta` object — Metadata about the execution and nodes
    - `outputs` object — Output data from execution (generated images, files, etc.)
    - `prompt` object — Filtered prompt execution data (lightweight format)
      - `extra_data` object — Additional execution data (workflow removed from extra_pnginfo)
      - `priority` number, double — Execution priority
      - `prompt_id` string — The prompt ID
    - `prompt_id` string, required — Unique identifier for this prompt execution
    - `status` object — Execution status and timeline information
    - `workflow_id` string — UUID identifying the workflow graph definition

## Other responses

- `401` — Unauthorized - Authentication required
- `500` — Internal server error

## Changes

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

- **2026-06-03** `8560879e6188` — 2 breaking, 2 warning, 12 info
  - the `history/items/prompt` response's property type/format changed from `array`/`` to `object`/`` for status `200`
  - removed the required property `error` from the response with the `401` status
  - deleted the `query` request parameter `limit`
  - deleted the `query` request parameter `status`
  - …12 more
- **2026-05-22** `c4db9e1283df` — 3 breaking, 1 info
  - removed the required property `has_more` from the response with the `200` status
  - removed the required property `items` from the response with the `200` status
  - removed the required property `total` from the response with the `200` status
  - added the required property `history` to the response with the `200` status
- **2026-05-22** `09a5075587c8` — 2 info
  - api operation id `getHistoryV2` removed and replaced with `getHistory`
  - 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/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)
