Base URL
All API requests are made to your Logwiz instance. Replace the example below with your own deployment URL.Authentication
Ingest endpoints require a bearer token in theAuthorization header.
The health check endpoint (
GET /api/health) does not require authentication.Content type
When sending log data to the ingest endpoint, set theContent-Type header to application/x-ndjson. The body must be newline-delimited JSON — one JSON object per line.
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /api/ingest/{indexId} | Ingest one or more log events into a Quickwit index |
GET | /api/health | Check the health of Logwiz and its dependencies |
Error responses
All error responses return JSON with amessage field describing the problem.
| Status | Meaning |
|---|---|
400 | Bad request — the body is empty or malformed |
401 | Missing bearer token |
403 | Token is invalid, revoked, or does not match the requested index |
404 | Unknown index — Quickwit has no index with the given ID |
413 | Request body exceeds the 10 MB limit |
502 | Logwiz could not reach Quickwit to forward the request |
503 | Quickwit is unhealthy or unavailable |
Logwiz does not apply an application-level rate limit to the ingest endpoint. The
LOGWIZ_RATE_LIMIT_WINDOW and LOGWIZ_RATE_LIMIT_MAX variables apply to the authentication
endpoints only. Apply your own rate limiting at the reverse proxy or load balancer if you need it.