curl -X POST https://api.helicone.ai/v1/prompt-2025/query/versions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"promptId": "prompt_abc123xyz"
}'
{
"data": [
{
"id": "version_ghi789rst",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 2,
"minor_version": 1,
"commit_message": "Updated temperature and added max_tokens",
"environments": ["production"],
"created_at": "2024-03-11T14:30:00Z",
"s3_url": "https://s3.amazonaws.com/..."
},
{
"id": "version_def456uvw",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 2,
"minor_version": 0,
"commit_message": "Major rewrite with new system prompt",
"environments": ["staging"],
"created_at": "2024-03-10T16:00:00Z",
"s3_url": "https://s3.amazonaws.com/..."
},
{
"id": "version_abc123xyz",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 1,
"minor_version": 0,
"commit_message": "Initial version",
"environments": [],
"created_at": "2024-03-10T12:00:00Z",
"s3_url": "https://s3.amazonaws.com/..."
}
],
"error": null
}
Retrieve all versions of a prompt
curl -X POST https://api.helicone.ai/v1/prompt-2025/query/versions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"promptId": "prompt_abc123xyz"
}'
{
"data": [
{
"id": "version_ghi789rst",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 2,
"minor_version": 1,
"commit_message": "Updated temperature and added max_tokens",
"environments": ["production"],
"created_at": "2024-03-11T14:30:00Z",
"s3_url": "https://s3.amazonaws.com/..."
},
{
"id": "version_def456uvw",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 2,
"minor_version": 0,
"commit_message": "Major rewrite with new system prompt",
"environments": ["staging"],
"created_at": "2024-03-10T16:00:00Z",
"s3_url": "https://s3.amazonaws.com/..."
},
{
"id": "version_abc123xyz",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 1,
"minor_version": 0,
"commit_message": "Initial version",
"environments": [],
"created_at": "2024-03-10T12:00:00Z",
"s3_url": "https://s3.amazonaws.com/..."
}
],
"error": null
}
Retrieves all versions of a specific prompt, optionally filtered by major version.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt
Use this file to discover all available pages before exploring further.
Show Prompt Version Object
curl -X POST https://api.helicone.ai/v1/prompt-2025/query/versions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"promptId": "prompt_abc123xyz"
}'
{
"data": [
{
"id": "version_ghi789rst",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 2,
"minor_version": 1,
"commit_message": "Updated temperature and added max_tokens",
"environments": ["production"],
"created_at": "2024-03-11T14:30:00Z",
"s3_url": "https://s3.amazonaws.com/..."
},
{
"id": "version_def456uvw",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 2,
"minor_version": 0,
"commit_message": "Major rewrite with new system prompt",
"environments": ["staging"],
"created_at": "2024-03-10T16:00:00Z",
"s3_url": "https://s3.amazonaws.com/..."
},
{
"id": "version_abc123xyz",
"prompt_id": "prompt_abc123xyz",
"model": "gpt-4o",
"major_version": 1,
"minor_version": 0,
"commit_message": "Initial version",
"environments": [],
"created_at": "2024-03-10T12:00:00Z",
"s3_url": "https://s3.amazonaws.com/..."
}
],
"error": null
}
/v1/prompt-2025/{promptVersionId}/prompt-body - Get prompt body for a specific version/v2/prompt-2025/query/version - Get version with body included/v1/prompt-2025/update/environment - Assign a version to an environment/v1/prompt-2025/remove/environment - Remove a version from an environment/v1/prompt-2025/query/environment-version - Get the version for a specific environment