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

# Get execution history (v2)

`GET /api/history_v2`

> **Deprecated.**

**Deprecated.** Use [`/api/jobs`](#tag/job/GET/api/jobs) instead. This endpoint is maintained for ComfyUI compatibility but will be removed in a future release; no removal date set.

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)
    - `prompt_id` string, required — Unique identifier for this prompt execution
    - `create_time` integer — Job creation timestamp (Unix timestamp in milliseconds)
    - `workflow_id` string — UUID identifying the workflow graph definition
    - `prompt` object — Filtered prompt execution data (lightweight format)
      - `priority` number, double — Execution priority
      - `prompt_id` string — The prompt ID
      - `extra_data` object — Additional execution data (workflow removed from extra_pnginfo)
    - `outputs` object — Output data from execution (generated images, files, etc.)
    - `status` object — Execution status and timeline information
    - `meta` object — Metadata about the execution and nodes

## Other responses

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

---

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