Skip to main content
Helicone OSS LLM Observability

Get Prompt Versions

Retrieve all versions of a specific prompt
1 min read
posthttps://api.helicone.ai/v1/prompt-2025/query/versions
posthttps://api.helicone.ai/v1/prompt-2025/query/versions

Retrieves all versions of a specific prompt, optionally filtered by major version.

Request Body#

promptIdstringrequired#

The unique identifier of the prompt

majorVersionnumber#

Filter versions by specific major version number

Response#

Returns an array of prompt version objects.

idstring#

Unique identifier of the prompt version

modelstring#

The model specified in the prompt

prompt_idstring#

The ID of the parent prompt

major_versionnumber#

The major version number

minor_versionnumber#

The minor version number

commit_messagestring#

The commit message for this version

created_atstring#

ISO timestamp when the version was created

s3_urlstring#

S3 URL where the prompt body is stored (if applicable)