{
  "openapi": "3.1.0",
  "info": {
    "title": "Junie by JetBrains — Public API",
    "version": "1.0.0",
    "summary": "Public, machine-readable HTTP endpoints exposed by junie.jetbrains.com.",
    "description": "Junie by JetBrains. AI Coding Agent.\n\nThis specification covers only endpoints that an external client or agent can call without authentication: the site's machine-readable resource routes and the public, unauthenticated portion of the API proxied to the Junie Cloud backend under `/api/public/*`. Authenticated portal/CLI and internal endpoints are not listed here.",
    "contact": {
      "name": "Junie by JetBrains",
      "url": "https://junie.jetbrains.com"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://junie.jetbrains.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Site",
      "description": "Machine-readable resource routes served by the website."
    },
    {
      "name": "Public API",
      "description": "Unauthenticated backend endpoints proxied via /api/*."
    }
  ],
  "paths": {
    "/healthz": {
      "get": {
        "tags": [
          "Site"
        ],
        "operationId": "getHealthz",
        "summary": "Website health check.",
        "responses": {
          "200": {
            "description": "Service is healthy.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "example": "Ok"
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "tags": [
          "Site"
        ],
        "operationId": "getSitemap",
        "summary": "XML sitemap of every public page.",
        "responses": {
          "200": {
            "description": "Sitemap document.",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/robots.txt": {
      "get": {
        "tags": [
          "Site"
        ],
        "operationId": "getRobots",
        "summary": "Robots exclusion rules.",
        "responses": {
          "200": {
            "description": "robots.txt document.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": [
          "Site"
        ],
        "operationId": "getLlmsTxt",
        "summary": "Agent entry point with links to key resources (llms.txt convention).",
        "responses": {
          "200": {
            "description": "Markdown document of curated links.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "Site"
        ],
        "operationId": "getOpenApiJson",
        "summary": "This OpenAPI document (JSON).",
        "responses": {
          "200": {
            "description": "OpenAPI 3 document.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "Site"
        ],
        "operationId": "getHome",
        "summary": "Homepage. Supports Markdown content negotiation.",
        "description": "Returns HTML by default. When the request prefers `text/markdown` via the `Accept` header, a Markdown representation is returned instead. Responses set `Vary: Accept`.",
        "parameters": [
          {
            "name": "Accept",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "example": "text/markdown"
            },
            "description": "Send `text/markdown` to receive the Markdown variant."
          }
        ],
        "responses": {
          "200": {
            "description": "Homepage content.",
            "headers": {
              "Vary": {
                "schema": {
                  "type": "string",
                  "example": "Accept"
                }
              }
            },
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/no-auth/update-info": {
      "get": {
        "tags": [
          "Public API"
        ],
        "operationId": "getUpdateInfo",
        "summary": "Junie version / update metadata for a given artifact.",
        "parameters": [
          {
            "name": "file",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Instance id."
          },
          {
            "name": "version",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "os",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "arch",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Update metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid parameters."
          }
        }
      }
    },
    "/api/public/registry/{registry}/extensions": {
      "get": {
        "tags": [
          "Public API"
        ],
        "operationId": "listRegistryExtensions",
        "summary": "List extensions available in a public registry.",
        "parameters": [
          {
            "name": "registry",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Extension list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/public/registry/{registry}/extensions/{name}": {
      "get": {
        "tags": [
          "Public API"
        ],
        "operationId": "getRegistryExtension",
        "summary": "Details for a single extension in a public registry.",
        "parameters": [
          {
            "name": "registry",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Extension details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Extension not found."
          }
        }
      }
    }
  }
}