{
  "openapi": "3.1.0",
  "info": {
    "title": "SCOREDEK",
    "version": "1.0.0",
    "description": "Measured ratings of AI agent services on Robinhood Chain."
  },
  "servers": [
    {
      "url": "https://scoredek.fun"
    }
  ],
  "paths": {
    "/api/v1/services": {
      "get": {
        "summary": "The board",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/services/{slug}": {
      "get": {
        "summary": "One service",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/best": {
      "get": {
        "summary": "Best measured in a category",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/new": {
      "get": {
        "summary": "Launched in the last 7 days"
      }
    },
    "/api/v1/stats": {
      "get": {
        "summary": "Totals"
      }
    },
    "/api/v1/claims": {
      "post": {
        "summary": "Declare your endpoints"
      }
    },
    "/api/v1/list": {
      "post": {
        "summary": "List a service, token or not"
      }
    },
    "/api/v1/usage": {
      "get": {
        "summary": "Public usage, last 7 days"
      }
    },
    "/api/v1/benchmarks": {
      "get": {
        "summary": "Answer-quality benchmarks"
      },
      "post": {
        "summary": "Start a benchmark"
      }
    },
    "/api/v1/benchmarks/{id}": {
      "get": {
        "summary": "One benchmark with every answer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/pledges": {
      "get": {
        "summary": "Pledges, kept or broken"
      },
      "post": {
        "summary": "Make a pledge"
      }
    },
    "/api/v1/status/{slug}": {
      "get": {
        "summary": "Live status and incidents",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/alerts": {
      "post": {
        "summary": "Subscribe to down/up alerts"
      }
    },
    "/api/v1/onchain": {
      "get": {
        "summary": "Scores published on Robinhood Chain"
      }
    },
    "/api/v1/numbers": {
      "get": {
        "summary": "The public record: what was measured and caught, last 7 days"
      }
    },
    "/api/v1/economy": {
      "get": {
        "summary": "USDG paid to x402 API wallets on Robinhood Chain, last 7 days"
      }
    },
    "/api/v1/referee": {
      "get": {
        "summary": "Referee totals"
      }
    },
    "/api/v1/sites": {
      "get": {
        "summary": "Websites ranked by the APIs they serve",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/apis": {
      "get": {
        "summary": "Every API of every project, ranked",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "project",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}