API Reference
Julia automatically exposes plugin logic as RESTful endpoints via its built-in Scalar integration. This section provides an overview of how the API system works and how to interact with your deployed plugins.
Base URL
All endpoints are accessible under your base domain or IP:
If Scalar UI is enabled, you can explore, test, and document APIs directly via:
Authentication
By default, Julia supports Bearer token-based authentication:
You can configure schemes via MapScalarApiReference() in Program.cs.
Standard Plugin Endpoint
Each plugin exposes a single endpoint:
The request body should be JSON, and the response will be a JSON object returned by the plugin runtime.
Example: quantum_oracle
Sample Response:
Plugin List (Examples)
| Plugin Name | Endpoint | Description |
|---|---|---|
| quantum_oracle | /api/quantum-oracle | Forecasts token fate using quantum data |
| reinforcement_learning_plugin | /api/reinforcement-learning | Suggests actions via AI agent |
| arithmetic_agent | /api/arithmetic-agent | Projects supply metrics for tokens |
| zero_knowledge_voting | /api/zero-knowledge-voting | Anonymous voting using zk-proofs |
| permission_enforcer | /api/permission-enforcer | Checks if an action is permitted |
| ai_shiller_rating | /api/ai-shiller-rating | Evaluates shill content potential |
Error Handling
Julia returns structured error responses:
Errors can come from:
- Malformed input
- Unauthorized request
- Plugin runtime exceptions
Try It Out
Use the Scalar UI to send requests directly from your browser. It supports:
- Auto-generated docs
- Auth header injection
- Test request interface
- JSON schema validation
SDKs (Coming Soon)
Julia will support automatic client generation for:
- TypeScript (fetch, axios)
- Python (requests)
- C# (.NET HttpClient)
- Go (native net/http)
By exposing plugins as clean, stateless, versioned APIs — Julia lets you treat your infrastructure like a composable service mesh, ready for automation, orchestration, and public access.