Health & Languages#

GET /api/health#

Platform health check. Returns current status and capacity information.

curl -s "https://api.rustbox.sh/api/health" \
  -H "X-API-Key: rb_live_your_key_here" | jq
{
  "status": "ok",
  "enforcement_mode": "strict",
  "workers": 4,
  "queue_depth": 2
}
FieldWhat it tells you
statusok when rustbox is healthy
enforcement_modestrict means every protection is on
workersHow many workers are ready to run code
queue_depthPending submissions - useful for client-side backoff

GET /api/health/ready#

Is rustbox ready? Returns 200 when it can take runs and run them with every protection on. Returns 503 when it is not ready.

Use this endpoint for health checks in your integration.

GET /api/languages#

curl -s "https://api.rustbox.sh/api/languages" \
  -H "X-API-Key: rb_live_your_key_here" | jq
["python", "c", "cpp", "java", "javascript", "typescript", "go", "rust"]

Returns the list of languages currently available on the platform. Use this for validating input before submitting.