Samsara · API Governance Rules
Samsara API Rules
Spectral linting rules defining API design standards and conventions for Samsara.
9 Rules
error 1
warn 4
info 4
Rule Categories
samsara
Rules
warn
samsara-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
samsara-operation-id-camel-case
OperationIds must use lowerCamelCase
$.paths[*][*].operationId
warn
samsara-tags-defined
All tags used in operations must be defined in the global tags list
$.paths[*][*].tags[*]
warn
samsara-response-200-schema
All 200 responses should have a schema defined
$.paths[*][*].responses['200'].content[*]
info
samsara-bearer-auth-used
Operations should use the AccessTokenHeader security scheme
$.paths[*][*]
info
samsara-pagination-cursor-pattern
List operations should support cursor-based pagination with 'after' parameter
$.paths[?(!@property.match(/\{.*\}/))].get.parameters[*]
error
samsara-no-trailing-slash
API paths must not end with a trailing slash
$.paths
info
samsara-path-kebab-case
Path segments must use kebab-case or camelCase (Samsara convention)
$.paths
info
samsara-external-id-support
Resources that support external IDs should document them
$.paths[*][*].description
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/samsara-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.