API Reference
CodeBeaker provides RESTful API and WebSocket endpoints for code execution.
Endpoints
REST API
- POST /api/execute - Execute code once
- GET /api/execute/:id/status - Get execution status
- GET /api/languages - List supported languages
WebSocket API (JSON-RPC 2.0)
- ws://localhost:5039/ws/jsonrpc - WebSocket endpoint
- Supports real-time streaming execution
Health Checks
- GET /health - Overall health status
- GET /health/ready - Readiness probe
- GET /health/live - Liveness probe
- GET /health/startup - Startup probe
Metrics
- GET /metrics - Prometheus metrics
For detailed API documentation, see Usage Guide.