Thanos · API Governance Rules
Thanos API Rules
Spectral linting rules defining API design standards and conventions for Thanos.
8 Rules
error 1
warn 7
Rule Categories
thanos
Rules
warn
thanos-prometheus-path-prefix
Prometheus-compatible API paths must start with /api/v1/
$.paths[*]~
error
thanos-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,delete]
warn
thanos-operation-id-camel-case
Operation IDs must be camelCase
$.paths[*][*].operationId
warn
thanos-200-has-content
Successful responses should include content
$.paths[*][get].responses.200
warn
thanos-tags-title-case
Tags must use Title Case
$.paths[*][*].tags[*]
warn
thanos-summary-title-case
Summaries must use Title Case
$.paths[*][*].summary
warn
thanos-operation-description
All operations must have a description
$.paths[*][get,post,put,delete]
warn
thanos-get-no-body
GET operations should not have a request body (use POST variants for long queries)
$.paths[*].get
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/thanos-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.