> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get prompt draft version

> Fetch one exact stored prompt draft version for review.

Returns one stored prompt lifecycle version for an agent. Use this route to
review the complete prompt arrays and metadata for a draft before publishing
it.

Unlike [Get prompts](/en/api-reference/get-prompts), this route does not merge
the current prompt with the workspace template. It returns the exact stored
version identified by `versionId`.

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token containing your Fini workspace API key. Format: `Bearer fini_...`
  The key needs `read` scope.
</ParamField>

## Path parameters

<ParamField path="id" type="string" required>
  Agent ID that owns the prompt version.
</ParamField>

<ParamField path="versionId" type="string" required>
  Prompt lifecycle version ID returned by
  [Create prompt draft version](/en/api-reference/create-prompt-draft-version).
</ParamField>

## Response

<ResponseField name="id" type="string">
  Prompt lifecycle version ID.
</ResponseField>

<ResponseField name="promptId" type="string">
  Prompt record ID this lifecycle version is based on.
</ResponseField>

<ResponseField name="botId" type="string">
  Agent ID that owns the version.
</ResponseField>

<ResponseField name="versionNumber" type="number">
  Agent-specific lifecycle version number.
</ResponseField>

<ResponseField name="status" type="DRAFT | PUBLISHED | ARCHIVED">
  Current lifecycle status.
</ResponseField>

<ResponseField name="parentVersionId" type="string | null">
  Published lifecycle version this draft was created from.
</ResponseField>

<ResponseField name="publishedAt" type="datetime | null">
  Publication timestamp. Draft versions return `null`.
</ResponseField>

<ResponseField name="hcPlanningPrompt" type="PromptSection[]">
  Exact Planning Prompt sections stored on the version.
</ResponseField>

<ResponseField name="hcGuidelinePrompt" type="PromptSection[]">
  Exact Main Guidelines sections stored on the version.
</ResponseField>

<ResponseField name="hcChannelPrompt" type="PromptSection[]">
  Exact Channel Prompt sections stored on the version.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-prompt/versions/9c59b2df-5d5f-4c9e-a070-9ac3c2b1b24e/public' \
    --header 'Authorization: Bearer fini_your_api_key'
  ```
</RequestExample>

## Errors

<AccordionGroup>
  <Accordion title="401 Unauthorized" icon="lock">
    The API key is missing, malformed, revoked, or invalid.
  </Accordion>

  <Accordion title="403 Forbidden" icon="shield-halved">
    The API key does not include `read` scope.
  </Accordion>

  <Accordion title="404 Not Found" icon="ghost">
    The version does not exist for this agent.
  </Accordion>

  <Accordion title="406 Not Acceptable" icon="circle-question">
    The agent belongs to a different workspace.
  </Accordion>
</AccordionGroup>
