You can use the DatHost API to automate creation/deletion and control of servers if you for example want to integrate our game servers into your service. The API is a RESTful HTTP API which means that all interactions are made using regular HTTP requests, you can even try out the functionality in your web browser below.
To authenticate with our API use HTTP basic authentication with login email and password. You can either send the basic auth header with every request or store the cookie you get back from a request and use that instead for subsequent requests. By default all actions are done against the account you authenticate to, if you are invited to another account you can add the HTTP header Account-Email: <email> with the login email of the account which you like to do the action on.
This is a fully working Python program using the requests module which starts a server:
import requests requests.post('https://dathost.net/api/0.1/game-servers/54f55784ced9b10646653aa9/start', auth=('email@example.com', 'secretPassword'))
If you have any questions or suggestions get in touch with firstname.lastname@example.org