THE STUDY DESK
Fieldnote Study Tool — Developer Docs
Fieldnote Study Tool public API: versioned learning resources, typed JSON errors, real request quotas and navigation guidance.
Public learning content, not private study records
These Fieldnote docs live at /docs/. The public content resources describe subjects, topics, explanations and worked teaching examples. They do not include a learner's notes, quiz history, review list, password or recovery information. Read public resources without signing in and keep private account activity outside content discovery.
The six subject identifiers are maths, biology, chemistry, physics, business and computer-science. Mathematics uses the /arc/ website folder; its public subject identifier is still maths. Preserve these identifiers, topic IDs, formulas, code and Arabic digits exactly rather than translating them.
Versioned public API and deprecation policy
Prefer GET or HEAD /api/v1/catalog, /api/v1/search-indexes/{subject} and /api/v1/lesson-bundles/{subject}/{topicId}. These return the same public teaching data as the compatibility static files below. They are not live query search, a tutor, a grading API or access to personal records. No account is needed. Send Accept: application/json. Query parameters are not supported on these v1 endpoints.
The /api/v1 URL is the contract major version; API-Version: 1 confirms it. OpenAPI info.version is the documentation release, and JSON version fields describe the resource envelope. Content may change without changing the major version. Clients must tolerate additional optional fields. A breaking contract change requires a new major URL, such as /api/v2.
No API version is currently deprecated or scheduled to retire. Before retiring a major version, Fieldnote will publish a migration notice here at least 90 days in advance. A future deprecated version will emit RFC 9745 Deprecation as a structured date (@ followed by UNIX seconds), RFC 8594 Sunset as an HTTP date, and a Link with rel=deprecation to this policy. Sunset will not precede the deprecation date. No fictitious retirement dates or deprecation headers are emitted today.
Existing static URLs remain available without the public API database dependency or application quota. Their successful bytes and caching are unchanged. Use the v1 API for versioned contracts and request-budget feedback; keep existing browser study features on their static paths.
Structured JSON errors
API failures and missing documented JSON resources use RFC 9457 application/problem+json. The HTTP status and integer status field match. type identifies a stable documented problem; title is its stable summary; detail and resolution explain a safe next step. code is machine-readable, message mirrors detail, and error preserves the browser's existing error-code field. instance contains only the encoded request pathname, never its query, password, cookie, credentials or caught exception.
A 404 remains an error, not a successful empty lesson. A 405 includes Allow: GET, HEAD for public resources. A 406 on v1 means the Accept header excludes application/json. HEAD has the same status and headers as GET but no body. Normal HTML and Markdown page errors remain their existing document representations. Account and report errors do not grant permission to perform those private actions.
Real request budgets and retry guidance
All /api/v1 requests share a durable budget of 120 requests per client IP per aligned 60-second window, including HEAD and invalid requests. Successful quota-store reads return RateLimit-Policy: "public-read";q=120;w=60 and RateLimit: "public-read";r=119;t=42, for example. q is the request allowance, w the window seconds, r the requests remaining after this request, and t the seconds until reset. These structured-list fields follow draft-ietf-httpapi-ratelimit-headers-11 and RFC 9651; the RateLimit proposal is work in progress, not a published RFC.
An exhausted budget returns 429 with Retry-After in delay-seconds. Wait at least that long and reduce concurrency. Requests sharing a school or home IP share this public budget, and a positive remaining count is not a promise that the next request will succeed. Account and report mutations expose their own existing enforced budgets; unthrottled readiness checks and static files do not advertise invented counters.
Public API responses are no-store because quota snapshots are client-specific. RateLimit fields may be absent if the quota store cannot be read; that returns a typed 503 rather than guessing a limit or bypassing enforcement. The limiter uses the existing Netlify database and a protected one-way IP-derived key, not plaintext IPs or learner records. The new API performs a counter update per request. Normal lesson/search pages still use their existing cached static files.
Problem type reference
Expand a code below for its stable explanation and resolution. These reference strings contain no learner records or internal diagnostics.
invalid_request · 400
The request is not valid.
Resolution: Check the documented JSON fields and send a corrected request.
invalid_username · 400
The username format is not valid.
Resolution: Use 3–24 ASCII letters, digits or underscores.
password_length · 400
The password length is not valid.
Resolution: Use a password between 15 and 128 Unicode characters.
invalid_course · 400
The selected course or topic is not valid.
Resolution: Choose a topic and profile from the current learning catalog.
invalid_cursor · 400
The history cursor is invalid or expired.
Resolution: Start a new export; do not modify or reuse another account’s cursor.
invalid_page · 400
The history pagination parameters are not valid.
Resolution: Use one collection (rounds or review), a limit from 1 to 100 and the returned cursor.
invalid_question · 400
A quiz question is not valid for the selected course.
Resolution: Reload the topic’s current question bank and create a new round.
invalid_round · 400
The quiz round does not meet the required structure.
Resolution: Submit 6 distinct questions with 2 basic, 2 medium and 2 difficult questions.
confirm_username · 400
The account-deletion confirmation does not match.
Resolution: Enter the current account username exactly before confirming deletion.
invalid_report · 400
The report is not valid or consent is missing.
Resolution: Use the report form, include explicit consent and check the documented fields.
invalid_credentials · 401
The username or password is incorrect.
Resolution: Check your credentials or use your saved recovery code.
invalid_recovery · 401
The recovery code is incorrect or has been replaced.
Resolution: Use the latest saved recovery code; previously used codes cannot be reused.
sign_in_required · 401
Sign in is required for this operation.
Resolution: Sign in first; account cookies must stay in the same browser session.
origin_rejected · 403
The request origin is not permitted.
Resolution: Send browser mutations from the Fieldnote site itself.
csrf_rejected · 403
The session CSRF token is missing or invalid.
Resolution: Refresh the current session and use its X-FN-CSRF token.
not_found · 404
The requested API resource does not exist.
Resolution: Use a documented endpoint from the OpenAPI specification.
method_not_allowed · 405
This HTTP method is not allowed for the resource.
Resolution: Use a method listed in the Allow response header and OpenAPI specification.
not_acceptable · 406
The requested representation is not available.
Resolution: Request application/json or a representation documented for this endpoint.
account_changed · 409
The active account changed during this operation.
Resolution: Refresh the session and retry only after confirming the intended account.
report_id_conflict · 409
This report ID was already used with different content.
Resolution: Retry an unchanged report with the same ID, or create a new ID for a new report.
request_too_large · 413
The request body exceeds the permitted size.
Resolution: Keep the encoded JSON request body at or below 16,000 bytes.
json_required · 415
This operation requires a JSON request body.
Resolution: Set Content-Type to application/json and send valid JSON.
too_many_attempts · 429
The account request quota is exhausted.
Resolution: Wait for Retry-After, then retry slowly using the RateLimit response fields.
too_many_reports · 429
The report request quota is exhausted.
Resolution: Wait for Retry-After; keep the same ID and payload when retrying a report.
rate_limited · 429
The API request quota is exhausted.
Resolution: Wait for Retry-After, then retry slowly using the RateLimit response fields.
internal_error · 500
The API could not complete this request.
Resolution: Retry later; use the documented endpoint and do not include private values in support reports.
send_not_connected · 503
Report delivery is not currently connected.
Resolution: Save the report locally and retry once the service is available.
Discover subjects and topics
GET /agent/catalog.json returns a read-only JSON catalogue with version: 1, name: Fieldnote, subjects and topics. Each subject has id, name, path and searchIndex. A topic has subject, id, title, path, profiles and scopes; group is optional. Follow the supplied paths and searchIndex links instead of constructing URLs from display names.
The catalogue is public metadata, not a learner's progress record. Profiles describe course applicability, such as 0654:core, 0620:extended, 0580:extended or 0606:additional. The scopes field identifies reading and card IDs within the applicable course scope; it does not report that a learner has completed them. Respect the learner's chosen course and tier. An empty profiles list is unscoped metadata, not a new tier or evidence that a syllabus includes the item.
Static search indexes
GET /search-index.json returns the complete public search index. GET /search-indexes/{subject}.json returns a subject shard. The JSON envelope has version and records. A record contains id, subject, kind, title, parent, path, body and profiles; Thai support may additionally provide titleTh, parentTh and bodyTh. Search kinds are notes, examples, reference and tools.
The browser search ranks matching records locally. These static indexes are not a server-side search API, and they do not know a visitor's saved course selection. A profiles value such as 0654:core or 0580:extended identifies applicable content. Apply the learner's explicit course and tier rather than assuming that every result is in scope; an empty profiles list is not a new exam tier.
Worked-example lesson bundles
GET /lesson-bundles/{subject}/{topicId}.json returns public teaching support for a topic. Its envelope contains version, subject, topic, example and workshops. An example includes question, hint, steps, answer, pitfall, tryQuestion and tryAnswer. Workshop entries provide question, points and profiles, alongside their identifiers.
A bundle is worked-example and workshop data, not a claim to contain all of a lesson's prose or every syllabus requirement. Use the topic's website path for the interactive lesson and keep the distinction between authored teaching practice and official examination papers.
Open the supplied lesson path
Use each record's path instead of guessing a route from its title. Many subject apps use client-side hash routing: /chemistry/#topic/7 and /physics/#study/4/notes are examples. The fragment after # is interpreted in the browser and is not sent to the server. Mathematics has native paths such as /arc/learn/0580-3-2/.
The homepage alias /?subject=chemistry&path=%2Fchemistry%2F%23topic%2F7 opens that connected workspace. It is another entry route, not a different lesson or an account action. Keep the original same-origin subject path and its fragment intact. A fragment should remain part of the browser link, not become an invented server endpoint. Follow public source links for examination papers; a catalogue link is not permission to copy or redistribute an external document.
Read pages as Markdown
For /, /about/, /contact/, /docs/ and /privacy/, a GET request with Accept: text/markdown requests the readable Markdown representation. Ordinary browser requests receive HTML. These pages use Vary: Accept so a cache can distinguish the representations. Keep the canonical page URL; Markdown is selected by the request header, not by an invented .md route.
An invalid URL remains an actual 404 response, including its Markdown error representation when requested. A request with no supported response type receives 406 rather than unrelated page content. Do not interpret a readable error body as a successful lesson. JSON catalogue, index and bundle resources remain the separate read-only data formats described above.
Resource descriptions and discovery files
GET /openapi.json describes the versioned read-only public API, its typed JSON errors and the compatibility static resources. It is not a live query search service, SDK or MCP server. GET /llms.txt provides discovery guidance; /sitemap.xml lists public page URLs, and /robots.txt provides crawler instructions. These resources help locate content without signing in or operating account controls.
The public search indexes and lesson bundles may be refreshed with the site's content. Check their version fields, tolerate documented optional fields and use their identifiers as supplied. Keep external source attribution when presenting an explanation or linking a paper. Private learner information must never be inferred from public catalogue metadata.
Keep account actions user-controlled
Account routes under /api/account/ are separate authenticated features, not the public learning catalogue. They involve a session cookie and protected requests. Do not create an account, sign in, recover credentials, delete records, submit quiz results or send reports merely to read these docs or discover a lesson.
An agent should leave those actions to the learner's explicit choices and never request passwords or recovery codes in a content search. Public reading requires no learner account. Fieldnote does not provide an agent SDK or MCP server through these resources.