Robin AI · API Governance Rules

Robin AI API Rules

Spectral linting rules defining API design standards and conventions for Robin AI.

6 Rules error 3 warn 2 info 1
View Rules File View on GitHub

Rule Categories

robin

Rules

error
robin-ai-operation-id-camel-case
All operationIds should be lowerCamelCase (Robin convention).
$.paths.*[get,post,put,patch,delete].operationId
warn
robin-ai-operation-summary-title-case
All operation summaries should be Title Case.
$.paths.*[get,post,put,patch,delete].summary
info
robin-ai-resource-ids-prefixed
Resource IDs follow the typed-prefix convention (doc_, tbl_, tpl_, grp_).
$.components.schemas.*.properties.id.pattern
error
robin-ai-v1-path-prefix
All paths must be under the /v1/ namespace.
$.paths
error
robin-ai-x-api-key-auth
The API must use X-API-Key header authentication.
$.components.securitySchemes
warn
robin-ai-cursor-pagination
List endpoints should support limit and starting_after cursor pagination.
$.paths[?(@property.match(/^\/v1\/(tables|documents|templates|groups)$/))].get.parameters[*].name

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, all]]
rules:
  robin-ai-operation-id-camel-case:
    description: All operationIds should be lowerCamelCase (Robin convention).
    severity: error
    given: $.paths.*[get,post,put,patch,delete].operationId
    then:
      function: pattern
      functionOptions:
        match: ^[a-z][a-zA-Z0-9]+$
  robin-ai-operation-summary-title-case:
    description: All operation summaries should be Title Case.
    severity: warn
    given: $.paths.*[get,post,put,patch,delete].summary
    then:
      function: pattern
      functionOptions:
        match: ^([A-Z][a-zA-Z]*)( ([A-Z][a-zA-Z0-9]*|To|From|Of|In|For|And|Or|The|A|An))*$
  robin-ai-resource-ids-prefixed:
    description: Resource IDs follow the typed-prefix convention (doc_, tbl_, tpl_, grp_).
    severity: info
    given: $.components.schemas.*.properties.id.pattern
    then:
      function: pattern
      functionOptions:
        match: ^\^(doc|tbl|tpl|grp)_
  robin-ai-v1-path-prefix:
    description: All paths must be under the /v1/ namespace.
    severity: error
    given: $.paths
    then:
      function: pattern
      functionOptions:
        match: ^/v1/
  robin-ai-x-api-key-auth:
    description: The API must use X-API-Key header authentication.
    severity: error
    given: $.components.securitySchemes
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          properties:
            ApiKeyAuth:
              type: object
              properties:
                type: { const: apiKey }
                in: { const: header }
                name: { const: X-API-Key }
              required: [type, in, name]
          required: [ApiKeyAuth]
  robin-ai-cursor-pagination:
    description: List endpoints should support limit and starting_after cursor pagination.
    severity: warn
    given: $.paths[?(@property.match(/^\/v1\/(tables|documents|templates|groups)$/))].get.parameters[*].name
    then:
      function: enumeration
      functionOptions:
        values:
          - limit
          - starting_after
          - created_before
          - created_after
          - updated_before
          - updated_after
          - name
          - id
          - type
          - group
          - group_id
          - group_type
          - is_private
          - status
          - document_id

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