Skip to content
Hoody.com

The Server Management API provides utilities for inspecting the caller’s network context, reading cached platform meta counters, and executing predefined commands on servers under your account. Use these endpoints to fingerprint incoming requests, surface live social counters on dashboards, and run safe, audited server actions without opening interactive SSH sessions.

All control-plane endpoints are served from https://api.hoody.com and authenticate with a Hoody bearer token.

Retrieves information about the caller’s IP address, including geolocation and network details resolved from the upstream ipinfo-style provider.

This endpoint takes no parameters.

Terminal window
curl -X GET "https://api.hoody.com/api/v1/ip" \
-H "Authorization: Bearer <token>"

Returns cached counters for the public Hoody social channels: GitHub stars, Telegram members, Discord members (total plus currently online), X followers, and LinkedIn followers. Values are persisted to disk 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 field is null only when no value has ever been persisted for it (for example, 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"

Server commands are predefined, audited actions that can be executed remotely on a server you have access to. Before executing a command, list the catalog for the target server to discover the command’s id, slug, parameter schema, risk level, and rate limits.

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 the specified server, optionally filtered by category or maximum 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" \
-H "Authorization: Bearer <token>"

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

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

Executes a predefined command on the specified server. Pass either command_id or command_slug to identify the command. High-risk commands require a confirmation_token. Set wait to false to receive an immediate 202 Accepted response with a log id instead of waiting for completion.

NameInTypeRequiredDescription
serverIdpathstringYesServer ID to execute command on
FieldTypeRequiredDefaultDescription
command_idstringNoCommand ID to execute. Mutually exclusive with command_slug; exactly one of the two is required. Must match ^[0-9a-f]{24}$.
command_slugstringNoCommand slug to execute. Mutually exclusive with command_id; exactly one of the two is required. Must match ^[a-z0-9-]+$.
parametersobjectNoParameters for command template processing
waitbooleanNotrueWait for command completion before returning
timeoutnumberNoCommand timeout in seconds, between 1 and 7200. Cannot exceed the command’s max_timeout.
confirmation_tokenstringNoConfirmation token for high-risk commands
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
}'