These docs are for Server Density v1 - customers with account URLs ending in .com e.g. example.serverdensity.com. If your account URL ends with .io e.g. example.serverdensity.io then you are on v2 and should go to https://developer.serverdensity.com
The Server Density API is implemented over simple HTTP with JSON responses authenticated using basic HTTP auth. It allows you to manage most aspects of the service including retrieving your historical server monitoring data, current status and post back data to us without needing the agent.
All requests go through
https://api.serverdensity.com. You can also access without SSL, although this is not recommended.
All requests must access a specific API version, which is appended to the URL e.g.
Some methods use HTTP POST to pass parameters. These need to include the HTTP header:
Authentication is through Basic HTTP Auth against your Server Density account. Each user has the same permissions with access to the same devices and services as they do through the web UI.
Enable the API for a user
- Log into your Server Density account
- Click the Users tab then click Edit next to the user you wish to enable access for.
- Tick the Enable API box and clik the Save changes button.
We used to require a separate registration to obtain an API key in order to access the API. This proved to be unncessarily complicated so we have removed the need for keys and separate developer accounts.