Server

On this page, we'll dive into the different server action endpoints you can use to start, stop and restart your servers.

Perform actions on servers

You can perform actions on your servers using the following endpoints. Please note that you should not overload these endpoints with requests. If you need to perform multiple actions at once, please wait for the previous action to complete before sending a new request.


POST/v1/servers/{id}/start

Start server

This endpoint allows you to start your server if it is stopped.

Request

POST
/v1/servers/{id}/start
curl https://api.evotic.io/v1/servers/{id}/start \
  -H "Authorization: Bearer {token}"

Response

{
    "message": "Server started"
}

POST/v1/servers/{id}/stop

Stop server

This endpoint allows you to stop your server if it is running.

Optional attributes

  • Name
    force
    Type
    boolean
    Description

    Equivalent to pressing the power button on a physical machine.

Request

POST
/v1/servers/{id}/stop
curl https://api.evotic.io/v1/servers/{id}/stop \
  -H "Authorization: Bearer {token}" \
  -d force=false

Response

{
    "message": "Server stopped"
}

POST/v1/servers/{id}/restart

Restart server

This endpoint allows you to restart your server if it is running.

Request

POST
/v1/servers/{id}/restart
curl https://api.evotic.io/v1/servers/{id}/restart \
  -H "Authorization: Bearer {token}"

Response

{
    "message": "Server restarted"
}