Skip to content

The Server Management API exposes utilities for inspecting the caller’s IP environment, reading cached platform-wide social counters, and executing or enumerating commands on rented servers. Use these endpoints to discover which commands are available on a given server, execute them synchronously or asynchronously, and surface platform-level metrics to end users.

Retrieves information about the caller’s IP address, including geolocation and network details.

This endpoint takes no parameters.

Terminal window
curl -X GET https://api.hoody.com/api/v1/ip

Returns cached counters for the public Hoody social channels: GitHub stars, Telegram members, Discord members (total + currently online), X followers, and LinkedIn followers.

Values are persisted to disk (auto.json) and refreshed in the background (default every 10 minutes), so the endpoint is cheap, has no upstream rate-limit risk, and survives process restarts even when upstreams are unreachable. A separate overrides.json file lets operators pin any field to a manually chosen value (per-field; the refresher never touches that file).

A field is null only when no value has ever been persisted for it (e.g. first boot before the first successful refresh). Once populated it stays populated until manually cleared.

No authentication is required.

This endpoint takes no parameters.

Terminal window
curl -X GET https://api.hoody.com/api/v1/meta/social-stats

GET /api/v1/servers/{serverId}/available-commands

Section titled “GET /api/v1/servers/{serverId}/available-commands”

Returns the list of commands available for execution on a given server, optionally filtered by category and maximum acceptable risk level.

NameInTypeRequiredDescription
serverIdpathstringYesServer ID to get available commands for
categoryquerystringNoFilter by command category
risk_levelquerystringNoFilter by maximum risk level. Allowed values: low, medium, high, critical
Terminal window
curl -X GET "https://api.hoody.com/api/v1/servers/507f1f77bcf86cd799439012/available-commands?category=system&risk_level=medium"

POST /api/v1/servers/{serverId}/execute-command

Section titled “POST /api/v1/servers/{serverId}/execute-command”

Executes a predefined command on a server. The command can be referenced either by its command_id (24-character hex) or by its command_slug (lowercase alphanumeric and hyphens). One of the two must be supplied.

NameInTypeRequiredDescription
serverIdpathstringYesServer ID to execute command on
FieldTypeRequiredDefaultDescription
command_idstringNoCommand ID to execute. Pattern: ^[0-9a-f]{24}$. Provide this or command_slug.
command_slugstringNoCommand slug to execute. Pattern: ^[a-z0-9-]+$. Provide this or command_id.
parametersobjectNoParameters for command template processing
waitbooleanNotrueWait for command completion before returning
timeoutnumberNoCommand timeout in seconds (must be at least 1, at most 7200, and cannot exceed the command’s max_timeout)
confirmation_tokenstringNoConfirmation token for high-risk commands
{
"command_slug": "restart-service",
"parameters": {
"service_name": "nginx"
},
"wait": true,
"timeout": 300
}
Terminal window
curl -X POST "https://api.hoody.com/api/v1/servers/507f1f77bcf86cd799439012/execute-command" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"command_slug": "restart-service",
"parameters": { "service_name": "nginx" },
"wait": true,
"timeout": 300
}'