Skip to main content
Helicone OSS LLM Observability

Get Prompt Version by Environment

Retrieve a prompt version for a specific environment
1 min read
posthttps://api.helicone.ai/v1/prompt-2025/query/environment-version
posthttps://api.helicone.ai/v1/prompt-2025/query/environment-version

Retrieves the prompt version assigned to a specific environment (e.g., production, staging, development).

Request Body#

promptIdstringrequired#

The unique identifier of the prompt

environmentstringrequired#

The environment to query (e.g., "production", "staging", "development")

Response#

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

environmentstring#

The environment this version is assigned to

created_atstring#

ISO timestamp when the version was created

s3_urlstring#

S3 URL where the prompt body is stored