HTTP API
REST API reference for programmatic access to Raceway.
Base URL
http://localhost:8080Authentication
Include API key in requests if auth is enabled:
bash
curl -H "Authorization: Bearer YOUR_API_KEY" \
http://localhost:8080/api/tracesEndpoints
See detailed API reference:
- Events API - Event ingestion and retrieval
- Traces API - Trace management
- Analysis API - Critical path, anomalies, races
- Services API - Service metrics
Quick Reference
Health Check
bash
GET /healthIngest Events
bash
POST /events
Content-Type: application/json
{
"trace_id": "abc123",
"event_id": "evt-001",
"kind": "HttpRequest",
...
}List Traces
bash
GET /api/traces?page=1&per_page=20Get Trace Analysis
bash
GET /api/traces/{trace_id}Get Critical Path
bash
GET /api/traces/{trace_id}/critical-pathGet Anomalies
bash
GET /api/traces/{trace_id}/anomaliesGet Race Conditions
bash
GET /api/distributed/global-racesRate Limiting
Default: 1000 requests/minute
Headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1672531200Error Responses
json
{
"error": "Error message"
}Status codes:
400- Bad Request401- Unauthorized404- Not Found429- Too Many Requests500- Internal Server Error
Next Steps
- API Reference - Complete API documentation
- SDKs - Use language-specific SDKs
- Security - API authentication
