Trulioo · API Governance Rules

Trulioo API Rules

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

8 Rules error 3 warn 4 info 1
View Rules File View on GitHub

Rule Categories

trulioo

Rules

warn
trulioo-info-contact
Trulioo APIs must declare a contact block with Support email.
$.info
error
trulioo-server-required
Trulioo APIs must declare at least one server URL.
$
warn
trulioo-server-on-api-trulioo-com
Trulioo production servers must target api.trulioo.com or gateway.trulioo.com.
$.servers[*].url
error
trulioo-operation-id-required
Every Trulioo operation must declare an operationId.
$.paths[*][get,post,put,delete,patch]
warn
trulioo-operation-summary-title-case
Operation summary must use Title Case.
$.paths[*][get,post,put,delete,patch].summary
warn
trulioo-tag-pascal-or-spaced
Tags must use Title Case (e.g. "Business Verification", "Known Faces").
$.tags[*].name
error
trulioo-security-required
Every Trulioo API must define security at the document level (Basic or OAuth2).
$
info
trulioo-path-kebab-or-camel
Path segments use lowercase camel or single-word (e.g. /v3/verifications/transactionrecord).
$.paths

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  trulioo-info-contact:
    description: Trulioo APIs must declare a contact block with Support email.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy

  trulioo-server-required:
    description: Trulioo APIs must declare at least one server URL.
    severity: error
    given: $
    then:
      field: servers
      function: truthy

  trulioo-server-on-api-trulioo-com:
    description: Trulioo production servers must target api.trulioo.com or gateway.trulioo.com.
    severity: warn
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: "^https://(api|gateway|auth-api)\\.trulioo\\.com.*$"

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

  trulioo-operation-summary-title-case:
    description: Operation summary must use Title Case.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch].summary
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][A-Za-z0-9]*)(\\s+[A-Z0-9][A-Za-z0-9]*)*$"

  trulioo-tag-pascal-or-spaced:
    description: Tags must use Title Case (e.g. "Business Verification", "Known Faces").
    severity: warn
    given: $.tags[*].name
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][A-Za-z0-9]*( [A-Z0-9][A-Za-z0-9]*)*$"

  trulioo-security-required:
    description: Every Trulioo API must define security at the document level (Basic or OAuth2).
    severity: error
    given: $
    then:
      field: security
      function: truthy

  trulioo-path-kebab-or-camel:
    description: Path segments use lowercase camel or single-word (e.g. /v3/verifications/transactionrecord).
    severity: info
    given: $.paths
    then:
      function: pattern
      functionOptions:
        match: "^[/a-zA-Z0-9_{}-]+$"

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/trulioo-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 email required.

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