The admin page's JSON API lives under /_admin/api/... and can be used from scripts.
Rules
- Every call but
POST /_admin/api/loginneeds the session cookie (401without a login). - Every change also needs the
X-CSRF-Tokenheader (from the login or state answer) andContent-Type: application/json. - A request with an unknown
Host/Originis refused (403, DNS rebinding). - Five failed logins lock the address out for five minutes, and more than 50 failed logins within 15 minutes from anywhere pause wrong passwords (the right password still gets in).
Routes
Relative to /_admin/api/:
GET statePOST worlds/rescanPUT worlds/<id>POST worlds/<id>/backup: 202; 409 while queued, turned off or unreadableDELETE worlds/<id>PUT settings:schedule,github,whenActive,foundryPOST foundry-test:urloptional: without it the address in usePUT tokenPOST setup-testPUT notifyPOST notify/testPUT passwordGET/POST updatePOST logout
This page mirrors the World Backup to Git wiki on GitHub.