---
title: "Replay Workflow Prompts"
method: POST
path: "/api/v1/workflow/{workflow_id}/prompt-replay"
tags: ["main"]
---

# Replay Workflow Prompts

`POST /api/v1/workflow/{workflow_id}/prompt-replay`

## Request

- Base URL: `https://app.dograh.com`
- URL: `https://app.dograh.com/api/v1/workflow/{workflow_id}/prompt-replay`
- Auth: none declared
- TypeScript: <https://skmtc.dev/dograh/apis/dograh-api/docs/api/v1/workflow/:workflow_id/prompt-replay/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `workflow_id` integer, required

## Headers

- `authorization` string, nullable
- `X-API-Key` string, nullable

## Request body

- PromptReplayRequest
  - `prompt_variables` PromptVariablesConfiguration
    - `mode` 'inline' | 'call_context': Enable prompt caching optimization with call_context. Dograh manages explicit caching automatically for eligible providers and models.
    - `call_context_note` string, nullable
    - `include_weekday` boolean
  - `limit` integer
  - `max_turns` integer

## Response `200`

Successful Response

- PromptReplayResponse
  - `turns` object[], required
  - `valid_turns` integer, required
  - `failed_turns` integer, required
  - `action_agreement` number, nullable, required
  - `inline_noise_agreement` number, nullable, required
  - `call_context_noise_agreement` number, nullable, required
  - `notices` string[], required
  - `semantic_agreement` object, required
  - `sample_metrics` object, required

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-11-10** `d561dc641350`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dograh/apis/dograh-api/changes/api/v1/workflow/:workflow_id/prompt-replay/post.md)

---

[API](https://skmtc.dev/dograh/apis/dograh-api.md) - [All operations](https://skmtc.dev/dograh/apis/dograh-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dograh/apis/dograh-api/revisions/d561dc641350?raw)
