TD Bank · API Governance Rules
TD Bank API Rules
Spectral linting rules defining API design standards and conventions for TD Bank.
TD Bank API Rules is a Spectral governance ruleset published by TD Bank on the APIs.io network, containing 8 lint rules.
The ruleset includes 4 error-severity rules and 4 warning-severity rules.
Tagged areas include Account Aggregation, AML, Akoya, Banking, and Bank Secrecy Act.
Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.
8 Rules
error 4
warn 4
Rule Categories
td
Rules
error
td-bank-https-only
TD Bank APIs must use HTTPS.
$.servers[*].url
error
td-bank-info-contact
API definitions must declare contact information.
$.info
error
td-bank-oauth2-required
FDX Data APIs must declare OAuth 2.0 security.
$.components.securitySchemes
warn
td-bank-fdx-tagging
FDX-aligned operations should declare an Accounts / Transactions / Statements / Tax Forms / Customers / Consents / Notifications tag.
$.paths[*][get,post,put,delete,patch]
warn
td-bank-title-case-summary
Operation summaries should be Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
td-bank-no-pan
Card data must not be exposed as a raw PAN — use tokenized references.
$..properties
warn
td-bank-account-id-string
accountId parameters MUST be strings (FDX convention).
$.paths[*][*].parameters[?(@.name=='accountId')].schema.type
warn
td-bank-consent-id-string
consentId parameters MUST be strings.
$.paths[*][*].parameters[?(@.name=='consentId')].schema.type