Modbot Docs

List log lines

GET/api/logs

Modbot's own log, newest first. level is the lowest level shown, so Warning gives warnings, errors and fatal lines. text matches the message and the exception, anywhere in either.

Outbound API traffic is not in this table. It is written to modbot_log_http_*.jsonl and to Seq, and there is far too much of it to keep for six months in the database.

Needs the ViewOperationalLog permission.

AuthorizationBearer <token>

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

In: header

Query Parameters

level?string
source?string
area?string
search?string

Also accepted as text.

from?string
Formatdate-time
to?string
Formatdate-time
before?integer
Formatint64
limit?integer
Formatint32

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/logs"
{  "lines": [    {      "id": 0,      "at": "2019-08-24T14:15:22Z",      "level": "string",      "message": "string",      "template": null,      "source": null,      "area": null,      "exception": null,      "properties": "string"    }  ],  "next": null,  "now": "2019-08-24T14:15:22Z"}

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.