---
title: "Get Prompt Analytics"
method: GET
path: "/prompts/{id}/analytics"
tags: ["Analytics", "Prompts"]
---

# Get Prompt Analytics

`GET /prompts/{id}/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`.

## Path parameters

- `id` string, uuid, required — The prompt ID to get analytics for

## Response `200`

Prompt analytics retrieved successfully

- GetPromptAnalyticsResponse
  - `avgQualityIndex` number, nullable, required — Average conversation quality index across all conversations using this prompt.
  - `totalConversations` number, required — Total number of conversations using this prompt.
  - `lastUsedAt` string, nullable, 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.

## Other responses

- `403` — Requires paid plan
- `404` — Prompt not found
- `429` — Rate limit exceeded

## Changes

- **2026-05-01** `f52e699d4abf` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/greenflash-ai/apis/greenflash-api-reference/changes/prompts/:id/analytics/get.md)

---

[API](https://skmtc.dev/greenflash-ai/apis/greenflash-api-reference.md) · [All operations](https://skmtc.dev/greenflash-ai/apis/greenflash-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/greenflash-ai/greenflash-api-reference/revisions/c566e560677d/schema)
