The wire-format paths still use
/hc-prompt because that is the current controller contract. In this reference, we call them prompts because they manage the agent instructions you configure in the product.The current-prompt and legacy prompt-version read routes return a merged view: Fini overlays the agent’s saved prompt on the workspace template. Lifecycle-version routes under
/hc-prompt/versions instead return stored version content or metadata. Do not assume template helper fields are present on those responses.Reference pages
Get prompts
GET /v2/bots/{id}/hc-prompt/public - fetch the agent’s current merged prompt configuration.Get prompt history
GET /v2/bots/{id}/hc-prompt/history/public - list metadata for saved prompt versions.Get prompt version
GET /v2/bots/{id}/hc-prompt/{promptId}/public - fetch one saved prompt version as a merged prompt object.Update prompts
POST /v2/bots/{id}/hc-prompt/public - save a new prompt version for one agent.Create prompt draft version
POST /v2/bots/{id}/hc-prompt/versions/public - create a draft prompt version without publishing it.Get prompt draft version
GET /v2/bots/{id}/hc-prompt/versions/{versionId}/public - fetch one exact stored draft version for review.Publish prompt draft version
POST /v2/bots/{id}/hc-prompt/versions/{versionId}/publish/public - publish one reviewed draft version.Delete prompt draft version
DELETE /v2/bots/{id}/hc-prompt/versions/{versionId}/public - discard one unpublished draft version.List lifecycle versions
List drafts and published versions with current-publication and stale-draft metadata.
Restore as draft
Copy stored prompt content into a new draft without changing the live prompt.
Endpoint map
Prompt object
Prompt version ID. On read routes, this is the saved version ID when one exists, otherwise the template prompt ID.
PromptSection object
Present on merged read responses.
true means this section does not come from the default template.PromptSubsection object
The saved custom prompt text for this subsection. On merged read responses, this can be an empty string when
useDefault is true.Present on merged read responses. The default template text Fini would use if
useDefault is true.Whether this subsection should use the template prompt text instead of the custom
prompt value.Present on merged read responses.
true means this subsection does not come from the default template.If you want to edit prompts safely through the API, the simplest workflow is: call Get prompts, modify the returned arrays, then send those arrays back to Update prompts. That preserves section IDs and ordering.

