{
  "openapi": "3.1.1",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "Fieldnote Study Tool public API",
    "version": "1.0.0",
    "description": "Read-only public catalogue, subject search shards and lesson-support bundles. Preferred API paths use /api/v1. Breaking changes require a new major URL, such as /api/v2; additive optional fields may be introduced in v1. No version is currently deprecated. Before retiring a major version, Fieldnote will publish at least 90 days of notice at /docs/#api-versioning and emit RFC 9745 Deprecation and RFC 8594 Sunset headers. Accounts, report submission, learner records, live query search and grading are outside this public contract."
  },
  "externalDocs": {
    "url": "https://fieldnote-116.netlify.app/docs/#api-versioning",
    "description": "Fieldnote API versions, typed errors, quotas and public-content boundaries"
  },
  "servers": [
    {
      "url": "https://fieldnote-116.netlify.app"
    }
  ],
  "security": [],
  "paths": {
    "/api/v1/catalog": {
      "get": {
        "operationId": "readV1PublicCatalog",
        "summary": "Read Fieldnote subjects and topic coverage",
        "description": "Unauthenticated public teaching content. No personal learner records. Query parameters are not supported. All requests share the durable public-read per-IP quota, including HEAD and invalid requests.",
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "The current public teaching resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Catalog"
                }
              }
            }
          },
          "400": {
            "description": "Invalid path encoding or unsupported query parameters.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown subject, topic or versioned resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "406": {
            "description": "The requested representation excludes application/json.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "The durable per-IP public-read quota is exhausted.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Published content, database or rate-limit configuration is unavailable. Quota fields are omitted if no counter snapshot could be read.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "An API failure; the actual HTTP status is repeated in the typed problem object.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "readV1PublicCatalogHeaders",
        "summary": "Read Fieldnote subjects and topic coverage (headers only)",
        "description": "Unauthenticated public teaching content. No personal learner records. Query parameters are not supported. All requests share the durable public-read per-IP quota, including HEAD and invalid requests.",
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "The GET response headers without a response body.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            }
          },
          "400": {
            "description": "Invalid path encoding or unsupported query parameters.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown subject, topic or versioned resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "406": {
            "description": "The requested representation excludes application/json.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "The durable per-IP public-read quota is exhausted.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Published content, database or rate-limit configuration is unavailable. Quota fields are omitted if no counter snapshot could be read.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "An API failure; the actual HTTP status is repeated in the typed problem object.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/search-indexes/{subject}": {
      "get": {
        "operationId": "readV1SubjectSearchIndex",
        "summary": "Read a Fieldnote subject search shard",
        "description": "Unauthenticated public teaching content. No personal learner records. Query parameters are not supported. All requests share the durable public-read per-IP quota, including HEAD and invalid requests.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The current public teaching resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            }
          },
          "400": {
            "description": "Invalid path encoding or unsupported query parameters.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown subject, topic or versioned resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "406": {
            "description": "The requested representation excludes application/json.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "The durable per-IP public-read quota is exhausted.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Published content, database or rate-limit configuration is unavailable. Quota fields are omitted if no counter snapshot could be read.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "An API failure; the actual HTTP status is repeated in the typed problem object.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "readV1SubjectSearchIndexHeaders",
        "summary": "Read a Fieldnote subject search shard (headers only)",
        "description": "Unauthenticated public teaching content. No personal learner records. Query parameters are not supported. All requests share the durable public-read per-IP quota, including HEAD and invalid requests.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The GET response headers without a response body.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            }
          },
          "400": {
            "description": "Invalid path encoding or unsupported query parameters.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown subject, topic or versioned resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "406": {
            "description": "The requested representation excludes application/json.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "The durable per-IP public-read quota is exhausted.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Published content, database or rate-limit configuration is unavailable. Quota fields are omitted if no counter snapshot could be read.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "An API failure; the actual HTTP status is repeated in the typed problem object.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/lesson-bundles/{subject}/{topicId}": {
      "get": {
        "operationId": "readV1LessonSupportBundle",
        "summary": "Read a Fieldnote worked example and workshop bundle",
        "description": "Unauthenticated public teaching content. No personal learner records. Query parameters are not supported. All requests share the durable public-read per-IP quota, including HEAD and invalid requests.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          },
          {
            "name": "topicId",
            "in": "path",
            "required": true,
            "description": "An id from the catalogue for the same subject. Titles and browser hash fragments are not ids.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9-]{1,100}$"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The current public teaching resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonBundle"
                }
              }
            }
          },
          "400": {
            "description": "Invalid path encoding or unsupported query parameters.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown subject, topic or versioned resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "406": {
            "description": "The requested representation excludes application/json.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "The durable per-IP public-read quota is exhausted.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Published content, database or rate-limit configuration is unavailable. Quota fields are omitted if no counter snapshot could be read.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "An API failure; the actual HTTP status is repeated in the typed problem object.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "readV1LessonSupportBundleHeaders",
        "summary": "Read a Fieldnote worked example and workshop bundle (headers only)",
        "description": "Unauthenticated public teaching content. No personal learner records. Query parameters are not supported. All requests share the durable public-read per-IP quota, including HEAD and invalid requests.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          },
          {
            "name": "topicId",
            "in": "path",
            "required": true,
            "description": "An id from the catalogue for the same subject. Titles and browser hash fragments are not ids.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9-]{1,100}$"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The GET response headers without a response body.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            }
          },
          "400": {
            "description": "Invalid path encoding or unsupported query parameters.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Unknown subject, topic or versioned resource.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "406": {
            "description": "The requested representation excludes application/json.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "The durable per-IP public-read quota is exhausted.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "Published content, database or rate-limit configuration is unavailable. Quota fields are omitted if no counter snapshot could be read.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "An API failure; the actual HTTP status is repeated in the typed problem object.",
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "API-Version": {
                "$ref": "#/components/headers/APIVersion"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/agent/catalog.json": {
      "get": {
        "operationId": "readPublicCatalog",
        "summary": "Read the compatibility topic catalogue",
        "description": "Compatibility static JSON URL. Success content and CDN cache behavior are unchanged. Query parameters such as v are allowed; Accept does not select a different representation. No application-managed public-read quota or API-Version header applies here. Prefer the /api/v1 resource for versioned contracts and quota feedback.",
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "The current public teaching resource.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Catalog"
                }
              }
            }
          },
          "404": {
            "description": "No published static resource exists at this path.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "A static-resource failure converted to typed JSON by the public resource boundary.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "readPublicCatalogHeaders",
        "summary": "Read the compatibility topic catalogue (headers only)",
        "description": "Compatibility static JSON URL. Success content and CDN cache behavior are unchanged. Query parameters such as v are allowed; Accept does not select a different representation. No application-managed public-read quota or API-Version header applies here. Prefer the /api/v1 resource for versioned contracts and quota feedback.",
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "The GET response headers without a response body.",
            "headers": {}
          },
          "404": {
            "description": "No published static resource exists at this path.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "A static-resource failure converted to typed JSON by the public resource boundary.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/search-indexes/{subject}.json": {
      "get": {
        "operationId": "readSubjectSearchIndex",
        "summary": "Read a compatibility subject search shard",
        "description": "Compatibility static JSON URL. Success content and CDN cache behavior are unchanged. Query parameters such as v are allowed; Accept does not select a different representation. No application-managed public-read quota or API-Version header applies here. Prefer the /api/v1 resource for versioned contracts and quota feedback.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The current public teaching resource.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchIndex"
                }
              }
            }
          },
          "404": {
            "description": "No published static resource exists at this path.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "A static-resource failure converted to typed JSON by the public resource boundary.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "readSubjectSearchIndexHeaders",
        "summary": "Read a compatibility subject search shard (headers only)",
        "description": "Compatibility static JSON URL. Success content and CDN cache behavior are unchanged. Query parameters such as v are allowed; Accept does not select a different representation. No application-managed public-read quota or API-Version header applies here. Prefer the /api/v1 resource for versioned contracts and quota feedback.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The GET response headers without a response body.",
            "headers": {}
          },
          "404": {
            "description": "No published static resource exists at this path.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "A static-resource failure converted to typed JSON by the public resource boundary.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/lesson-bundles/{subject}/{topicId}.json": {
      "get": {
        "operationId": "readLessonSupportBundle",
        "summary": "Read a compatibility lesson-support bundle",
        "description": "Compatibility static JSON URL. Success content and CDN cache behavior are unchanged. Query parameters such as v are allowed; Accept does not select a different representation. No application-managed public-read quota or API-Version header applies here. Prefer the /api/v1 resource for versioned contracts and quota feedback.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          },
          {
            "name": "topicId",
            "in": "path",
            "required": true,
            "description": "An id from the catalogue for the same subject. Titles and browser hash fragments are not ids.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9-]{1,100}$"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The current public teaching resource.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonBundle"
                }
              }
            }
          },
          "404": {
            "description": "No published static resource exists at this path.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "A static-resource failure converted to typed JSON by the public resource boundary.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "head": {
        "operationId": "readLessonSupportBundleHeaders",
        "summary": "Read a compatibility lesson-support bundle (headers only)",
        "description": "Compatibility static JSON URL. Success content and CDN cache behavior are unchanged. Query parameters such as v are allowed; Accept does not select a different representation. No application-managed public-read quota or API-Version header applies here. Prefer the /api/v1 resource for versioned contracts and quota feedback.",
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "description": "A subject id returned by the public catalogue.",
            "schema": {
              "type": "string",
              "enum": [
                "maths",
                "biology",
                "chemistry",
                "physics",
                "business",
                "computer-science"
              ]
            }
          },
          {
            "name": "topicId",
            "in": "path",
            "required": true,
            "description": "An id from the catalogue for the same subject. Titles and browser hash fragments are not ids.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9-]{1,100}$"
            }
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "The GET response headers without a response body.",
            "headers": {}
          },
          "404": {
            "description": "No published static resource exists at this path.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are supported.",
            "headers": {
              "Allow": {
                "$ref": "#/components/headers/Allow"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "default": {
            "description": "A static-resource failure converted to typed JSON by the public resource boundary.",
            "headers": {},
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance",
          "code",
          "error",
          "message",
          "resolution"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "Stable problem type URI documented under /docs/#problem-<code>."
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string",
            "format": "uri-reference",
            "description": "Request pathname only; excludes query parameters, credentials and fragments."
          },
          "code": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,63}$"
          },
          "error": {
            "type": "string",
            "description": "Compatibility alias equal to code; existing browser clients use this field."
          },
          "message": {
            "type": "string",
            "description": "Human-readable compatibility alias for detail."
          },
          "resolution": {
            "type": "string",
            "description": "A safe next step; never a stack trace, credential or database diagnostic."
          }
        }
      },
      "Subject": {
        "type": "object",
        "required": [
          "id",
          "name",
          "path",
          "searchIndex"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "maths",
              "biology",
              "chemistry",
              "physics",
              "business",
              "computer-science"
            ]
          },
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string",
            "description": "Relative subject-workspace URL."
          },
          "searchIndex": {
            "type": "string",
            "description": "Compatibility static search-shard URL."
          }
        }
      },
      "Topic": {
        "type": "object",
        "required": [
          "subject",
          "id",
          "title",
          "path",
          "profiles",
          "scopes"
        ],
        "properties": {
          "subject": {
            "type": "string",
            "enum": [
              "maths",
              "biology",
              "chemistry",
              "physics",
              "business",
              "computer-science"
            ]
          },
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "path": {
            "type": "string",
            "description": "Relative navigation URL; a # fragment is browser state, not an HTTP endpoint."
          },
          "profiles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scopes": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "reading": {
                  "type": "array",
                  "items": {
                    "type": [
                      "string",
                      "integer"
                    ]
                  }
                },
                "cards": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "group": {
            "type": "string"
          }
        }
      },
      "Catalog": {
        "type": "object",
        "required": [
          "version",
          "name",
          "subjects",
          "topics"
        ],
        "properties": {
          "version": {
            "const": 1
          },
          "name": {
            "const": "Fieldnote"
          },
          "subjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Subject"
            }
          },
          "topics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Topic"
            }
          }
        }
      },
      "SearchRecord": {
        "type": "object",
        "required": [
          "id",
          "subject",
          "kind",
          "title",
          "parent",
          "path",
          "body",
          "profiles"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "subject": {
            "type": "string",
            "enum": [
              "maths",
              "biology",
              "chemistry",
              "physics",
              "business",
              "computer-science"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "notes",
              "examples",
              "reference",
              "tools"
            ]
          },
          "title": {
            "type": "string"
          },
          "parent": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "profiles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "titleTh": {
            "type": "string"
          },
          "parentTh": {
            "type": "string"
          },
          "bodyTh": {
            "type": "string"
          }
        }
      },
      "SearchIndex": {
        "type": "object",
        "required": [
          "version",
          "records"
        ],
        "properties": {
          "version": {
            "const": 1
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchRecord"
            }
          }
        }
      },
      "WorkedExample": {
        "type": "object",
        "required": [
          "subject",
          "id",
          "question",
          "hint",
          "steps",
          "answer",
          "pitfall",
          "tryQuestion",
          "tryAnswer"
        ],
        "properties": {
          "subject": {
            "type": "string",
            "enum": [
              "maths",
              "biology",
              "chemistry",
              "physics",
              "business",
              "computer-science"
            ]
          },
          "id": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "hint": {
            "type": "string"
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "answer": {
            "type": "string"
          },
          "pitfall": {
            "type": "string"
          },
          "tryQuestion": {
            "type": "string"
          },
          "tryAnswer": {
            "type": "string"
          }
        }
      },
      "Workshop": {
        "type": "object",
        "required": [
          "subject",
          "id",
          "question",
          "points",
          "profiles"
        ],
        "properties": {
          "subject": {
            "type": "string",
            "enum": [
              "maths",
              "biology",
              "chemistry",
              "physics",
              "business",
              "computer-science"
            ]
          },
          "id": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "points": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "LessonBundle": {
        "type": "object",
        "required": [
          "version",
          "subject",
          "topic",
          "example",
          "workshops"
        ],
        "properties": {
          "version": {
            "const": 1
          },
          "subject": {
            "type": "string",
            "enum": [
              "maths",
              "biology",
              "chemistry",
              "physics",
              "business",
              "computer-science"
            ]
          },
          "topic": {
            "type": "string"
          },
          "example": {
            "$ref": "#/components/schemas/WorkedExample"
          },
          "workshops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Workshop"
            }
          }
        }
      }
    },
    "headers": {
      "APIVersion": {
        "description": "Preferred resource contract major version; the URL remains authoritative.",
        "schema": {
          "type": "string",
          "const": "1"
        }
      },
      "Allow": {
        "description": "Supported methods for this read-only resource.",
        "schema": {
          "type": "string",
          "const": "GET, HEAD"
        }
      },
      "RateLimitPolicy": {
        "description": "Work-in-progress draft-ietf-httpapi-ratelimit-headers-11 / RFC 9651 structured list, NOT a finalized RateLimit RFC. One request costs one quota unit. The durable public-read quota is 120 requests per aligned 60-second window per client IP, shared by all /api/v1 paths and function instances.",
        "schema": {
          "type": "string"
        },
        "example": "\"public-read\";q=120;w=60"
      },
      "RateLimit": {
        "description": "Consumed durable-counter snapshot using the same work-in-progress structured-list draft: r is requests remaining and t is seconds until window reset. Not cached. A positive r is not a guarantee that a future request will be served; concurrent clients sharing an IP consume the same quota. Absent when the quota store cannot be read.",
        "schema": {
          "type": "string"
        },
        "example": "\"public-read\";r=119;t=42"
      },
      "RetryAfter": {
        "description": "RFC 9110 delay-seconds until the exhausted public-read window resets. Present on 429; wait at least this long before retrying.",
        "schema": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "example": "42"
      }
    }
  }
}
