Modbot Docs
APIAPI referenceAnalytics

Set when an instance wants a moderator

PUT/api/analytics/team/people

How many people in one group instance mean it wants a moderator in it: the head count that makes an hour busy in the Moderation tab's cover, and the bar its list of gaps starts at. From 1 to 100; 3 until it is changed.

Needs the ManageSettings permission.

AuthorizationBearer <token>

An API key, made on Settings, API keys. Every key starts with mbk_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://example.com/api/analytics/team/people" \  -H "Content-Type: application/json" \  -d '{    "people": 0  }'
{  "people": 0}

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.

Get team analytics GET

The Stats page's Moderation tab: is moderation keeping up, and is the team OK? Actions on people (instance kicks, warns, bans, removals, join requests turned away) and door work and admin (invites, approvals, unbans, role changes), counted apart and never added together, from daily totals. The caller's own numbers (`you`, by their linked VRChat account) beside the team's middle (`middle`, left out below four active moderators). Each moderator's own numbers (`moderators`) and who left an instance last (`coverageGaps[].lastModerator`) need ViewAuditLog as well; without it `canSeeEachModerator` is false, `moderators` is empty and `lastModerator` is null. Coverage gaps are stretches when people were in a group instance and no moderator was, from the companion's presence reports. A moderator is present when a paired client is reporting from the instance or when somebody recognised as a moderator (holds a role with moderation permissions, or has taken a moderation action) is seen there. Moderators without the client are not seen at all. `cover` lays them over the hours of the week (168 buckets, Monday 00:00 UTC first): hours when a group instance held at least `people` people by VRChat's head count, those a gap overlapped, and those no companion reported from. `people` defaults to the saved setting. `waits` gives the middle wait of join requests (request to approval or rejection), AutoMod flags (flagged to dismissed or confirmed) and reviews (opened to closed), over the decisions made in the range. `actedOnAgain` counts people acted on who had been acted on within 30 days before; `bansLifted` counts the bans in the range, those at least 30 days old (`oldEnough`) and how many of those were lifted within 30 days, and the reasons given on case files lifted in the range. Needs the `ViewAnalytics` permission.

Get world analytics GET

Worlds: which of our worlds actually get used? For each world: the group instances Modbot saw opened, how long at least one was open, and the most people VRChat counted in one, longest time open first. Beside them, time people were seen, distinct visitors and audit-log instance creates, plus visitors per day per world from daily totals. Time seen and visitors come from presence reports, which exist only while a moderator's companion is in the instance. Needs the `ViewAnalytics` permission.