Customer API
Control your servers with code
Query products and prices, order with credit, fetch access data, start, reinstall and back up servers. Every key only has the rights you choose.
What you get done with the API
The API covers your account, ordering and server management. You grant separate rights for each area.
-
Account
Read your account, credit and invoices, top up credit by invoice and look at your API calls.
-
Ordering
Query products and prices and order straight away with credit.
-
Services
List all your services and fetch the access data of new servers once.
-
Server
Check the status, start, stop, reboot and reinstall; set hostname, SSH key and password.
-
Metrics
Load, history, traffic and running tasks of your servers.
-
Backups
Create, restore and delete backups.
-
Network
IP addresses, reverse DNS, ISO drive and firewall.
-
Domains
Check availability and prices, register or transfer with credit, change nameservers, auth code and lock.
-
Reseller
Manage and assign end customers under your account, billing per end customer (white label).
Your first call in three steps
Check in the sandbox first, then send real calls.
-
Create a key
In the client area under Account, API keys you set a name, rights and allowed IPs. The key is shown exactly once.
-
Test it
Enter the key in the documentation and check it there, or call the API with curl.
-
Sandbox first
With the sandbox header, the API only checks keys and permissions and changes nothing. Then you send real calls.
Request
$ curl -s "$MJ_API/v1/ping" \
-H "Authorization: Bearer $MJ_KEY" \
-H "X-MJ-Sandbox: 1"
Response
{
"ok": true,
"client_id": 42,
"scopes": ["account:read", "services:read"],
"sandbox": true
}
$MJ_API is the address from the documentation, $MJ_KEY your key. With the header X-MJ-Sandbox: 1 the call changes nothing.
Secure from the start
A key can only do what you allow it to.
-
Rights per key
Read, order, control or reinstall servers: you only pick what the key needs.
-
Allowed IPs
Decide which addresses a key may be used from.
-
Shown only once
The key is shown exactly once when you create it. If you no longer need it, you revoke it.
-
Sandbox
With the header X-MJ-Sandbox: 1 the API checks key and rights but carries out nothing.
-
OpenAPI 3.1
All endpoints as a machine-readable description for Postman, Insomnia or client generators.
-
Calls at a glance
You read your previous API calls in the account area.
Requirements
You can use the API with a confirmed email address and at least one active service. We unlock new accounts once.
Test first, order later.
Test a server for 24 hours free of charge. With at least 5,00 € credit it starts right away, otherwise we approve your request.
Choose a package
Pick a test package and request it.
Start or approval
With credit right away, otherwise after our review. Your credit is not charged.
Test for 24 hours
Free of charge. Then you decide whether to keep the server.