Server Health API Documentation
curl -k -X GET \
-H "Authorization: Bearer TOKEN" \
https://HOST:PORT/api/v1/server-health
You can also use the javascript language to access wabapi, as shown in the following example:
<html>
<body>
<script>
var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (req.readyState == 4 && req.status == 200)
document.write("<pre>" + req.responseText + "</pre>");
}
req.open("GET", "https://HOST:PORT/api/v1/server-health", true);
req.setRequestHeader("Authorization", "Bearer TOKEN");
req.send(null);
</script>
</body>
</html>
All available Web API calls
- Authentication with token – suitable for individual requests
- Authentication with a username and password – suitable for maintaining a session to send multiple requests
- Login with username and password – suitable for individual requests
- Logout the current user – terminate the current session
- Getting user status – check the current user's authentication and session status
- Users API – retrieve user information
- Rooms API – retrieve room information
- Messages API – retrieve and send messages
- Comments API – retrieve and send comments on messages
- Attachments API – manage message attachments
- Events API – receive real-time updates about changes on the server
- Permissions API – retrieve user permissions in rooms
- Server Health API – check the health status of the Virola Server