Kuma for developers Early access API reference Manage keys

Build on Kuma

Read your server's levels, coins and moderation cases from your own code, hear about things the moment they happen, and reward members from your games, streams and sites.

What it looks like

Request
curl https://api.kumabot.xyz/v1/servers/YOUR_SERVER_ID/levels/leaderboard?limit=3 \
  -H "Authorization: Bearer kuma_sk_…"
Response
{
  "data": [
    { "rank": 1, "user": { "id": "01HZX…", "username": "honeybear", "avatar_url": "https://…" }, "xp": 48210, "level": 21, "xp_for_next_level": 48400 },
    { "rank": 2, "user": { "id": "01HZY…", "username": "kumafan", "avatar_url": null }, "xp": 39950, "level": 19, "xp_for_next_level": 40000 }
  ],
  "next_cursor": "eyJ2IjoxLCJzIjozOTk1MCwidSI6IjAxSFpZ4oCmIn0"
}

How it works