API Reference

Integrate your applications with the Omega AI REST API.

Authentication

All API requests require a Bearer token. Generate one from your dashboard settings.

curl -H "Authorization: Bearer <TOKEN>" https://api.craftai-gameserv.com/v1/servers

Server Management

Create, start, stop, and manage your Minecraft servers programmatically.

POST /v1/servers { "name": "MySrv", "plan": "nexus", "version": "paper-1.21" }

Telemetry & Metrics

Query real-time TPS, RAM, CPU, and player metrics for any server.

GET /v1/servers/:id/metrics?range=1h

Rate Limiting

The API is rate-limited to 120 requests per minute. Exceeding this will return a 429 status.