跳转到主要内容
GET
/
api
/
history_v2
Get execution history (v2)
curl --request GET \
  --url https://cloud.comfy.org/api/history_v2 \
  --header 'X-API-Key: <api-key>'
{
  "history": [
    {
      "prompt_id": "<string>",
      "create_time": 123,
      "workflow_id": "<string>",
      "prompt": {
        "priority": 123,
        "prompt_id": "<string>",
        "extra_data": {}
      },
      "outputs": {},
      "status": {},
      "meta": {}
    }
  ]
}

授权

X-API-Key
string
header
必填

API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.

查询参数

max_items
integer

Maximum number of items to return

offset
integer
默认值:0

Starting position (default 0)

响应

Success - Execution history retrieved

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
object[]
必填

Array of history entries ordered by creation time (newest first)