workflow

Get history for specific prompt

Deprecated. Superseded by GET /api/jobs/{job_id}, which returns the same execution record. Planned for removal no earlier than a future major release; sunset timeline TBD.

Retrieve detailed execution history for a specific prompt ID. Returns full history data including complete prompt information.

get/api/history_v2/{prompt_id}

Path parameters

prompt_idstring required

The prompt ID to retrieve history for

Response

Success - History for prompt retrieved

HistoryDetailResponse required

Detailed execution history response for a specific prompt. Returns a dictionary with prompt_id as key and full history data as value.

Changes

Changed in 6 of the 38 revisions of this API.4613

    • removed the required property error from the response with the 401 status

      response-required-property-removed

    • removed the required property error from the response with the 404 status

      response-required-property-removed

    • api tag workflow added

      api-tag-added

    • api tag history removed

      api-tag-removed

    • for the path request parameter prompt_id, the type/format was generalized from string/uuid to string/

      request-parameter-type-generalized

    • added the optional property details to the response with the 500 status

      response-optional-property-added

    • the response property code became required for the status 401

      response-property-became-required

    • the response property code became required for the status 404

      response-property-became-required

    • added the required property message to the response with the 401 status

      response-required-property-added

    • added the required property message to the response with the 404 status

      response-required-property-added

    This revision also has 130 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • c4db9e1283df26See the full diff
    • removed the required property id from the response with the 200 status

      response-required-property-removed

    • removed the required property status from the response with the 200 status

      response-required-property-removed

    • removed the optional property completed_at from the response with the 200 status

      response-optional-property-removed

    • removed the optional property created_at from the response with the 200 status

      response-optional-property-removed

    • removed the optional property outputs from the response with the 200 status

      response-optional-property-removed

    • removed the optional property preview_output from the response with the 200 status

      response-optional-property-removed

    • removed the optional property started_at from the response with the 200 status

      response-optional-property-removed

    • removed the optional property workflow from the response with the 200 status

      response-optional-property-removed

    • api operation id getHistoryV2ByPromptId removed and replaced with getHistoryForPrompt

      api-operation-id-removed

    • added the non-success response with the status 500

      response-non-success-status-added

    • endpoint deprecated

      endpoint-deprecated

    • endpoint added

      endpoint-added

    • api path removed with deprecation

      api-path-removed-with-deprecation

    This revision also has 36 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog