{
  "openapi": "3.1.0",
  "info": {
    "title": "10x GTM API",
    "version": "1.0.0",
    "description": "Read-only, public, no-auth API over the 10x GTM go-to-market tool-review corpus. For MCP-native agents, a Streamable HTTP MCP server is also available at /api/mcp.\n\nVersioning & deprecation policy: endpoints are versioned by URL path (/api/v1). Breaking changes ship under a new prefix (/api/v2); /api/v1 stays stable. Any endpoint scheduled for removal will carry HTTP Deprecation and Sunset response headers for at least 90 days before it is retired.",
    "contact": {
      "name": "10x GTM",
      "email": "contact@the10xcompany.ai",
      "url": "https://10xgtm.ai/contact"
    }
  },
  "servers": [
    {
      "url": "https://10xgtm.ai"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "List or search GTM tool reviews",
        "description": "Returns tool reviews, optionally filtered by free-text query and/or category slug. Cursor-paginated. Read-only and idempotent. The unversioned path /api/tools is a permanent alias.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text match over name, tagline, description, and best-for.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Filter by category slug (see /api/v1/categories).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size, 1-50 (default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from a prior response's nextCursor. Omit for the first page.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching tools (one page).",
            "headers": {
              "RateLimit-Limit": {
                "description": "Request quota in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolList"
                }
              }
            }
          },
          "503": {
            "description": "The tool corpus is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/batch": {
      "post": {
        "operationId": "batchGetTools",
        "summary": "Get many tool reviews in one call",
        "description": "Returns full review records for a list of slugs (1-50). Read-only; provided as a batch alternative to many single-slug calls.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The requested records, plus any slugs not found.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Request quota in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolReviewList"
                }
              }
            }
          },
          "400": {
            "description": "Body must be JSON with a slugs array of 1-50 items.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The tool corpus is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{slug}": {
      "get": {
        "operationId": "getTool",
        "summary": "Get one tool review by slug",
        "description": "Read-only and idempotent. The unversioned path /api/tools/{slug} is a permanent alias.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The tool slug, e.g. \"clarify\".",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The full review record.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Request quota in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ToolReview"
                }
              }
            }
          },
          "404": {
            "description": "No tool with that slug.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The tool corpus is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "List all tool categories with counts",
        "description": "Read-only and idempotent. The unversioned path /api/categories is a permanent alias.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort order: \"name\" (A-Z) or \"count\" (most tools first). Default: corpus order.",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "count"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "All categories.",
            "headers": {
              "RateLimit-Limit": {
                "description": "Request quota in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Remaining": {
                "description": "Requests remaining in the current window.",
                "schema": {
                  "type": "integer"
                }
              },
              "RateLimit-Reset": {
                "description": "Seconds until the window resets.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoryList"
                }
              }
            }
          },
          "503": {
            "description": "The tool corpus is temporarily unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Tool": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "oneLiner": {
            "type": "string"
          },
          "pricingNote": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "slug",
          "name",
          "category",
          "url"
        ]
      },
      "ToolReview": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "oneLiner": {
            "type": "string"
          },
          "pricingNote": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "disappointsNote": {
            "type": "string"
          },
          "bestFor": {
            "type": "string"
          },
          "sourceCount": {
            "type": "integer"
          }
        },
        "required": [
          "slug",
          "name",
          "category",
          "url"
        ]
      },
      "Category": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        },
        "required": [
          "slug",
          "name",
          "count"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "ToolList": {
        "type": "object",
        "properties": {
          "updated": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tool"
            }
          },
          "nextCursor": {
            "type": "string",
            "description": "Pass as ?cursor= for the next page. Absent on the last page."
          }
        },
        "required": [
          "count",
          "results"
        ]
      },
      "ToolReviewList": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ToolReview"
            }
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Requested slugs that were not found."
          }
        },
        "required": [
          "count",
          "results"
        ]
      },
      "CategoryList": {
        "type": "object",
        "properties": {
          "updated": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          }
        },
        "required": [
          "count",
          "categories"
        ]
      },
      "BatchRequest": {
        "type": "object",
        "properties": {
          "slugs": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "maxItems": 50,
            "description": "1-50 tool slugs."
          }
        },
        "required": [
          "slugs"
        ]
      }
    }
  }
}