API Reference
GET
get_server_listGet Server List
Get Server List is a GET request to https://api.sharkcluster.com/get_server_list in the Server Management section of the SharkCluster API. Fetches a paginated list of all servers owned by the user, including details about installed applications and IP addresses. It takes 4 parameters, all optional.
Request URL
GET
https://api.sharkcluster.com/get_server_listHow do you call Get Server List?
- 1Get a token from the login endpoint (POST /login) and send it as Authorization: Bearer <token>. See Login.
- 2Send a GET request to https://api.sharkcluster.com/get_server_list.
- 3Add the optional parameters only if you need them: page, limit, search and sortBy.
Request parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number for pagination (default: 1). |
limit | integer | Number of servers per page (default: 10). |
search | string | Search by server name or IP address. |
sortBy | string | Sort by name_asc, name_desc, date_asc, or date_desc. |
AuthorizationRequired | header | Bearer token for authentication (e.g., Bearer eyJ...). |
What does Get Server List return?
A successful call returns a JSON object with the fields result, message and data. Check that result is true in the body: like many SharkCluster endpoints, a failure can come back with HTTP 200 and result: false.
Request sample
const axios = require('axios');
axios.get('https://api.sharkcluster.com/get_server_list', {
params: { page: 1, limit: 10, sortBy: 'date_desc' },
headers: { 'Authorization': 'Bearer YOUR_TOKEN' }
})
.then(res => console.log(res.data.data.servers));
Response
{
"result": true,
"message": "Data Found",
"data": {
"servers": [
{
"id": "00000000-0000-4000-8000-000000000004",
"customerId": "00000000-0000-4000-8000-000000000002",
"provider": "digitalocean",
"instance_id": "100000001",
"web_server": "nginx",
"master_ftp": {
"password": "<redacted>",
"username": "master_hello"
},
"server_name": "hello",
"services": null,
"hosting_type": "digitalocean",
"disk_size": "1 GB",
"server_size": "s-1vcpu-1gb",
"server_memory": 1024,
"server_memory_unit": "MB",
"server_vcpus": 1,
"server_disk": 25,
"type": "Laravel",
"location": {
"id": "bangalore1",
"name": "Bangalore 1"
},
"monthly_cost": "6",
"yearly_cost": "72.00",
"osId": "ubuntu",
"ip_address": "203.0.113.1",
"server_status": 1,
"is_deleted": false,
"ssh_key": "00000000-0000-4000-8000-000000000005",
"backup_days": "7",
"caching_config": {
"Manual": false,
"Requrie1": false,
"require2": false,
"Profiling": false,
"RedisToggle": false,
"VarnishToggle": false,
"MemcachedToggle": false,
"max_clients_redis": "1000",
"eviction_policy_redis": "Allkeys-lru",
"max_memory_usage_redis": "512 MB",
"persistence_mode_redis": "AOF",
"max_connections_memcached": "1024",
"max_memory_usage_memcached": "512 MB",
"object_size_limit_memcached": "1 MB",
"profiling_frequency_varnish": "30 Sec",
"slab_growth_factor_memcached": "1.25",
"profile_data_retention_varnish": "7 Days"
},
"other_services_config": {
"SMTP": {
"status": "Inactive",
"max_heap": "512 MB",
"heap_usage": "0%"
},
"Database": {
"status": "Active",
"max_heap": "512 MB",
"heap_usage": "0%"
},
"RabbitMQ": {
"status": "Inactive",
"max_heap": "512 MB",
"heap_usage": "0%"
},
"Opensearch": {
"status": "Inactive",
"max_heap": "512 MB",
"heap_usage": "0%"
},
"Supervisor": {
"status": "Inactive",
"max_heap": "512 MB",
"heap_usage": "0%"
},
"Elasticsearch": {
"status": "Inactive",
"max_heap": "512 MB",
"heap_usage": "0%"
}
},
"general_settings": {
"schedule": "12",
"swapSize": "256 MB",
"autoBackup": false,
"autoCleanup": false,
"autoScaling": false,
"stopProtection": false,
"deleteProtection": false,
"maintenanceWindow": "Option 1"
},
"monitoring_settings": {
"Debug": false,
"Alerts": false,
"Manual": false,
"diskIo": false,
"Network": false,
"Database": false,
"cpuUsage": false,
"Profiling": false,
"ecpuUsage": "30 Sec",
"manualMode": false,
"memoryUsage": false,
"logStoragePath": "/var/log/newrelic.log",
"newRelicToggle": false,
"alertRecipients": "[email protected]",
"appResponseTime": "XX MS",
"blackfireToggle": false,
"alertThreshold80": "80%",
"alertThreshold85": "85%",
"profileRetention": "7 Days",
"subscriptionType": "Free",
"blackfireClientId": "****",
"alertThreshold1000": "1000 MS",
"newRelicLicenseKey": "****",
"profilingFrequency": "30 Sec",
"serverNameNewRelic": "hello",
"slowFunctionAlerts": false,
"blackfireClientToken": "****",
"slowFunctionThreshold": "200 MS",
"blackfireSubscriptionType": "Free"
},
"rootuser": null,
"rootpassword": null,
"createdAt": "2026-03-17T13:09:24.132Z",
"updatedAt": "2026-03-17T13:09:24.132Z",
"_id": "00000000-0000-4000-8000-000000000004",
"applications": [
{
"id": "00000000-0000-4000-8000-000000000006",
"customerId": "00000000-0000-4000-8000-000000000002",
"name": "helloapp",
"application_type": "00000000-0000-4000-8000-000000000007",
"application_frame": "00000000-0000-4000-8000-000000000007",
"application_value": "Laravel",
"db_type": "mysql",
"documentRoot": "/home/hello.sharkcluster.com/helloapp/htdocs",
"server": {
"_id": "00000000-0000-4000-8000-000000000004",
"id": "00000000-0000-4000-8000-000000000004",
"ip_address": "203.0.113.1",
"server_name": "hello",
"server_vcpus": 1,
"server_memory": 1024,
"server_disk": 25
},
"project": "668f685d08b224c511e6f492",
"database": {
"host": "localhost",
"name": "helloapp",
"user": "79c94638",
"password": "<redacted>"
},
"virtualHost": "http://hello_helloapp.sharkcluster.com",
"phpmyadmin_url": "http://203.0.113.1/phpmyadmin",
"staging_status": "not_launched",
"staging_url": null,
"application_master_name": null,
"application_master_password": null,
"php_version": null,
"composer_config": {},
"createdAt": "2026-03-17T13:09:24.169Z",
"updatedAt": "2026-03-17T13:09:24.169Z",
"appFrame": {
"icon": "upload/tech/laravel.svg"
},
"projectData": null,
"_id": "00000000-0000-4000-8000-000000000006",
"serverId": "00000000-0000-4000-8000-000000000004",
"application_icon": "http://localhost:8001/upload/tech/laravel.svg",
"ftp_user_count": 0
}
],
"appcount": 1,
"projrctcount": 0,
"projects": []
}
],
"totalCount": 1,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}Related Server Management endpoints
Stuck on an integration?
Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.