How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Loki Loki API

The Loki API from Loki — 17 operation(s) for loki.

Loki Loki API is one of 5 APIs that Loki publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Loki. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a GitHub repository.

This API exposes 23 operations across 17 paths. It is described by OpenAPI 3.2.0, at version 1.0.0.

Requests are made against a single base URL, http://localhost:3100.

23 operations 17 paths 0 schemas 3 DELETE16 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0.0
Server
http://localhost:3100
Resource Areas
1

Paths & Operations 23

Across 17 paths, the API surfaces 23 operations — 3 DELETE, 16 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Loki 23
POST
/loki/api/v1/push
Push log entries to Loki
pushLogs → 204default
GET
/loki/api/v1/query
Run a LogQL instant query
query 2 params → 200default
GET
/loki/api/v1/query_range
Run a LogQL range query
queryRange 3 params → 200default
GET
/loki/api/v1/labels
List label names
listLabels → 200default
GET
/loki/api/v1/label/{name}/values
List values for a label
getLabelValues 1 param → 200default
GET
/loki/api/v1/series
List series matching matchers
listSeries → 200default
POST
/loki/api/v1/series
List series matching matchers via POST
postSeries → 200default
GET
/loki/api/v1/index/stats
Retrieve index stats
indexStats → 200default
GET
/loki/api/v1/index/volume
Retrieve index volume
indexVolume → 200default
GET
/loki/api/v1/index/volume_range
Retrieve index volume over a range
indexVolumeRange → 200default
GET
/loki/api/v1/patterns
Retrieve detected log patterns
getPatterns → 200default
GET
/loki/api/v1/tail
Tail log entries via WebSocket
tailLogs → 200default
GET
/loki/api/v1/status/buildinfo
Retrieve build information
buildInfo → 200default
GET
/loki/api/v1/rules
List all ruler namespaces and groups
listAllRules → 200default
GET
/loki/api/v1/rules/{namespace}
List rule groups in a namespace
listNamespaceRules 1 param → 200default
POST
/loki/api/v1/rules/{namespace}
Create or update rule groups in a namespace
createNamespaceRules 1 param → 202default
DELETE
/loki/api/v1/rules/{namespace}
Delete all rule groups in a namespace
deleteNamespaceRules 1 param → 204default
GET
/loki/api/v1/rules/{namespace}/{groupName}
Retrieve a rule group
getRuleGroup 2 params → 200default
DELETE
/loki/api/v1/rules/{namespace}/{groupName}
Delete a rule group
deleteRuleGroup 2 params → 204default
GET
/loki/api/v1/delete
List delete requests
listDeleteRequests → 200default
POST
/loki/api/v1/delete
Create a delete request
createDeleteRequest → 204default
DELETE
/loki/api/v1/delete
Cancel a delete request
cancelDeleteRequest → 204default
GET
/loki/api/v1/format_query
Format a LogQL query
formatQuery → 200default

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

loki-loki-api-openapi.yml Raw ↑

Other APIs Loki publishes across the network.

Loki Config API
Loki Metrics API
Loki Otlp API
Loki Ready API
Where this information came from

This is an independent, third-party profile of Loki Loki API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.