cURL
curl --request GET \ --url https://server.promptwatch.com/api/v1/responses/sentiment-distribution \ --header 'X-API-Key: <api-key>'
[ { "sentiment": "<string>", "count": 123, "percentage": 123 } ]
Get sentiment distribution of LLM responses
API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.
Start date for data (YYYY-MM-DD)
End date for data (YYYY-MM-DD)
Default Response
Sentiment category (POSITIVE, NEGATIVE, NEUTRAL)
Number of responses with this sentiment
Percentage of total responses