Endpoints
Reference for the Luciq Query API endpoints: run and validate queries, list entities, and check your rate limits and monthly quota usage.
POST /v1/query
Run one query and return the columnar result. Counts against your monthly quota.
First Example: Top 10 failing network endpoints per hour
curl -s https://api.luciq.ai/v1/query \
-H "Authorization: Bearer $LUCIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"application": "my-application",
"environment": "production",
"entity": "networks",
"select": [
{
"metric": "failure_rate"
}
],
"group_by": [
{
"time_bucket": "hour"
},
{
"column": "endpoint"
}
],
"top_n": {
"by": "failure_rate",
"dir": "desc",
"n": 10
},
"time_range": {
"last": "24h"
},
"limit": 500
}'
Second Example: Sessions on the latest release, split by OS
POST /v1/query/validate
Checks a query's structure (entity, columns, operators, metrics, time range, shape) without running it. budget_exceeded and timeouts only appear on a real run.
Counts toward the per-minute and per-hour limits, not the monthly quota.
Body: QueryRequest. Returns { "valid": true }, or the same error shape as /v1/query.
GET /v1/entities
The catalog surface visible to your key: entities, their typed columns, the operators each column accepts, and the metrics available. This is what a query builder is built on.
Takes no parameters, it authenticates the key and returns the full catalog the key can see.
POST /v1/rate_limit
Your current rate-window state. Reads counters without consuming them, and stays reachable even while you're being limited, so a client can back off before hitting 429.
Usage headers
Each query response tells you where you stand:
RateLimit-Limit,RateLimit-Remaining,RateLimit-Reset,RateLimit-Policy: your per-minute and per-hour limits. Present on every response.X-Query-Id: quote it when you contact support.
Good to know
The OpenAPI spec is at
GET /v1/openapi.json(no key needed).There is no batch endpoint. Run queries in parallel (up to 8 at once per app).
GET /v1/entitiesreturns anETag. SendIf-None-Matchto get304when nothing changed.Request bodies are limited to 1 MiB, unknown fields are rejected, and each query times out after 30 seconds.
Last updated