Overview
The Server API provides endpoints for managing Modrinth Hosting servers, including creation, configuration, power management, and console access. All endpoints require authentication via JWT token.Authentication
All server API requests must include an Authorization header:Endpoints
Get Server
Retrieve detailed information about a specific server.The unique identifier of the server
Unique server identifier
Server display name
User ID of the server owner
Game type (e.g., “Minecraft”)
Server status:
installing, broken, available, or suspendedReason for suspension:
moderated, paymentfailed, cancelled, upgrading, or otherMod loader:
Forge, NeoForge, Fabric, Quilt, Purpur, Spigot, Vanilla, or PaperVersion of the mod loader
Minecraft version
SFTP username for file access
SFTP password for file access
SFTP host address
Datacenter location
Maximum number of backups allowed
Number of backups currently in use
Whether the server is a Medal (sponsored) server
ISO 8601 timestamp when Medal status expires
List Servers
Retrieve a paginated list of servers for the authenticated user.Number of servers to return per page (default: 20)
Number of servers to skip (default: 0)
Array of server objects (see Get Server response)
Check Stock Availability
Check if a server configuration is available in a specific region.Region shortcode (e.g., “us-east”, “eu-west”)
Number of CPU cores
Memory in megabytes
Swap space in megabytes
Storage space in megabytes
Number of available server slots with this configuration
Get Available Regions
Retrieve a list of all available hosting regions.Region identifier (e.g., “us-east”)
ISO country code
Human-readable region name
Latitude coordinate
Longitude coordinate
Availability zone
Power Management
Send Power Action
Control server power state.The unique identifier of the server
Power action:
Start, Stop, Restart, or KillConsole Access
Server console access is provided via WebSocket connections. See the WebSocket API documentation for details on:- Receiving real-time log output
- Sending console commands
- Monitoring server statistics
File Management
Get Filesystem Authentication
Obtain credentials for accessing a server’s filesystem via the Kyros API.The unique identifier of the server
Base URL for Kyros filesystem API (e.g., “node-xyz.modrinth.com/modrinth/v0/fs”)
JWT token for authenticating filesystem requests
listDirectory()- Browse files and foldersuploadFile()- Upload files with progress trackingdownloadFile()- Download filescreateFileOrFolder()- Create new files/directoriesdeleteFileOrFolder()- Delete files/directoriesmoveFileOrFolder()- Move or rename filesupdateFile()- Update file contents
Installing Mods
List Installed Mods
Get a list of all mods installed on a server.The unique identifier of the server
Mod file name
Modrinth project ID
Modrinth version ID
Mod display name
Mod version number
URL to mod icon image
Mod author/owner
Whether the mod is disabled
Whether the mod is currently being installed
Install a Mod
Install a mod or plugin from Modrinth.The unique identifier of the server
Modrinth project ID
Modrinth version ID
Content type:
mod or plugininstallation-result events.
Update a Mod
Update an existing mod to a new version.The unique identifier of the server
Path to the existing mod file to replace
Modrinth project ID
New Modrinth version ID
Delete a Mod
Remove a mod from the server.The unique identifier of the server
Path to the mod file to delete
Example: Complete Server Setup
Related Documentation
- WebSocket API - Real-time server events and console access
- Backups API - Server backup management
