API Reference
Project Aurora exposes both REST and gRPC APIs. All endpoints require authentication via OAuth 2.1 Bearer tokens.
Authentication
# Obtain an access token
curl -X POST https://auth.example.com/oauth2/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=aurora&client_secret=***"
# Use the token in subsequent requests
curl -H "Authorization: Bearer eyJhbGciOi..." \
https://api.example.com/v2/services
REST API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v2/health | Health check endpoint |
| GET | /v2/services | List registered services |
| POST | /v2/services | Register a new service |
| PUT | /v2/services/{id} | Update service metadata |
| DELETE | /v2/services/{id} | Deregister a service |
| GET | /v2/services/{id}/instances | List service instances |
| POST | /v2/config/batch | Apply batch configuration |
| GET | /v2/metrics | Prometheus metrics endpoint |
Service Registration
curl -X POST https://api.example.com/v2/services \
-H "Authorization: Bearer ***" \
-H "Content-Type: application/json" \
-d '{
"name": "payment-processor",
"version": "3.2.1",
"tags": ["production", "us-east-1"],
"health_check": {
"type": "http",
"path": "/health",
"interval": "10s",
"timeout": "3s"
},
"metadata": {
"team": "payments",
"tier": "critical"
}
}'
gRPC API
The gRPC service definitions are available in the proto/ directory. Generate client stubs with:
buf generate proto/
Error Responses
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Service 'billing-processor' not found",
"request_id": "req_a1b2c3d4",
"timestamp": "2026-11-28T12:00:00Z"
}
}