v28

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-013593344.3 KB
Analytics
Prompts

Get Prompt Analytics

Get computed analytics for a specific prompt, including quality metrics, usage statistics, and suggestion data.

Requires Growth+ plan or higher.

Returns:

  • Quality: Average conversation quality index
  • Usage: Total conversations and last used timestamp
  • Suggestions: Suggestion count, effective suggestion count (active versions only), and needs-review flag

Rate limited based on your plan's maxAnalysesPerHour.

get/prompts/{id}/analytics

Path parameters

idstring uuid required

The prompt ID to get analytics for

The prompt ID to get analytics for

Response

Prompt analytics retrieved successfully

avgQualityIndexnumber nullable required

Average conversation quality index across all conversations using this prompt.

totalConversationsnumber required

Total number of conversations using this prompt.

lastUsedAtstring nullable required

ISO 8601 timestamp of the most recent conversation using this prompt.

suggestionCountnumber required

Total number of suggestions from prompt analyses.

effectiveSuggestionCountnumber required

Suggestion count scoped to active versions only. Zero if the prompt is not part of an active version.

needsReviewboolean required

Whether the prompt has effective suggestions that need review.