Get prompts
Prompts
Get prompts
Fetch the current merged prompts for one agent.
GET
Get prompts
Returns the current prompt configuration for one agent as a merged view of the workspace template plus the agent’s latest saved prompt version.
If the agent has no saved prompt version yet, this route still returns prompt content by falling back to the workspace template. In that case, the metadata comes from the template prompt, but
botId is still the requested agent ID.Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs read scope.Path parameters
Agent ID whose prompts you want to read. Use List agents to get the
botId.Response
Returns one mergedPrompt object.
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 the prompt data from storage.

