This documentation covers the REST APIs and WebSocket protocols exposed by the csasq NODES edge worker runtime. All endpoints are strictly scoped under /api/v1.
Because these nodes run on publicly addressable IPv4/IPv6 space without a AI Platform overlay, application-level security is critical. Every request MUST be authenticated using a statically provisioned Bearer token.
Authorization: Bearer <STATIC_NODE_TOKEN>
The API adheres to standard HTTP status codes. All error responses return a uniform JSON structure.
{
"error": {
"code": "unauthorized",
"message": "Invalid or missing Bearer token.",
"request_id": "req_88ab29f1"
}
}
| Status Code | Description |
|---|---|
401 Unauthorized | Missing or invalid token. |
403 Forbidden | Valid token, but lacks scope (e.g., trying to unload a locked model). |
422 Unprocessable Entity | Validation error in JSON payload. |
429 Too Many Requests | Exceeded rate limits (Max 50 HTTP req/sec). |
503 Service Unavailable | Node is currently restarting its ONNX runtime. |