{
  "openapi": "3.1.0",
  "info": {
    "title": "Peeve public content API",
    "summary": "Read-only endpoints an agent can call to fetch Peeve's page content as Markdown, the product changelog, and machine-readable agent/MCP descriptors.",
    "description": "Peeve (https://peeve.ai) is an AI customer support agent. This spec covers the public, unauthenticated, read-only HTTP surface of the marketing site so agents can discover and function-call it.\n\nEvery marketing page also has a Markdown twin: append `.md` to any page path (for example `/pricing.md`, `/product/show.md`, `/vs/intercom-fin.md`), or request the canonical URL with `Accept: text/markdown`. Markdown responses send `Vary: Accept`, so caches keep the HTML and Markdown representations separate.\n\nThe product's own capabilities (answering, showing, and taking backend actions) are exposed to a customer's users' agents over MCP at `mcp.peeve.ai/<workspace-id>/u/<contact-id>`, described in the MCP server card. This OpenAPI document does not cover authenticated product endpoints.",
    "version": "1.0.0",
    "contact": {
      "name": "Peeve",
      "url": "https://peeve.ai/developers/"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://peeve.ai/legal/terms/"
    }
  },
  "externalDocs": {
    "description": "Developer docs: install, SDK, API and MCP",
    "url": "https://peeve.ai/developers/"
  },
  "servers": [
    {
      "url": "https://peeve.ai",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/changelog": {
      "get": {
        "operationId": "getChangelog",
        "summary": "List product changelog entries",
        "description": "Returns every published Peeve changelog entry, newest first. No authentication. Useful for an agent answering 'what changed recently in Peeve'.",
        "responses": {
          "200": {
            "description": "Changelog entries, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "entries"
                  ],
                  "properties": {
                    "entries": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ChangelogEntry"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsSummary",
        "summary": "One-screen site summary for LLMs",
        "description": "The llms.txt index: a one-screen, plain-text summary of Peeve with links to every section's Markdown twin, when-to-use guidance, and developer resources. Follows the llmstxt.org convention.",
        "responses": {
          "200": {
            "description": "Plain-text summary.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFull",
        "summary": "Full flattened text of every marketing page",
        "description": "The flattened plain text of every marketing page in one document, for an agent that wants the complete corpus in a single fetch.",
        "responses": {
          "200": {
            "description": "Full plain-text corpus.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/AGENTS.md": {
      "get": {
        "operationId": "getAgentsGuide",
        "summary": "Agent instructions: when and how to use Peeve",
        "description": "Markdown guidance for agents: what Peeve is, when to reach for it, what you can read here, where each thing lives, and how a customer's users' agents connect over MCP.",
        "responses": {
          "200": {
            "description": "Markdown agent guide.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/{page}.md": {
      "get": {
        "operationId": "getPageMarkdown",
        "summary": "Markdown twin of any marketing page",
        "description": "Returns the Markdown rendering of any marketing page. Take any page path and append `.md`. The `page` value may contain slashes for nested pages. Equivalent to requesting the canonical URL with `Accept: text/markdown`.",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "The page path without a leading slash or trailing `.md`. May contain slashes for nested pages.",
            "schema": {
              "type": "string"
            },
            "examples": {
              "pricing": {
                "value": "pricing"
              },
              "product": {
                "value": "product/show"
              },
              "comparison": {
                "value": "vs/intercom-fin"
              },
              "glossary": {
                "value": "glossary/drift-detection"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown rendering of the page.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No page exists at that path.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp/server-card.json": {
      "get": {
        "operationId": "getMcpServerCard",
        "summary": "MCP server card",
        "description": "Machine-readable description of Peeve's MCP surface: how a customer's users' agents connect to a scoped endpoint and which typed tools are exposed. Each tool states its effect before it runs.",
        "responses": {
          "200": {
            "description": "MCP server card (JSON).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ChangelogEntry": {
        "type": "object",
        "required": [
          "slug",
          "date",
          "title",
          "md",
          "html"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "description": "Stable URL slug for the entry.",
            "examples": [
              "per-user-agent-grants"
            ]
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Release date, ISO YYYY-MM-DD."
          },
          "title": {
            "type": "string",
            "description": "Short headline for the change."
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Semantic version, if tagged.",
            "examples": [
              "v1.4.0"
            ]
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional label.",
            "examples": [
              "New",
              "Beta",
              "Fix"
            ]
          },
          "md": {
            "type": "string",
            "description": "Entry body as Markdown."
          },
          "html": {
            "type": "string",
            "description": "Entry body rendered to HTML."
          }
        }
      }
    }
  }
}