curl -X POST "https://api.helicone.ai/v1/prompt-2025/query/environment-version" \ -H "Authorization: Bearer $HELICONE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "promptId": "prompt_123", "environment": "production" }'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#
The unique identifier of the prompt
The environment to query (e.g., "production", "staging", "development")
Response#
Unique identifier of the prompt version
The model specified in the prompt
The ID of the parent prompt
The major version number
The minor version number
The commit message for this version
The environment this version is assigned to
ISO timestamp when the version was created
S3 URL where the prompt body is stored
