Pact Pacts API

The Pacts API from Pact — 2 operation(s) for pacts.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/pact-pacts-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

pact-pacts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Pact Broker Index Pacts API
  description: The Pact Broker is a RESTful application for sharing consumer-driven contracts (pacts) between consumer and provider teams, and for publishing and querying verification results. Authentication, when enabled, is typically HTTP Basic.
  version: 1.0.0
  contact:
    name: Pact
    url: https://docs.pact.io/pact_broker
servers:
- url: https://pact-broker.example.com
  description: Self-hosted Pact Broker
security:
- basicAuth: []
tags:
- name: Pacts
paths:
  /pacts/provider/{provider}/consumer/{consumer}/version/{version}:
    put:
      tags:
      - Pacts
      summary: Publish a pact for a consumer version
      operationId: publishPact
      parameters:
      - in: path
        name: provider
        required: true
        schema:
          type: string
      - in: path
        name: consumer
        required: true
        schema:
          type: string
      - in: path
        name: version
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: Pact published
        '201':
          description: Pact created
  /pacts/provider/{provider}/consumer/{consumer}/latest:
    get:
      tags:
      - Pacts
      summary: Get the latest pact between a consumer and provider
      operationId: getLatestPact
      parameters:
      - in: path
        name: provider
        required: true
        schema:
          type: string
      - in: path
        name: consumer
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Latest pact
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic authentication (when the broker is configured for it)