Salesforce Einstein · API Governance Rules
Salesforce Einstein API Rules
Spectral linting rules defining API design standards and conventions for Salesforce Einstein.
9 Rules
error 6
warn 3
Rule Categories
einstein
Rules
error
einstein-operation-id-required
All operations must have an operationId.
$.paths[*][*]
error
einstein-summary-not-empty
All operations must have a summary.
$.paths[*][*]
warn
einstein-tags-required
All operations must have at least one tag.
$.paths[*][*]
error
einstein-response-200-required
All operations must define a 200 success response.
$.paths[*][*].responses
error
einstein-auth-required
All Einstein APIs require bearer token or OAuth2.
$.components.securitySchemes
error
einstein-server-url-defined
API must define at least one server URL.
$
warn
einstein-content-type-json
JSON request bodies must use application/json.
$.paths[*][*].requestBody.content
error
einstein-no-trailing-slash
Paths must not have trailing slashes.
$.paths[*]~
warn
einstein-description-required
API info must include a description.
$.info
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/salesforce-einstein-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.