Speakeasy · API Governance Rules
Speakeasy API Rules
Spectral linting rules defining API design standards and conventions for Speakeasy.
9 Rules
error 2
warn 5
info 2
Rule Categories
speakeasy
Rules
error
speakeasy-path-versioned
All API paths must be prefixed with /v1/
$.paths.*~
warn
speakeasy-operation-id-camel-case
Operation IDs must use camelCase
$.paths.*.*.operationId
error
speakeasy-operation-id-required
All operations must define an operationId
$.paths.*[get,post,put,patch,delete]
warn
speakeasy-operation-tags-required
All operations must have at least one tag for grouping
$.paths.*[get,post,put,patch,delete]
warn
speakeasy-operation-summary-required
All operations must have a summary in Title Case
$.paths.*[get,post,put,patch,delete]
warn
speakeasy-error-responses-required
Operations should define 4XX error responses
$.paths.*[get,post,put,patch,delete].responses
info
speakeasy-path-param-camel-case
Path parameters should use camelCase naming (e.g., workspaceId not workspace_id)
$.paths.*.*.parameters[?(@.in == 'path')].name
warn
speakeasy-security-defined
API operations should define security requirements
$.paths.*[get,post,put,patch,delete]
info
speakeasy-workspace-paths-consistent
Workspace-scoped paths should use the /workspace/{workspace_id}/ prefix
$.paths.*~
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/speakeasy-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.