Modbot Docs
APIAPI referenceSettings

Get data settings

GET/api/settings/data

Retention, measured storage, and what this deployment is running on. capacityBytes is an optional what-if input. It is not stored: nothing in Modbot behaves differently for having been told, so it is answered against rather than persisted.

AuthorizationBearer <token>

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

In: header

Query Parameters

capacityBytes?integer
Formatint64

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/settings/data"
{  "retention": {    "moderationFactRetentionDays": 0,    "presenceFactRetentionDays": 0,    "discordMessageRetentionDays": 0,    "memberReportRetentionDays": null  },  "storage": {    "bytes": 0,    "facts": 0,    "bytesPerFact": 0.1,    "factsPerDay": 0.1,    "observedDays": 0.1,    "confidence": "string",    "bytesPerDay": 0.1,    "capacityExhausted": null,    "measuredAt": "2019-08-24T14:15:22Z",    "history": [      {        "day": "2019-08-24",        "bytes": 0      }    ]  },  "deployment": {    "version": "string",    "commit": null,    "branch": null,    "platform": "string",    "platformEvidence": null,    "logFilesWritten": true  }}

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.