Mubert · API Governance Rules

Mubert API Rules

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

7 Rules error 4 warn 2 info 1
View Rules File View on GitHub

Rule Categories

mubert

Rules

error
mubert-base-path
All Mubert endpoints must live under /api/v3/public/* or /api/v3/service/*.
$.paths.*~
warn
mubert-summary-title-case
Every operation summary must be present and use Title Case.
$.paths.*[get,post,put,delete,patch].summary
warn
mubert-operation-id-camel-case
operationId should be camelCase.
$.paths.*[get,post,put,delete,patch].operationId
error
mubert-public-auth-headers
Public endpoints must declare customerId + accessToken security.
$.paths[?(@property.match(/\\/api\\/v3\\/public\\//))].*.security
error
mubert-service-auth-headers
Service endpoints must declare companyId + licenseToken security.
$.paths[?(@property.match(/\\/api\\/v3\\/service\\//))].*.security
error
mubert-servers-present
A top-level servers block must be present and point at music-api.mubert.com.
$.servers
info
mubert-uuid-ids
Resource ids exposed in schemas should be uuid-formatted strings.
$.components.schemas.*.properties.id

Spectral Ruleset

Raw ↑
extends: spectral:oas
documentationUrl: https://music-api.mubert.com/api/v3/swagger
description: |
  Spectral ruleset enforcing Mubert AI Music API v3 conventions:
  authentication header naming, base path prefix, summary casing, operation id
  style, and required servers/security blocks.
rules:
  mubert-base-path:
    description: All Mubert endpoints must live under /api/v3/public/* or /api/v3/service/*.
    given: $.paths.*~
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "^/api/v3/(public|service)/"

  mubert-summary-title-case:
    description: Every operation summary must be present and use Title Case.
    given: $.paths.*[get,post,put,delete,patch].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z0-9]"

  mubert-operation-id-camel-case:
    description: operationId should be camelCase.
    given: $.paths.*[get,post,put,delete,patch].operationId
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"

  mubert-public-auth-headers:
    description: Public endpoints must declare customerId + accessToken security.
    given: $.paths[?(@property.match(/\\/api\\/v3\\/public\\//))].*.security
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: array

  mubert-service-auth-headers:
    description: Service endpoints must declare companyId + licenseToken security.
    given: $.paths[?(@property.match(/\\/api\\/v3\\/service\\//))].*.security
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: array

  mubert-servers-present:
    description: A top-level servers block must be present and point at music-api.mubert.com.
    given: $.servers
    severity: error
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1
          items:
            type: object
            properties:
              url:
                type: string
                pattern: "music-api\\\\.mubert\\\\.com"
            required: ["url"]

  mubert-uuid-ids:
    description: Resource ids exposed in schemas should be uuid-formatted strings.
    given: $.components.schemas.*.properties.id
    severity: info
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          properties:
            type: { const: "string" }
            format: { const: "uuid" }

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/mubert-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.