sourhost API
Manage your servers from your own scripts, bots and CI: what the panel does, over HTTP and JSON with a personal API token.
Your first request
Create a token under Settings → API tokens, put it in SOURHOST_TOKEN and check access.
curl "https://sourhost.net/api/v1/me" \
-H "Authorization: Bearer $SOURHOST_TOKEN"Getting started
Base URL, authentication, tokens, errors, limits and AI assistants.
Base URL, authentication, request and response format.
Creating a token, giving it scopes and capping what it can spend.
The error format, HTTP statuses and the codes to go by.
How many requests you can send, how to retry purchases without paying twice, and how to get a price first.
Connecting sourhost to Claude, Cursor and other AI assistants to manage your servers in plain language.
Method reference
Every API method with parameters, responses, error codes and examples.
Profile, balance, summary and notification settings.
Balance history, purchases and top-up links.
Projects and their members.
The service list, renting, renewing and changing plans.
State, power, console, players, startup, access.
Listing, reading, writing, deleting and renaming files.
Backups and scheduled tasks.
FastDL details, compression and plan changes.
Tickets and replies.