Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Thanos Blocks API

Block metadata inspection and compaction status endpoints.

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

This API exposes 2 JSON Schema definitions.

Tagged areas include Blocks. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 0.35.0.

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

1 operations 1 paths 3 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
0.35.0
Base URL
http://localhost:9090
License
Resource Areas
1

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

Blocks 1

Block metadata inspection and compaction status endpoints.

GET
/api/v1/blocks
Thanos List Blocks in Object Storage
listCompactBlocks 1 param → 200500

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are BlockMeta (5 properties), BlocksResponse (2 properties), ErrorResponse (2 properties). Each schema is shown below with its type and property counts.

ErrorResponse
object
Error response returned when a request cannot be processed.
2 properties 2 required
BlockMeta
object
Metadata for a single TSDB block managed by the Compactor.
5 properties 3 required
BlocksResponse
object
Response containing metadata for TSDB blocks managed by the Compactor.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

thanos-blocks-api-openapi.yml Raw ↑

Other APIs Thanos publishes across the network.

Thanos Alerts API
Thanos Health API
Thanos Metadata API
Thanos Metrics API
Thanos Query API
Thanos Remote Write API
Thanos Rules API
Thanos Stores API
Thanos Targets API