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

---

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