TrueLayer · API Governance Rules
TrueLayer API Rules
Spectral linting rules defining API design standards and conventions for TrueLayer.
11 Rules
error 6
warn 2
Rule Categories
truelayer
Rules
warn
truelayer-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
truelayer-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
error
truelayer-v3-path-prefix
All paths must use the /v3/ prefix
$.paths[*]~
error
truelayer-idempotency-key-required
POST operations must require an Idempotency-Key header
$.paths[*][post].parameters[*]
error
truelayer-signature-header-post
POST payment operations require Tl-Signature header
$.paths[/v3/payments,/v3/mandates,/v3/payouts][post].parameters
error
truelayer-amount-minor-units
Payment amounts must be in minor units (integer), not decimal
$.components.schemas.*.properties.amount_in_minor
warn
truelayer-currency-enum
Currency fields must be restricted to supported values (GBP, EUR)
$.components.schemas.*.properties.currency
hint
truelayer-uuid-format
ID fields should use UUID format
$.components.schemas.*.properties.id
hint
truelayer-webhook-type-documented
Webhook types should be documented as enum values
$.components.schemas.*.properties.type
hint
truelayer-error-trace-id
Error responses should include a trace_id for debugging
$.paths[*][*].responses[4*,5*].content.application/json.schema.properties
error
truelayer-success-2xx-defined
All operations must define a 200 success response
$.paths[*][get,post,delete]
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/truelayer-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.