CrownPanel's API allows you to manage your VPS programmatically - including actions like power control, hostname changes, snapshot management, and more.
POST method to https://api.crownpanel.comYou can use the API with:
curlIdeal for automation, integration into management panels, or performing bulk operations across multiple VPS instances.
Use this API to retrieve all VPS instances associated with your CrownPanel account.
| Key | Variable | Description | Required |
|---|---|---|---|
API_KEY |
YOUR_API_KEY |
Replace YOUR_API_KEY with your actual API key provided in "Account Settings", under the API section |
â Yes |
QUERY |
list_vms |
Fixed value: must be "list_vms". |
â Yes |
â
If your API_KEY is valid, you would get output consisting of the information VPSes under your account.
{"vmid":"1234","status":"Offline","hostname":"test.vps.com","ipaddress":"123.123.123.123","location":"Frankfurt, Germany","virtualization":"KVM","ram":"6144","hdd":"50","cpu":"6","bandwidth":"1024"}
â If your API_KEY is invalid, you would get the following output,
{"query_status":"invalid","query_result":""}
If you prefer to use another language or environment, here are examples for PHP, Python and Node.js:
âī¸ Install (only once): Required to install necessary libraries before running the code.
âī¸ Install (only once): Required to install necessary libraries before running the code.
Need help? Visit our Support Portal or reach out via our live chat.