Skip to main content
GET
/
v1
/
anecdotes
/
stats
Get anecdote statistics
curl --request GET \
  --url https://api.yalg.ai/v1/anecdotes/stats \
  --header 'x-api-key: <api-key>'
{
  "total": 25,
  "used": 10,
  "unused": 15,
  "byStoryType": {
    "professional_stories": 12,
    "personal_stories": 8,
    "lesson_learned": 5
  },
  "byMood": {
    "inspiring": 10,
    "reflective": 8,
    "humorous": 4,
    "educational": 3
  },
  "highPriority": 8
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Response

Statistics retrieved successfully