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 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
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"
}'
{
"id": "version_456",
"model": "gpt-4",
"prompt_id": "prompt_123",
"major_version": 1,
"minor_version": 2,
"commit_message": "Updated system prompt for better responses",
"environment": "production",
"created_at": "2024-01-15T10:30:00Z",
"s3_url": "https://s3.amazonaws.com/bucket/prompt-body.json"
}