API Reference
AllSource Core exposes a REST API on port 3900. All data endpoints use the /api/v1/ prefix.
Authentication
Requests to the Query Service (port 3902) require a Bearer token in the Authorization header. Direct Core access (port 3900) does not require authentication — it is intended for internal service-to-service communication.
Authorization: Bearer <your-api-key>Endpoints
/api/v1/eventsIngest a new event into a stream.
/api/v1/events/queryQuery events by stream, time range, entity, or event type. Returns {events, count}.
/api/v1/projectionsList all projections. Returns {projections, total}.
/api/v1/schemasList registered event schemas.
/api/v1/snapshotsList snapshots for a stream or entity.
/api/v1/pipelinesList stream processing pipelines.
/healthHealth check endpoint (root path, not under /api/v1).
/metricsPrometheus-format metrics.
Example: Ingest an Event
curl -X POST http://localhost:3900/api/v1/events \
-H "Content-Type: application/json" \
-d '{
"stream": "orders",
"event_type": "OrderCreated",
"data": {
"order_id": "ord-123",
"amount": 99.99
}
}'Full Reference
For complete endpoint documentation including request/response schemas, query parameters, and advanced features, see the docs directory on GitHub.
