Trabex · API Governance Rules
Trabex API Rules
Spectral linting rules defining API design standards and conventions for Trabex.
11 Rules
error 5
warn 6
Rule Categories
trabex
Rules
warn
trabex-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
error
trabex-operation-ids-required
All operations must have an operationId.
$.paths[*][*]
warn
trabex-operation-description-required
All operations must have a description.
$.paths[*][*]
warn
trabex-api-key-in-header
API key authentication must use X-API-Key header.
$.components.securitySchemes.apiKeyAuth
warn
trabex-tags-required
All operations must be tagged for categorization.
$.paths[*][*]
error
trabex-versioned-paths
All API paths must be versioned with /v1/ prefix.
$.paths[*]~
error
trabex-shipment-id-path-param
Paths with shipmentId must define it as a path parameter.
$.paths[*][*].parameters[?(@.name=='shipmentId')]
error
trabex-response-2xx-defined
All operations must define a 200 or 201 success response.
$.paths[*][*].responses
warn
trabex-response-401-defined
All operations should define a 401 unauthorized response.
$.paths[*][*].responses
error
trabex-post-request-body
POST and PUT operations must define a requestBody.
$.paths[*][post,put]
warn
trabex-screening-response-risk-level
Screening responses must include riskLevel field.
$.components.schemas.ScreeningResponse.properties
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/trabex-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.