POST
/
v1
/
prompt-2025
/
query
/
total-versions
curl -X POST "https://api.helicone.ai/v1/prompt-2025/query/total-versions" \
  -H "Authorization: Bearer $HELICONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "promptId": "prompt_123"
  }'
{
  "totalVersions": 8,
  "majorVersions": 3
}
Retrieves statistics about the total number of versions and major versions for a specific prompt.

Request Body

promptId
string
required
The unique identifier of the prompt

Response

totalVersions
number
Total number of versions (major and minor) for this prompt
majorVersions
number
Total number of major versions for this prompt
curl -X POST "https://api.helicone.ai/v1/prompt-2025/query/total-versions" \
  -H "Authorization: Bearer $HELICONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "promptId": "prompt_123"
  }'
{
  "totalVersions": 8,
  "majorVersions": 3
}