Tropic · API Governance Rules
Tropic API Rules
Spectral linting rules defining API design standards and conventions for Tropic.
10 Rules
error 4
warn 4
Rule Categories
tropic
Rules
warn
tropic-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
tropic-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
tropic-path-versioned
All paths must be versioned with /v1/ prefix
$.paths[*]~
error
tropic-response-success-defined
All operations must have a 2xx success response
$.paths[*][get,post,put,patch,delete]
hint
tropic-ids-as-path-params
Resource IDs should be path parameters named {id}
$.paths[*]~
warn
tropic-pagination-params
GET collection endpoints should support page and per_page parameters
$.paths[*][get].parameters[*].name
error
tropic-request-body-required
POST and PUT operations must define a requestBody
$.paths[*][post,put]
error
tropic-bearer-auth-only
Only Bearer authentication should be used
$.components.securitySchemes.*
warn
tropic-error-response-shape
Error responses should include an error field
$.paths[*][*].responses[4*,5*].content.application/json.schema.properties
hint
tropic-timestamps-iso8601
Timestamp fields should use date-time format
$.components.schemas[*].properties[created_at,updated_at,approved_at]
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/tropic-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.