Skip to main content
GET
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, this route does not merge the current prompt with the workspace template. It returns the exact stored version identified by versionId.

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 that owns the prompt version.
string
required
Prompt lifecycle version ID returned by Create prompt draft version.

Response

string
Prompt lifecycle version ID.
string
Prompt record ID this lifecycle version is based on.
string
Agent ID that owns the version.
number
Agent-specific lifecycle version number.
DRAFT | PUBLISHED | ARCHIVED
Current lifecycle status.
string | null
Published lifecycle version this draft was created from.
datetime | null
Publication timestamp. Draft versions return null.
PromptSection[]
Exact Planning Prompt sections stored on the version.
PromptSection[]
Exact Main Guidelines sections stored on the version.
PromptSection[]
Exact Channel Prompt sections stored on the version.

Errors

The API key is missing, malformed, revoked, or invalid.
The API key does not include read scope.
The version does not exist for this agent.
The agent belongs to a different workspace.