Skip to main content
GET
/
prompts
/
{id}
/
analytics
cURL
curl --request GET \
  --url https://www.greenflash.ai/api/v1/prompts/{id}/analytics \
  --header 'Authorization: Bearer <token>'
{
  "avgQualityIndex": 7.2,
  "totalConversations": 1250,
  "lastUsedAt": "2025-10-15T14:30:00Z",
  "suggestionCount": 5,
  "effectiveSuggestionCount": 3,
  "needsReview": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The prompt ID to get analytics for

Response

Prompt analytics retrieved successfully

avgQualityIndex
number | null
required

Average conversation quality index across all conversations using this prompt.

totalConversations
number
required

Total number of conversations using this prompt.

lastUsedAt
string | null
required

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

suggestionCount
number
required

Total number of suggestions from prompt analyses.

effectiveSuggestionCount
number
required

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

needsReview
boolean
required

Whether the prompt has effective suggestions that need review.