API Reference Overview
Welcome to the comprehensive API documentation for Nephio O-RAN Claude Agents. This reference provides detailed information about all available APIs, including REST endpoints, gRPC services, event systems, and data schemas.
API Categories
🌐 REST API
RESTful HTTP endpoints for managing agents and operations.
- Base URL:
https://api.nephio-oran.example.com/v1
- Authentication: Bearer token / OAuth 2.0
- Format: JSON
- Rate Limiting: 1000 requests/minute
⚡ gRPC API
High-performance gRPC services for real-time operations.
- Protocol: HTTP/2
- Encoding: Protocol Buffers
- Streaming: Bidirectional streaming supported
- Load Balancing: Client-side load balancing
📢 Event System
Event-driven architecture for asynchronous operations.
- Event Bus: Kubernetes Events / CloudEvents
- Format: CloudEvents 1.0
- Delivery: At-least-once guarantee
- Ordering: Partition-based ordering
📋 Data Schemas
Comprehensive data models and validation schemas.
- Format: JSON Schema / OpenAPI 3.0
- Validation: Strict schema validation
- Versioning: Semantic versioning
- Evolution: Backward compatibility guaranteed
Quick Start
Authentication
All API requests require authentication. Obtain an API token:
kubectl create token nephio-agent -n nephio-system
Example Request
curl -X GET \
https://api.nephio-oran.example.com/v1/agents \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"
Example Response
{
"agents": [
{
"id": "orchestrator-001",
"name": "nephio-oran-orchestrator",
"status": "running",
"version": "1.0.0",
"lastHeartbeat": "2025-08-22T10:30:00Z"
}
],
"total": 1,
"page": 1,
"pageSize": 20
}
API Versioning
We follow semantic versioning for our APIs:
- v1: Current stable version
- v2-beta: Next version in beta
- Deprecation Policy: 6 months notice before removal
- Backward Compatibility: Maintained within major versions
Rate Limiting
API rate limits are enforced per client:
Tier | Requests/Minute | Burst |
---|---|---|
Free | 100 | 200 |
Standard | 1000 | 2000 |
Enterprise | 10000 | 20000 |
Rate limit headers:
X-RateLimit-Limit
: Maximum requestsX-RateLimit-Remaining
: Remaining requestsX-RateLimit-Reset
: Reset timestamp
Error Handling
Standard error response format:
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Agent with ID 'xyz' not found",
"details": {
"id": "xyz",
"type": "agent"
},
"timestamp": "2025-08-22T10:30:00Z",
"requestId": "req-123456"
}
}
Common error codes:
400
: Bad Request401
: Unauthorized403
: Forbidden404
: Not Found429
: Too Many Requests500
: Internal Server Error
SDKs and Libraries
Official SDKs available:
Go SDK
import "github.com/nephio-oran/claude-agents-sdk-go"
client := sdk.NewClient("YOUR_TOKEN")
agents, err := client.Agents.List(ctx)
Python SDK
from nephio_oran_sdk import Client
client = Client(token="YOUR_TOKEN")
agents = client.agents.list()
JavaScript/TypeScript SDK
import { NephioOranClient } from '@nephio-oran/sdk';
const client = new NephioOranClient({ token: 'YOUR_TOKEN' });
const agents = await client.agents.list();
API Playground
Try our APIs directly in the browser:
OpenAPI Specification
Download the complete OpenAPI specification:
GraphQL API (Coming Soon)
We're developing a GraphQL API for more flexible querying:
query GetAgents {
agents(status: RUNNING) {
id
name
metrics {
cpu
memory
}
}
}
WebSocket API
Real-time updates via WebSocket:
const ws = new WebSocket('wss://api.nephio-oran.example.com/v1/ws');
ws.onmessage = event => {
const data = JSON.parse(event.data);
console.log('Agent update:', data);
};
Webhooks
Configure webhooks for event notifications:
{
"url": "https://your-server.com/webhook",
"events": ["agent.created", "agent.updated", "agent.deleted"],
"secret": "webhook-secret"
}
API Status
Check API status and health:
- Status Page: status.nephio-oran.example.com
- Health Check:
GET /health
- Metrics:
GET /metrics
Support
Need help with the APIs?
- 📧 Email: api-support@nephio-oran.org
- 💬 Slack: #api-support
- 🐛 Issues: GitHub Issues
- 📚 Forum: Community Forum
Changelog
v1.0.0 (2025-08-22)
- Initial API release
- REST and gRPC endpoints
- Event system implementation
- Complete documentation