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"
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/query/version', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
promptVersionId: "version_456"
}),
});
const version = await response.json();
{
"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"
}
Prompts
Get Prompt Version
Retrieve a specific prompt version with its content
POST
/
v1
/
prompt-2025
/
query
/
version
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"
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/query/version', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
promptVersionId: "version_456"
}),
});
const version = await response.json();
{
"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"
}
Retrieves detailed information about a specific prompt version, including the full prompt body content.
Request Body
Response
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"
}'
const response = await fetch('https://api.helicone.ai/v1/prompt-2025/query/version', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HELICONE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
promptVersionId: "version_456"
}),
});
const version = await response.json();
{
"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"
}
Was this page helpful?