Repository navigation
Admin API
dxcufgb edited this page Oct 30, 2026
·
1 revision
The admin page's JSON API lives under /_admin/api/... and can be used from scripts.
- 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).
Relative to /_admin/api/:
GET statePOST worlds/rescanPUT worlds/<id>-
POST worlds/<id>/backup: 202; 409 while queued, turned off or unreadable DELETE worlds/<id>-
PUT settings:schedule,github,whenActive,foundry -
POST foundry-test:urloptional: without it the address in use PUT tokenPOST setup-testPUT notifyPOST notify/testPUT password-
GET/POST update POST logout
Dxcufgb's Workshop: every Foundry VTT project, video and changelog in one place · Support on Ko-fi · MIT License
Setting up
Using it
- How a Backup Works
- Restoring a World
- Installable World Backups
- Notifications and Daily Check
- Automatic Updates
Reference