Skip to main content
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

The API key is missing, malformed, revoked, or invalid.
The API key does not include the read scope required for this route.
The agent ID does not exist.
Current controller behavior: if the agent belongs to a different workspace, this route returns 406 with an invalid-agent message rather than 403.
Fini failed while loading prompt history from storage.