Get prompt version
Prompts
Get prompt version
Fetch one saved prompt version for an agent.
GET
Get prompt version
Returns one saved prompt version as a merged view of that version plus the current workspace template.
Use Get prompt history to find saved
promptId values. Template sections missing from the saved version are included in this response with merged-read helper fields such as defaultPrompt and custom.Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs read scope.Path parameters
Agent ID that owns the prompt version. Use List agents to get the
botId.Saved prompt version ID returned by Get prompt history.
Response
Returns one mergedPrompt object.
Errors
400 Bad Request
400 Bad Request
The agent ID or prompt version ID is not a valid UUID.
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
The agent belongs to a different workspace, or the prompt version does not belong to the agent in the path.
500 Internal Server Error
500 Internal Server Error
Fini failed while loading the prompt version or workspace template.

