Skip to content

docs(platform): add Platform docs with REST API reference - #511

Open
lukass16 wants to merge 8 commits into
mainfrom
lukass/platform-docs
Open

docs(platform): add Platform docs with REST API reference#511
lukass16 wants to merge 8 commits into
mainfrom
lukass/platform-docs

Conversation

@lukass16

@lukass16 lukass16 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Issue

The REST API was only documented in the internal dev docs, but the endpoints are useful to users.

Solution

Add a Platform tab to the public docs, alongside SDK:

  • platform/introduction - why the hosted service exists and that it works as a backend.
  • platform/rest-api - all 97 endpoints, grouped, with generated request and response examples.
  • docs/scripts/gen_api_examples.py - fills those examples from the OpenAPI spec (docs/openapi.json, gitignored).

Outcome / Verification

  • python docs/scripts/gen_api_examples.py --check passes: 97 blocks up to date.
  • Parity against the internal page: identical endpoint set, identical generated bodies, identical prose through the Errors table. Only intentional diff is the closer, which drops the MCP link (not shipped publicly) for the generated reference.
  • Rendered locally in mint dev; both pages and the tab nav check out.

Note

Low Risk
Documentation and doc-generation tooling only; no changes to the API server or SDK runtime. Stale examples are mitigated by gen_api_examples.py --check.

Overview
Adds a Platform tab to the public Mintlify docs (alongside SDK) so users can discover the hosted API without internal dev docs.

New pages: platform/introduction explains the hosted service and single HTTP surface; platform/rest-api documents the full /v2 API in grouped accordions with parameter tables, curl requests, and JSON response samples for 97 endpoints; platform/mcp covers read-only Platform MCP setup, auth, tool chaining, and per-tool reference.

OpenAPI sync: docs/scripts/gen_api_examples.py fills marked blocks in rest-api.mdx from https://api.beta.hud.ai/openapi.json (cached as gitignored docs/openapi.json). Supports --check for CI and --list for uncovered operations.

Presentation: snippets/endpoint.jsx plus custom.css add method-colored signatures, aligned paths, page-nav / section-eyebrow, and tighter accordion stacks for .api-endpoints.

Agent guidance: skill.md and v6/start/index distinguish Platform MCP from env mcp capability and Docs MCP; skill adds a workflow to inspect hosted jobs/traces before rewriting graders.

Reviewed by Cursor Bugbot for commit e55d4cb. Bugbot is set up for automated code reviews on this repo. Configure here.

lukass16 and others added 5 commits July 30, 2026 14:39
Add a Platform navigation tab alongside SDK with a short introduction that separates the hosted API surface from the local package.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bring the grouped REST API page and the styled method/path accordion titles from the internal docs so the public site can document the same HTTP surface.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add the script that fills per-endpoint curl and response examples from the OpenAPI spec, and gitignore the downloaded docs/openapi.json.

Co-authored-by: Cursor <cursoragent@cursor.com>
Lead with why the hosted service exists and that it works as a backend behind the SDK, CLI, and UI, and replace the concept definitions with a docs overview plus pointers to the generated and agent-readable references.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@lukass16
lukass16 force-pushed the lukass/platform-docs branch from a4a2315 to 43ca958 Compare July 31, 2026 05:32
Agents attaching the platform MCP (or reading its docs) need the docs skill
install path and a clear split between env capability, Platform MCP, and Docs MCP.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lukass16
lukass16 marked this pull request as ready for review July 31, 2026 17:15
CI failed on format for gen_api_examples.py; also treat docs/scripts like
other dev scripts for print/namespace ignores and clear the leftover lint.

Co-authored-by: Cursor <cursoragent@cursor.com>
Comment thread docs/scripts/gen_api_examples.py
Empty/untyped OpenAPI schemas for StreamingResponse downloads were
rendered as empty bodies; treat them (and non-JSON media) as file responses.

Co-authored-by: Cursor <cursoragent@cursor.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e55d4cb. Configure here.

Comment thread docs/scripts/gen_api_examples.py
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