Mixedbread · API Governance Rules

Mixedbread API Rules

Spectral linting rules defining API design standards and conventions for Mixedbread.

6 Rules error 3 warn 3
View Rules File View on GitHub

Rule Categories

mxbai

Rules

error
mxbai-server-required
Every Mixedbread spec must declare https://api.mixedbread.com as the production server.
$.servers
error
mxbai-paths-must-be-versioned
All operational paths must live under /v1.
$.paths[?(@property != "/")]~
warn
mxbai-paths-lowercase
Path segments must be lowercase. Word separators may be hyphens or underscores.
$.paths[*]~
error
mxbai-operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete].summary
warn
mxbai-operation-id-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
mxbai-bearer-auth-defined
A bearer-token security scheme should be declared (Mixedbread uses Bearer API keys).
$.components.securitySchemes

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
overrides: []
rules:
  # Servers
  mxbai-server-required:
    description: Every Mixedbread spec must declare https://api.mixedbread.com as the production server.
    severity: error
    given: $.servers
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1
          contains:
            type: object
            properties:
              url:
                const: https://api.mixedbread.com

  # Paths
  mxbai-paths-must-be-versioned:
    description: All operational paths must live under /v1.
    severity: error
    given: $.paths[?(@property != "/")]~
    then:
      function: pattern
      functionOptions:
        match: ^/v1(/|$)

  # snake_case path segments (matches mxbai style: /question-answering, /list-chunks,
  # /metadata-facets, /data_sources)
  mxbai-paths-lowercase:
    description: Path segments must be lowercase. Word separators may be hyphens or underscores.
    severity: warn
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        match: ^[a-z0-9/_{}\-]+$

  # Operation summaries must be present and Title Case
  mxbai-operation-summary-required:
    description: Every operation must have a summary.
    severity: error
    given: $.paths[*][get,post,put,patch,delete].summary
    then:
      function: truthy

  mxbai-operation-id-required:
    description: Every operation must have an operationId.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy

  # Authentication
  mxbai-bearer-auth-defined:
    description: A bearer-token security scheme should be declared (Mixedbread uses Bearer API keys).
    severity: warn
    given: $.components.securitySchemes
    then:
      function: truthy

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/mixedbread-ai-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.