{
  "openapi": "3.1.0",
  "info": {
    "title": "Teppi",
    "description": "The record of what happened when someone paid a machine service. Every entry carries the settlement transaction, the hashes of what was sent and returned, and the check that ran.",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://api.teppi.xyz"
    }
  ],
  "paths": {
    "/v1/trust/{id}": {
      "get": {
        "operationId": "getGrade",
        "summary": "Returns the quality grade for a paid endpoint, with the components behind it and a sample of the evidence. Use before paying an endpoint you have not used.",
        "tags": [
          "grade",
          "quality",
          "x402",
          "endpoint"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^cap_[0-9A-HJKMNP-TV-Z]{26}$"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1/trust/feed": {
      "get": {
        "operationId": "gradeFeed",
        "summary": "Streams every grade as it is published, newline delimited, resumable from a cursor. Use to mirror the whole record.",
        "tags": [
          "feed",
          "mirror",
          "grade",
          "ndjson"
        ],
        "responses": {
          "200": {
            "description": "ok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}
