Skip to content

docs: add REST API reference page (/docs/rest-api)#38

Merged
vreshch merged 1 commit into
masterfrom
feature/rest-api-docs
Jul 6, 2026
Merged

docs: add REST API reference page (/docs/rest-api)#38
vreshch merged 1 commit into
masterfrom
feature/rest-api-docs

Conversation

@vreshch

@vreshch vreshch commented Jul 6, 2026

Copy link
Copy Markdown
Member

What

New public docs page at /docs/rest-api documenting the read-only Vaults REST endpoint (GET https://api.agentage.io/v1/vaults). PR4 of the vault-api feature.

Content is ported verbatim from the approved copy in the product vault: ~/vaults/agentage/features/vault-api/docs-page.md (everything below the horizontal rule, above the internal "Review notes" section). No editorializing; hyphens only.

Changes

  • docs/content/rest-api.ts - new DocPage (slug rest-api): endpoint, auth (OAuth 2.1 bearer, no API key), curl + JSON example, response field table, JSON Schema, errors table (401/429/503), limits (60 req/min per IP, /v1 frozen additive-only), "what this API is not".
  • lib/mcp-docs.ts - REST facts as single-source-of-truth exports (REST_API_BASE_URL, REST_VAULTS_ENDPOINT, REST_RATE_LIMIT_PER_MIN, REST_AUTH_NOTE, ...); the content page imports them, matching how MCP pages consume facts.
  • docs/registry.ts - register the page (auto-feeds route + sitemap).
  • docs/nav.ts - add REST API as a real page under the Reference group; CLI / MCP tools stay coming-soon stubs.

llms.txt / docs.md / llms-full.txt were left unchanged: those generators are hand-curated MCP-connect summaries and do not enumerate individual docs sub-pages (mcp-server, connect, per-client pages are all absent), so the REST page is wired the same way every other sub-page is - via the registry (route + sitemap) + nav.

Verify

  • npm run verify green (type-check + lint + format:check + test + build).
  • Production build + next start: /docs/rest-api 200 (title, curl example, JSON Schema, errors, 60/min all present); /docs 200 with REST API link under Reference; sitemap.xml includes /docs/rest-api; /llms.txt + /docs.md still 200.

Screenshots not required (docs page, plain copy).

MERGE ONLY AFTER the /v1/vaults endpoint is live on prod. Merging to master deploys prod immediately (landing auto-deploys dev + prod on master push); publishing this page before the endpoint exists would document a 404.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

CI - Verify PASSED

Commit: 743c612cd770b2471684eb5d749a97f852c0c09f · Branch: feature/rest-api-docs

  • ✅ Type check
  • ✅ Lint
  • ✅ Format check
  • ✅ Unit tests
  • ✅ Build
  • ✅ Landing e2e

🔗 View workflow run

@vreshch vreshch marked this pull request as ready for review July 6, 2026 01:10
@vreshch vreshch merged commit 136b868 into master Jul 6, 2026
1 check passed
@vreshch vreshch deleted the feature/rest-api-docs branch July 6, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant