Coinbase · API Governance Rules
Coinbase API Rules
Spectral linting rules defining API design standards and conventions for Coinbase.
12 Rules
error 5
warn 5
info 2
Rule Categories
coinbase
Rules
error
coinbase-info-contact
API contact information must be present.
$.info
warn
coinbase-terms-of-service
termsOfService must reference coinbase.com.
$.info.termsOfService
error
coinbase-server-https
All server URLs must use HTTPS.
$.servers[*].url
warn
coinbase-server-host
Server URLs must point to a known Coinbase host.
$.servers[*].url
error
coinbase-security-defined
Authenticated APIs must declare a security scheme.
$.components.securitySchemes
error
coinbase-security-scheme-shape
Security scheme should be apiKey, http, or oauth2.
$.components.securitySchemes[*]
error
coinbase-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
coinbase-operation-tags
Operations must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
coinbase-operation-summary
Operations should declare a summary for documentation.
$.paths[*][get,post,put,patch,delete]
warn
coinbase-error-responses
Mutating operations should declare 4xx error responses.
$.paths[*][post,put,patch,delete].responses
info
coinbase-versioned-path
Paths should be served under a versioned prefix (v1, v2, v3).
$.servers[*].url
info
coinbase-pagination-cursor
List operations should expose cursor-based pagination.
$.paths[*].get.parameters[?(@.name == 'cursor' || @.name == 'limit')]