{
  "openapi": "3.1.0",
  "info": {
    "title": "osmarks public API",
    "version": "1.0.0",
    "description": "Read-only, no key. Lead-generation results confirmed by both sides, and AI sales tools' own website claims over time. No scores or rankings.",
    "contact": {
      "email": "support@osmarks.com"
    }
  },
  "servers": [
    {
      "url": "https://osmarks.com/api/v1"
    }
  ],
  "paths": {
    "/providers": {
      "get": {
        "summary": "Agencies and freelancers with a public record, alphabetical",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/providers/{handle}": {
      "get": {
        "summary": "One provider's record: client-confirmed deliveries and engagements with confirmed months, each with a link to its signed proof",
        "parameters": [
          {
            "name": "handle",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The name in osmarks.com/p/{handle}"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/tools": {
      "get": {
        "summary": "AI sales and lead-generation tools whose websites we archive, with how many real changes we recorded",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/tools/{id}": {
      "get": {
        "summary": "One tool: every recorded version of its pages, what changed, and the signatures",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Tool id, e.g. instantly"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/log": {
      "get": {
        "summary": "The public log, in order",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "Return entries after this sequence number"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer"
            },
            "description": "At most 1000"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/verify": {
      "get": {
        "summary": "Is this record in the public log?",
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "SHA-256 of the record's payload, hex"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Missing or malformed hash"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    }
  }
}