Skip to content

Debug API

Will Hunt edited this page Dec 9, 2019 · 10 revisions

Documentation for the Debug API

(This section is a work in progress)

The Debug API allows administrators of a bridge to control the IRC bridge without having to restart the bridge, as well as perform maintenance functions such as cleaning up idle users or inspecting connected users.

All these endpoints presume you have access to the bridge and it's as_token.

Endpoints

GET /inspectUsers?regex={userRegex}

Request Parameters

  • userRegex A JS regex string which should match against MXIDs. E.g. @foobar_.*:matrix.org

Response format

{
  "users": {
    "@Half-Shot:half-shot.uk": [
      {
        "channels": [
          "#matrix"
        ],
        "dead": false,
        "server": "chat.freenode.net",
        "nick": "Half-Shot"
      }
    ],
  }
}
Clone this wiki locally