Overview
The Ascienth console API lets you manage your servers, networking, backups, billing, and team from your own scripts and tools. It covers the same actions that are available at https://vps.advinservers.com. All endpoints use this base URL:Authentication
1
Create an API key
Log into https://vps.advinservers.com and open the “API Keys” page. Create a key, select the team it can access, and choose the permissions it needs.
2
Copy the key
Copy the key as soon as it is created. It cannot be shown again. If you lose it, revoke it and create a new one.
3
Send the key with every request
Send the key as a bearer token, and ask for JSON responses:
Your First Request
This request lists the servers in the key’s team. It needs theserver.read permission.
Permissions
Give each key only the permissions it needs. Each endpoint page lists the permission it requires. A request made without the required permission is rejected.Team Scope
Each key can only access resources in the team selected when the key was created. This includes servers, snapshots, backups, firewall groups, images, SSH keys, scripts, networks, and addresses. Resources in other teams return404 Not Found, so create a separate key for each team.
Restricted Actions
API keys cannot do the following, even with every permission. Log into https://vps.advinservers.com in your browser to do them:- Create, edit, or revoke API keys
- Edit the IP groups that restrict API keys
- End signed-in sessions
- Change two-factor authentication
- Change your account’s email address
- Accept or decline team invitations
- Switch or leave a team
IP Restrictions
You can restrict a key to one or more IP groups. Requests from any other address are rejected. We recommend this for keys used from servers with a fixed IP address.Requests and Responses
- Single records are returned as JSON objects. Collections are returned as JSON arrays unless the endpoint supports pagination.
- Timestamps use ISO 8601 format in UTC.
- Error responses include a
messagefield. Validation errors also include anerrorsobject with the problem for each field. - Examples in this reference use fictional data.
Audit Log
Every API request, including reads, is recorded in your account’s audit log along with the key that made it.Like the rest of our services, the API is unmanaged. We cannot write or debug your integration for you. If an endpoint behaves differently from this reference, please open a ticket at https://clients.advinservers.com/contact.php.