{
  "openapi": "3.1.0",
  "info": {
    "title": "Claustr API",
    "version": "1.0.0",
    "summary": "Read-only facts about Claustr, its products, its documents and its blog.",
    "description": "The public API of claustr.com. It answers questions about the company Claustr: who it is, which products it sells, its pages and legal texts, and its blog posts.\n\n**Open API.** No key, no sign-up and no OAuth: every operation is a GET that changes nothing, so there is nothing to protect and no sandbox is needed. Send requests from any origin (CORS is open).\n\n**Rate limit.** 300 requests per 60 seconds for each client address. Every answer carries RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset and RateLimit-Policy; a 429 also carries Retry-After.\n\n**Errors.** Every error is an RFC 9457 problem document (application/problem+json) with a stable `code` and a `hint` that says what to do next.\n\n**Pagination.** List operations take `limit` and `cursor` and answer with `pagination.next_cursor`. Send that value back as `cursor` for the next page; `null` means the list is complete.\n\n**Versions.** The version is in the path (/api/v1). A change that could break a caller ships under a new path version. Before a version is retired, its answers carry the Deprecation (RFC 9745) and Sunset (RFC 8594) headers for at least 90 days.\n\nFor anything about the product PlatformPilot (its own API, MCP server, sign-up and prices), use https://platformpilot.ai/developers.",
    "contact": {
      "name": "Claustr",
      "url": "https://claustr.com/contact"
    },
    "termsOfService": "https://claustr.com/legal/terms/"
  },
  "externalDocs": {
    "description": "API reference and examples",
    "url": "https://claustr.com/developers"
  },
  "servers": [
    {
      "url": "https://claustr.com",
      "description": "Production"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "Company",
      "description": "The company's facts."
    },
    {
      "name": "Products",
      "description": "The products Claustr sells."
    },
    {
      "name": "Documents",
      "description": "The site's pages, legal texts and blog posts, as Markdown."
    },
    {
      "name": "Search",
      "description": "Search over the documents."
    }
  ],
  "paths": {
    "/api/v1": {
      "get": {
        "operationId": "getApiIndex",
        "tags": [
          "Company"
        ],
        "summary": "List the API's endpoints",
        "description": "Returns the API's name, version and endpoints, with links to this description, the reference and the MCP server.",
        "security": [],
        "responses": {
          "200": {
            "description": "The API index.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiIndex"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/company": {
      "get": {
        "operationId": "getCompany",
        "tags": [
          "Company"
        ],
        "summary": "Get the company's facts",
        "description": "Returns what Claustr builds, its principles, founders, accelerator, postal address, contact addresses and social profiles.",
        "security": [],
        "responses": {
          "200": {
            "description": "The company.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Company"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/products": {
      "get": {
        "operationId": "listProducts",
        "tags": [
          "Products"
        ],
        "summary": "List the products",
        "description": "Returns the products Claustr sells, each with its website, pricing page and developer docs.",
        "security": [],
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of products.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/products/{product_id}": {
      "get": {
        "operationId": "getProduct",
        "tags": [
          "Products"
        ],
        "summary": "Get one product",
        "description": "Returns one product by its id, as listed by listProducts.",
        "security": [],
        "parameters": [
          {
            "name": "product_id",
            "in": "path",
            "required": true,
            "description": "The product's id, for example \"platformpilot\".",
            "schema": {
              "type": "string"
            },
            "example": "platformpilot"
          }
        ],
        "responses": {
          "200": {
            "description": "The product.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Product"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/v1/documents": {
      "get": {
        "operationId": "listDocuments",
        "tags": [
          "Documents"
        ],
        "summary": "List the documents",
        "description": "Returns the site's pages, developer docs, pricing summary, legal texts and blog posts, without their content. Filter with `kind`.",
        "security": [],
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "Return only documents of this kind.",
            "schema": {
              "type": "string",
              "enum": [
                "page",
                "developer",
                "pricing",
                "legal",
                "post"
              ]
            },
            "example": "post"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of documents.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "pagination"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DocumentSummary"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/BlogUnavailable"
          }
        }
      }
    },
    "/api/v1/documents/{document_id}": {
      "get": {
        "operationId": "getDocument",
        "tags": [
          "Documents"
        ],
        "summary": "Get one document with its Markdown",
        "description": "Returns one document by its id, with its full content as Markdown.",
        "security": [],
        "parameters": [
          {
            "name": "document_id",
            "in": "path",
            "required": true,
            "description": "The document's id from listDocuments or searchDocuments, for example \"about\" or \"legal-privacy\".",
            "schema": {
              "type": "string"
            },
            "example": "about"
          }
        ],
        "responses": {
          "200": {
            "description": "The document.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Document"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/BlogUnavailable"
          }
        }
      }
    },
    "/api/v1/search": {
      "get": {
        "operationId": "searchDocuments",
        "tags": [
          "Search"
        ],
        "summary": "Search the documents",
        "description": "Finds the documents that match the words in `q`: the site's own documents by keyword, and blog posts by the blog's own search. Each result has a snippet.",
        "security": [],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The words to look for. At most 200 characters.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "privacy"
          },
          {
            "$ref": "#/components/parameters/Limit"
          }
        ],
        "responses": {
          "200": {
            "description": "The matching documents, best first.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResults"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "Limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "How many items to return.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 20
        }
      },
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "The `pagination.next_cursor` of the last answer. Leave it out to start from the first item.",
        "schema": {
          "type": "string"
        }
      }
    },
    "headers": {
      "RateLimit-Limit": {
        "description": "The number of requests allowed in each window.",
        "schema": {
          "type": "integer"
        },
        "example": 300
      },
      "RateLimit-Remaining": {
        "description": "The number of requests left in the current window.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Reset": {
        "description": "Seconds until the current window ends.",
        "schema": {
          "type": "integer"
        }
      },
      "RateLimit-Policy": {
        "description": "The limit and its window in seconds.",
        "schema": {
          "type": "string"
        },
        "example": "300;w=60"
      },
      "Retry-After": {
        "description": "Seconds to wait before the next request.",
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A parameter is missing or not valid. `code` names which one and `hint` says what to send.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "There is nothing with that id or at that path.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Too many requests. Wait for Retry-After seconds.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "BlogUnavailable": {
        "description": "The blog could not be read, so posts are not available now.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "InternalError": {
        "description": "The request could not be answered.",
        "headers": {
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "An error, as RFC 9457 problem details.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "hint",
          "instance"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "A link to the documentation of errors.",
            "format": "uri"
          },
          "title": {
            "type": "string",
            "description": "A short name for the kind of error."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code."
          },
          "detail": {
            "type": "string",
            "description": "What went wrong in this request."
          },
          "code": {
            "type": "string",
            "description": "A stable code for programs.",
            "enum": [
              "invalid_limit",
              "invalid_cursor",
              "invalid_kind",
              "missing_query",
              "query_too_long",
              "not_found",
              "unknown_version",
              "method_not_allowed",
              "rate_limited",
              "blog_unavailable",
              "internal_error"
            ]
          },
          "hint": {
            "type": "string",
            "description": "What to do next."
          },
          "instance": {
            "type": "string",
            "description": "The path of the request."
          }
        }
      },
      "Pagination": {
        "type": "object",
        "required": [
          "limit",
          "next_cursor",
          "has_more"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "description": "The page size used."
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Send this as `cursor` for the next page. Null when there are no more items."
          },
          "has_more": {
            "type": "boolean",
            "description": "Whether there are more items."
          }
        }
      },
      "ApiIndex": {
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "documentation_url",
          "openapi_url",
          "mcp_url",
          "endpoints"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The API's name."
          },
          "version": {
            "type": "string",
            "description": "The API's version."
          },
          "description": {
            "type": "string",
            "description": "What the API is for."
          },
          "documentation_url": {
            "type": "string",
            "description": "The reference for people.",
            "format": "uri"
          },
          "openapi_url": {
            "type": "string",
            "description": "This description.",
            "format": "uri"
          },
          "mcp_url": {
            "type": "string",
            "description": "The MCP server that serves the same documents.",
            "format": "uri"
          },
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "method",
                "path",
                "summary"
              ],
              "properties": {
                "method": {
                  "type": "string",
                  "description": "The HTTP method."
                },
                "path": {
                  "type": "string",
                  "description": "The path, with parameters in braces."
                },
                "summary": {
                  "type": "string",
                  "description": "What the endpoint returns."
                }
              }
            }
          }
        }
      },
      "Company": {
        "type": "object",
        "required": [
          "name",
          "former_name",
          "legal_entity",
          "summary",
          "principles",
          "founders",
          "accelerator",
          "address",
          "contacts",
          "social",
          "website",
          "markdown_url",
          "llms_txt_url"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The company's name."
          },
          "former_name": {
            "type": "string",
            "description": "The name the company used before."
          },
          "legal_entity": {
            "type": "string",
            "description": "The legal entity."
          },
          "summary": {
            "type": "string",
            "description": "What the company builds."
          },
          "principles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The company's principles."
          },
          "founders": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "role"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The founder's name."
                },
                "role": {
                  "type": "string",
                  "description": "The founder's role."
                }
              }
            }
          },
          "accelerator": {
            "type": "object",
            "required": [
              "name",
              "cohort",
              "url"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "The accelerator's name."
              },
              "cohort": {
                "type": "integer",
                "description": "The cohort number."
              },
              "url": {
                "type": "string",
                "description": "The accelerator's page.",
                "format": "uri"
              }
            }
          },
          "address": {
            "type": "string",
            "description": "The postal address."
          },
          "contacts": {
            "type": "array",
            "description": "Email addresses, each for one kind of matter.",
            "items": {
              "type": "object",
              "required": [
                "purpose",
                "email"
              ],
              "properties": {
                "purpose": {
                  "type": "string",
                  "description": "What the address is for.",
                  "enum": [
                    "legal",
                    "privacy",
                    "security",
                    "abuse"
                  ]
                },
                "email": {
                  "type": "string",
                  "description": "The email address.",
                  "format": "email"
                }
              }
            }
          },
          "social": {
            "type": "object",
            "required": [
              "x",
              "linkedin",
              "youtube",
              "github"
            ],
            "properties": {
              "x": {
                "type": "string",
                "description": "The X profile.",
                "format": "uri"
              },
              "linkedin": {
                "type": "string",
                "description": "The LinkedIn page.",
                "format": "uri"
              },
              "youtube": {
                "type": "string",
                "description": "The YouTube channel.",
                "format": "uri"
              },
              "github": {
                "type": "string",
                "description": "The GitHub organization.",
                "format": "uri"
              }
            }
          },
          "website": {
            "type": "string",
            "description": "The company's site.",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "description": "The home page as Markdown.",
            "format": "uri"
          },
          "llms_txt_url": {
            "type": "string",
            "description": "The site's guide for agents.",
            "format": "uri"
          }
        }
      },
      "Product": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "url",
          "pricing_url",
          "llms_txt_url",
          "developers_url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The product's id."
          },
          "name": {
            "type": "string",
            "description": "The product's name."
          },
          "description": {
            "type": "string",
            "description": "What the product does."
          },
          "url": {
            "type": "string",
            "description": "The product's site.",
            "format": "uri"
          },
          "pricing_url": {
            "type": "string",
            "description": "The product's plans and prices.",
            "format": "uri"
          },
          "llms_txt_url": {
            "type": "string",
            "description": "The product's guide for agents.",
            "format": "uri"
          },
          "developers_url": {
            "type": "string",
            "description": "The product's developer docs.",
            "format": "uri"
          }
        }
      },
      "DocumentSummary": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "title",
          "description",
          "url",
          "markdown_url",
          "published"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The document's id, for example \"about\" or \"post-open-sourcing-handoffkit\"."
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "developer",
              "pricing",
              "legal",
              "post"
            ],
            "description": "What the document is."
          },
          "title": {
            "type": "string",
            "description": "The document's title."
          },
          "description": {
            "type": "string",
            "description": "One or two sentences about the document. Empty when a post has no summary."
          },
          "url": {
            "type": "string",
            "description": "The page a person reads.",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "description": "The same content as Markdown.",
            "format": "uri"
          },
          "published": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "A post's publication date. Null for other documents and for a post without one."
          }
        }
      },
      "Document": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "title",
          "description",
          "url",
          "markdown_url",
          "published",
          "markdown"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The document's id, for example \"about\" or \"post-open-sourcing-handoffkit\"."
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "developer",
              "pricing",
              "legal",
              "post"
            ],
            "description": "What the document is."
          },
          "title": {
            "type": "string",
            "description": "The document's title."
          },
          "description": {
            "type": "string",
            "description": "One or two sentences about the document. Empty when a post has no summary."
          },
          "url": {
            "type": "string",
            "description": "The page a person reads.",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "description": "The same content as Markdown.",
            "format": "uri"
          },
          "published": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "A post's publication date. Null for other documents and for a post without one."
          },
          "markdown": {
            "type": "string",
            "description": "The document's full content as Markdown."
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "title",
          "description",
          "url",
          "markdown_url",
          "published",
          "snippet"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The document's id, for example \"about\" or \"post-open-sourcing-handoffkit\"."
          },
          "kind": {
            "type": "string",
            "enum": [
              "page",
              "developer",
              "pricing",
              "legal",
              "post"
            ],
            "description": "What the document is."
          },
          "title": {
            "type": "string",
            "description": "The document's title."
          },
          "description": {
            "type": "string",
            "description": "One or two sentences about the document. Empty when a post has no summary."
          },
          "url": {
            "type": "string",
            "description": "The page a person reads.",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "description": "The same content as Markdown.",
            "format": "uri"
          },
          "published": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "A post's publication date. Null for other documents and for a post without one."
          },
          "snippet": {
            "type": "string",
            "description": "A short piece of the document near the match."
          }
        }
      },
      "SearchResults": {
        "type": "object",
        "required": [
          "data",
          "query",
          "posts_searched"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchResult"
            }
          },
          "query": {
            "type": "string",
            "description": "The words that were searched."
          },
          "posts_searched": {
            "type": "boolean",
            "description": "False when the blog's search could not be reached: the results then hold the site's own documents only."
          }
        }
      }
    }
  }
}