curl -X POST "https://api.helicone.ai/v1/prompt-2025/query/version" \ -H "Authorization: Bearer $HELICONE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "promptVersionId": "version_456" }'Get Prompt Version
Retrieve a specific prompt version with its content
1 min read
posthttps://api.helicone.ai/v1/prompt-2025/query/version
posthttps://api.helicone.ai/v1/prompt-2025/query/version
Retrieves detailed information about a specific prompt version, including the full prompt body content.
Request Body#
The unique identifier of the prompt version to retrieve
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 (e.g., "production", "staging")
ISO timestamp when the version was created
S3 URL where the prompt body is stored
