SuperTokens · API Governance Rules
SuperTokens API Rules
Spectral linting rules defining API design standards and conventions for SuperTokens.
10 Rules
error 5
warn 5
Rule Categories
supertokens
Rules
error
supertokens-operation-id-required
All SuperTokens CDI operations must have an operationId
$.paths[*][*]
warn
supertokens-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
supertokens-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
supertokens-status-in-response
All 200 response bodies should contain a status field for error handling
$.paths[*][*].responses.200.content.application/json.schema.properties
error
supertokens-api-key-security
CDI API must define api-key security scheme
$.components.securitySchemes
error
supertokens-request-body-for-post
POST operations must have a request body
$.paths[*].post
error
supertokens-request-body-for-put
PUT operations must have a request body
$.paths[*].put
warn
supertokens-tenant-id-described
tenantId parameters should have a description
$.paths[*][*].parameters[?(@.name == 'tenantId')]
error
supertokens-user-schema-required
User schema must include id and timeJoined fields
$.components.schemas.User.properties
warn
supertokens-error-response-defined
401 error responses should be defined for session endpoints
$.paths['/recipe/session'].get.responses
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/supertokens-cdi-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.