Get prompt history
Prompts
Get prompt history
List saved prompt versions for one agent, newest first.
GET
Get prompt history
Returns every saved prompt version for one agent, ordered by
createdAt descending.
This history is agent-specific. It does not synthesize the workspace template as a history entry, so agents with no saved prompt versions return an empty array rather than a template row.
Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs read scope.Path parameters
Agent ID whose prompt history you want to read. Use List agents to get the
botId.Response
Returns a top-level array of mergedPrompt objects, newest first.
Errors
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
The API key does not include the
read scope required for this route.404 Not Found
404 Not Found
The agent ID does not exist.
406 Not Acceptable
406 Not Acceptable
Current controller behavior: if the agent belongs to a different workspace, this route returns
406 with an invalid-agent message rather than 403.500 Internal Server Error
500 Internal Server Error
Fini failed while loading prompt history from storage.

