Presets
API Methods¶
| Method | Action | Description |
|---|---|---|
groups | get groups | Returns a list of preset groups |
info | get information | Returns a list of presets for resellers with prices in specified currencies |
list | get list | Returns a list of available presets with filtering by location and access rights |
search | search servers | Searches for suitable servers for a specific preset by name |
show | show preset | Returns detailed information about a preset by ID or name |
presets/groups¶
Returns a list of preset groups
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: groups |
| - | - | - | No other parameters |
presets/info¶
Returns a list of presets for resellers with prices in specified currencies
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: info |
| currencies | ❌ | string | Comma-separated list of currencies (e.g., EUR,USD). If not specified, EUR and USD are used by default |
Example of a successful response
Failure response
{
"code": -1,
"message": "Invalid currency format",
"description": "Error processing the currencies parameter (invalid format)"
}
presets/list¶
Returns a list of available presets with filtering by location and access rights
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list |
| location | ❌ | string | Location code (e.g., NL, DE) or location ID |
| token | ❌ | string | Authorization token for accessing private data (affects the display of the total field) |
Example of a successful response
Failure response
{
"code": -1,
"message": "No presets found",
"description": "Returned if the presets_list function returned -1 (no data)"
}
presets/search¶
Searches for suitable servers for a specific preset by name
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: search |
| name | ✅ | string | Preset name to search for |
| scope | ❌ | string | Search scope: free or all |
| location | ❌ | string | Location code |
| token | ✅ | string | Authorization token |
Example Request
Example of a successful response
presets/show¶
Returns detailed information about a preset by ID or name
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: show |
| id | ❌ | int | Preset ID |
| name | ❌ | string | Preset name |
| limit | ❌ | int | Limit on the number of records returned |
| token | ❌ | string | Authorization token for checking country restrictions |
Example of a successful response
{
"result": "OK",
"action": "show",
"presets": [
{
"id": 1,
"name": "Premium VPS",
"description": "High performance server",
"cpu": "4 vCPU",
"ram": "8 GB",
"hdd": "100 GB NVMe",
"gpu": "NVIDIA T4",
"location": "DE",
"price": {
"EUR": 49.99,
"USD": 54.99
},
"tags": [
{
"id": 10,
"name": "gaming"
},
{
"id": 11,
"name": "ai"
}
],
"active": true
}
]
}