/workflows/:id/prompt-history
Read an agent’s prompt version history — every snapshot taken when the base prompt, a channel override, or the funnel structure changed.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | Agent ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Max versions to return, newest first. Default 20, max 50 |
Responses
200 — Successful response
Response Fields — PromptVersion
| Field | Type | Description |
|---|---|---|
version_number | integer | Sequential version number |
global_prompt | string | The base prompt as of this version |
channel_prompts | object | Per-channel overrides as of this version |
changed_fields | string[] | Which fields changed in this version |
changed_by_email | string | null | Who made the change |
change_source | string | Where the change came from, e.g. dashboard, api, training |
change_note | string | null | Optional annotation (see Update Structure for editing structure alongside prompts) |
activated_at | string (date-time) | null | When this version became live |
superseded_at | string (date-time) | null | When a later version replaced it |
created_at | string (date-time) | When this version was recorded |