At-Bay · API Governance Rules

At-Bay API Rules

Spectral linting rules defining API design standards and conventions for At-Bay.

5 Rules error 3 warn 2
View Rules File View on GitHub

Rule Categories

bearer insurance operation v2

Rules

warn
operation-summary-title-case
Operation summaries should use Title Case.
$.paths[*][*].summary
error
operation-tag-set
Every operation must have at least one tag.
$.paths[*][*]
error
bearer-jwt-auth
At-Bay uses HTTP bearer JWT auth on all operations.
$.components.securitySchemes
warn
v2-base-url
Base URLs must point to the v2 API.
$.servers[*].url
error
insurance-product-enum
The insurance_product field must be CYB, TEO, or MPL.
$..properties.insurance_product

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  operation-summary-title-case:
    description: Operation summaries should use Title Case.
    given: $.paths[*][*].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: '^([A-Z][A-Za-z0-9&]*\s?)+$'
  operation-tag-set:
    description: Every operation must have at least one tag.
    given: $.paths[*][*]
    severity: error
    then:
      field: tags
      function: truthy
  bearer-jwt-auth:
    description: At-Bay uses HTTP bearer JWT auth on all operations.
    given: $.components.securitySchemes
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required: [bearerAuth]
  v2-base-url:
    description: Base URLs must point to the v2 API.
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: '.*at-bay\\.com\\/v2$'
  insurance-product-enum:
    description: The insurance_product field must be CYB, TEO, or MPL.
    given: $..properties.insurance_product
    severity: error
    then:
      field: enum
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            enum: [CYB, TEO, MPL]

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.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/at-bay-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.