{
  "openapi": "3.1.0",
  "info": {
    "title": "GoPickStack SaaS & AI Tools Intelligence API",
    "description": "Public REST API and AI Agent Intelligence endpoint for GoPickStack. Search 200+ reviewed tools, retrieve 15-day verified pricing records, find alternatives, compare tools head-to-head, and query category leaderboards.",
    "version": "1.0.0",
    "contact": {
      "name": "GoPickStack Editorial & Developer Team",
      "url": "https://www.gopickstack.com/contact",
      "email": "contact@gopickstack.com"
    },
    "license": {
      "name": "CC BY-NC 4.0",
      "url": "https://creativecommons.org/licenses/by-nc/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://www.gopickstack.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "summary": "List & Search Reviewed SaaS and AI Tools",
        "description": "Retrieve curated software tools with filtering by category, free tier, and search query.",
        "operationId": "listTools",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Search keyword or tool name",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Filter by category slug (e.g., ai-tools, crm, marketing-seo)",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "freeTierOnly",
            "in": "query",
            "description": "Filter tools offering a genuine free tier",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of tools (default: 50, max: 250)",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful tools list response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer"
                    },
                    "returned": {
                      "type": "integer"
                    },
                    "tools": {
                      "type": "array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{slug}": {
      "get": {
        "summary": "Get Single Tool Specs & Verified Pricing",
        "description": "Retrieve full scorecard, pros/cons, 15-day verified pricing records, and editorial verdict for a specific tool.",
        "operationId": "getToolBySlug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Tool slug identifier (e.g. ahrefs, notion, figma)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Detailed tool data and verdict"
          },
          "404": {
            "description": "Tool not found"
          }
        }
      }
    },
    "/api/v1/categories": {
      "get": {
        "summary": "List All 25 Software Categories",
        "description": "Retrieve all covered SaaS and AI categories with tool counts and descriptions.",
        "operationId": "listCategories",
        "responses": {
          "200": {
            "description": "Categories list response"
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "summary": "Model Context Protocol (MCP) Streamable HTTP Endpoint",
        "description": "JSON-RPC 2.0 endpoint for Claude Desktop, Cursor, Claude Code, and autonomous AI agents.",
        "operationId": "mcpEndpoint",
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response"
          }
        }
      }
    }
  }
}