Returns JSON array of users matching the given filters, if any. (Filterable)
Request:
HTTP Method: GET | POST
URI: http(s)://<host>:<port>/api/users
Headers:
Content-Type: application/json
Token: <token-set-in-config> [REQUIRED]
If filtering with POST request the user must supply the filters JSON object, it can be empty but you can also just use a simpler GET request with no filter data.
Note: You can use multiple filter props (as shown below) and and they will be treated as a logical AND.
Returns a JSON array of xlines, with or without filtering.
Request:
HTTP Method: GET | POST
URI: http(s)://<host>:<port>/api/xlines
Headers:
Content-Type: application/json
Token: <token-set-in-config> [REQUIRED]
If filtering with POST request the user must supply the filters JSON object, it can be empty but you can also just use a simpler GET request with no filter data.
Note: You can use multiple filter props (as shown below) and and they will be treated as a logical AND.
Returns a JSON array of channels on the server. You can also filter this list by name you can match using glob patterns.
Request:
HTTP Method: GET | POST
URI: http(s)://<host>:<port>/api/channels
Headers:
Content-Type: application/json
Token: <token-set-in-config> [REQUIRED]
If filtering with POST request the user must supply the filters JSON object, it can be empty but you can also just use a simpler GET request with no filter data.
m_httpd_api
Add a nice json api to InspIRCd for easy communication with a web front-end.
Adds the following API requests:
/api/general
Returns a JSON object with some basic general server, network, user and oper information.
Request:
Response
/api/server
Returns a JSON object containing general information on the server, network, and its uptime.
Request:
Response:
/api/users
Returns JSON array of users matching the given filters, if any. (Filterable)
Request:
If filtering with
POST
request the user must supply thefilters
JSON object, it can be empty but you can also just use a simplerGET
request with no filter data.Note: You can use multiple filter props (as shown below) and and they will be treated as a logical
AND
.Response: JSON array of users matching given filters.
/api/xlines
Returns a JSON array of xlines, with or without filtering.
Request:
If filtering with
POST
request the user must supply thefilters
JSON object, it can be empty but you can also just use a simplerGET
request with no filter data.Note: You can use multiple filter props (as shown below) and and they will be treated as a logical
AND
.Response:
/api/server-list
Returns a list of all servers connected to this network.
Request:
Response:
/api/commands
Returns a JSON array list of commands and their use count.
Request:
Response:
/api/channels
Returns a JSON array of channels on the server. You can also filter this list by name you can match using glob patterns.
Request:
If filtering with
POST
request the user must supply thefilters
JSON object, it can be empty but you can also just use a simplerGET
request with no filter data.Response:
/api/modules
Returns a JSON array of loaded modules on the server.
Request:
Response:
/api/motd
Returns a JSON array of the server motd.
Request:
Response: