Returns the total document count for each skill collection — master skills, sub-skills, and individual skills. Useful for verifying that a data import went through or just keeping an eye on how the catalogue is growing.
This is an admin-only route. You’ll need to pass your API key.
Your admin API key. Set this via the ADMIN_API_KEY environment variable on the server.
Response
How many top-level skill domains exist
How many sub-skill categories exist across all master skills
How many individual skills are in the catalogue in total
Examples
curl http://localhost:5000/api/admin/counts \
-H "x-api-key: supersecretadminkey123"
{
"master_skill_count": 8,
"sub_skill_count": 34,
"skill_count": 210
}
Don’t use your real ADMIN_API_KEY value in client-side code or paste it into public chat logs. Treat it like a password.