Prompts
Get prompt history
List metadata for an agent’s saved prompt versions, newest first.
GET
Returns metadata for every saved prompt version for one agent, ordered by
createdAt descending. The response does not include prompt section arrays.
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. Pass a returned
id to Get prompt version to fetch that version’s full merged prompt object.Headers
string
required
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs read scope.Path parameters
string
required
Agent ID whose prompt history you want to read. Use List agents to get the
botId.Response
Returns a top-level array of prompt-version metadata objects, newest first.string
Prompt version ID. Pass this value as
promptId to Get prompt version.string
Agent ID the saved version belongs to.
string
ISO 8601 timestamp for when the prompt version was created.
string
Creator identifier recorded for the saved version.
Errors
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.

