Specmatic · Schema

Specmatic Contract

Represents an API contract in the Specmatic platform, derived from an API specification file.

API Contract TestingAPI GovernanceAPI MockingBackward CompatibilityContract-Driven DevelopmentService Virtualization

Properties

Name Type Description
id string Unique identifier for the contract.
name string Human-readable name for the contract.
specificationFormat string Format of the API specification that defines the contract.
specificationVersion string Version of the specification format (e.g., '3.1.0' for OpenAPI).
protocol string Communication protocol the contract covers.
specificationUrl string URL or file path to the raw specification file.
backwardCompatible boolean Whether the current version is backward compatible with the previous version.
coveragePercent number Percentage of specification paths/operations covered by tests.
createdAt string Timestamp when the contract was first registered.
updatedAt string Timestamp of the last contract update.
View JSON Schema on GitHub

JSON Schema

specmatic-contract-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://specmatic.io/schemas/contract",
  "title": "Specmatic Contract",
  "description": "Represents an API contract in the Specmatic platform, derived from an API specification file.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the contract."
    },
    "name": {
      "type": "string",
      "description": "Human-readable name for the contract."
    },
    "specificationFormat": {
      "type": "string",
      "enum": ["OpenAPI", "AsyncAPI", "gRPC", "GraphQL", "WSDL", "Arazzo", "Avro"],
      "description": "Format of the API specification that defines the contract."
    },
    "specificationVersion": {
      "type": "string",
      "description": "Version of the specification format (e.g., '3.1.0' for OpenAPI)."
    },
    "protocol": {
      "type": "string",
      "enum": [
        "HTTP", "Kafka", "JMS", "AMQP", "SOAP", "Redis", "gRPC",
        "GraphQL", "GooglePubSub", "RabbitMQ", "ActiveMQ", "AWSSNS",
        "AWSSQS", "AWSEventBridge", "IBMMQ", "MQTT", "WebSocket", "MCP"
      ],
      "description": "Communication protocol the contract covers."
    },
    "specificationUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL or file path to the raw specification file."
    },
    "backwardCompatible": {
      "type": "boolean",
      "description": "Whether the current version is backward compatible with the previous version."
    },
    "coveragePercent": {
      "type": "number",
      "minimum": 0,
      "maximum": 100,
      "description": "Percentage of specification paths/operations covered by tests."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the contract was first registered."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the last contract update."
    }
  },
  "required": ["id", "name", "specificationFormat", "protocol"],
  "additionalProperties": false
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/specmatic-contract"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.