WRLD Hosting Docs

API reference and example calls for runtime management.

Endpoints

Read current runtime state
GET /api/runtime/status
Start runtime
POST /api/runtime/start
Stop runtime
POST /api/runtime/stop
Restart runtime
POST /api/runtime/restart
Deploy (stub)
POST /api/runtime/deploy
Body: { "projectName": "my-app", "gitRef": "main" }

cURL Examples

curl -s http://localhost:3000/api/runtime/status | jq

curl -X POST http://localhost:3000/api/runtime/start

curl -X POST http://localhost:3000/api/runtime/restart

curl -X POST http://localhost:3000/api/runtime/deploy   -H "Content-Type: application/json"   -d '{"projectName":"wrld-hosting","gitRef":"main"}'
Note: deploy is a stub in this build. Wire it to your orchestrator later.