{
  "openapi": "3.1.0",
  "info": {
    "title": "리옵트 플레이스 (Reopt Place) public API",
    "summary": "Curated maps of places in Korea, readable by agents.",
    "description": "리옵트 플레이스(Reopt Place)의 공개 엔드포인트 — MCP 서버, 마크다운 콘텐츠 협상, 지도 데이터셋 JSON, OpenAPI, llms.txt. 인증 없이 무료로 씁니다.",
    "version": "1.0.0",
    "contact": {
      "name": "reopt Inc.",
      "email": "contact@reopt.ai",
      "url": "https://place.reopt.ai/contact"
    },
    "license": {
      "name": "Terms of use",
      "url": "https://place.reopt.ai/terms"
    },
    "termsOfService": "https://place.reopt.ai/terms"
  },
  "servers": [
    {
      "url": "https://place.reopt.ai",
      "description": "Production"
    }
  ],
  "externalDocs": {
    "description": "개발자 문서",
    "url": "https://place.reopt.ai/developers"
  },
  "security": [],
  "tags": [
    {
      "name": "dataset",
      "description": "Bulk data for agents and importers"
    },
    {
      "name": "agents",
      "description": "Agent-facing indexes and representations"
    },
    {
      "name": "mcp",
      "description": "Model Context Protocol endpoint"
    }
  ],
  "paths": {
    "/map-data": {
      "get": {
        "tags": [
          "dataset"
        ],
        "operationId": "getMapDataset",
        "summary": "Full dataset: collections, places, brands, events",
        "description": "The dataset the map itself renders. Prefer this over crawling pages when you need everything.",
        "responses": {
          "200": {
            "description": "The complete dataset",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "collections": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "brands": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "required": [
                    "collections",
                    "brands",
                    "events"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": [
          "agents"
        ],
        "operationId": "getLlmsTxt",
        "summary": "Agent index with when-to-use guidance",
        "responses": {
          "200": {
            "description": "llms.txt",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "tags": [
          "agents"
        ],
        "operationId": "getLlmsFullTxt",
        "summary": "Every document concatenated as one file",
        "responses": {
          "200": {
            "description": "llms-full.txt",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/collections/{collectionId}": {
      "get": {
        "tags": [
          "agents"
        ],
        "operationId": "getCollection",
        "summary": "One collection as HTML or Markdown",
        "description": "Send `Accept: text/markdown` to get the Markdown representation instead of the map page. `Accept: application/pdf` (or any type this endpoint cannot produce) returns 406.",
        "parameters": [
          {
            "name": "collectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "seoul-cafes"
          },
          {
            "name": "Accept",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "default": "text/html"
            },
            "example": "text/markdown"
          }
        ],
        "responses": {
          "200": {
            "description": "The collection page",
            "headers": {
              "Vary": {
                "description": "Accept, on the Markdown representation",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown collection"
          },
          "406": {
            "description": "No representation matches the Accept header"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "tags": [
          "mcp"
        ],
        "operationId": "postMcp",
        "summary": "MCP endpoint (Streamable HTTP, protocol 2026-07-28)",
        "description": "One JSON-RPC 2.0 message per request. Supports server/discover, tools/list, tools/call, ping, and the handshake-era initialize for older clients.",
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "2026-07-28"
          },
          {
            "name": "Mcp-Method",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "tools/list"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                },
                "required": [
                  "jsonrpc",
                  "method"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted (no body)"
          },
          "400": {
            "description": "JSON-RPC error: malformed, header mismatch, or bad version"
          },
          "403": {
            "description": "Invalid Origin header"
          },
          "404": {
            "description": "JSON-RPC error -32601: method not found"
          },
          "405": {
            "description": "GET and DELETE are not part of this protocol revision"
          }
        }
      }
    }
  }
}