Skip to content

docs(datumctl): add Local API proxy guide and refine CLI nav#46

Merged
scotwells merged 3 commits into
mainfrom
docs/datumctl-api-proxy
Jul 17, 2026
Merged

docs(datumctl): add Local API proxy guide and refine CLI nav#46
scotwells merged 3 commits into
mainfrom
docs/datumctl-api-proxy

Conversation

@scotwells

@scotwells scotwells commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Adds a user guide for datumctl api proxy (the local authenticated proxy shipped in datumctl v0.18.0, datumctl#247), plus two small datumctl nav refinements.

What this adds

New page — Local API proxy under a new datumctl → Developer tooling nav group. It covers what a user needs to actually use the command:

  • Starting the proxy (fixed vs. random port, serving a non-active session, --quiet) and the stdout readiness line for scripts
  • Path passthrough for dev/prod parity, and --project / --organization scoping to a single control plane
  • That the session and scope are pinned at startup (switching account/context doesn't repoint a running proxy)
  • Unbuffered streaming for watches and SSE
  • Token refresh, and the 502 + X-Datum-Proxy-Error behavior when a session can't be refreshed vs. a real platform 401/403
  • The security model (loopback-only, host-header validation, no CORS, Authorization stripping)
  • Request logging format

Nav refinements (docs.json only):

  • New Developer tooling group for the API proxy — it's an opt-in integration tool for wiring local dev servers and test harnesses to the API, not a core concept, so it doesn't sit under Core concepts.
  • Moved the Plugins group up (to just after Working with resources) — plugins are a primary way users extend and interact with the CLI and shouldn't be buried near the end.

Resulting datumctl nav order: Getting started · Authentication · Core concepts · Working with resources · Plugins · Activity & audit · Interactive console · AI & MCP · Developer tooling · CI/CD · Kubernetes interop.

Notes for reviewers

  • Content is ported from docs/api-proxy.md in the datumctl repo and reshaped to Mintlify (frontmatter, <Info>/<Note>/<Tip> callouts, sentence-case headings) to match neighboring pages. Cross-links to service accounts and managing accounts.
  • The two nav moves are independent of the new page — happy to split them into a separate PR if you'd rather keep this one to just the API proxy doc.
  • Draft pending a docs preview render and a review of placement and voice. Once merged, the page publishes at datum.net/docs/datumctl/api-proxy/.

🤖 Generated with Claude Code

Document the `datumctl api proxy` command (shipped in datumctl v0.18.0):
starting the proxy, path passthrough and --project/--organization scoping,
streaming, token refresh and failure behavior, the security model, and
request logging. Adds the page to the Core concepts nav group next to
output-and-scripting.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Datum 🟢 Ready View Preview Jul 17, 2026, 1:01 AM

@mintlify

mintlify Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Datum 🟡 Building Jul 17, 2026, 1:00 AM

Move the Local API proxy page out of Core concepts into a new
Developer tooling nav group (before CI/CD). The proxy is an opt-in
integration tool for wiring local dev servers and test harnesses to
the API, not a core concept needed to use datumctl.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Plugins are a primary way users extend and interact with the CLI, so
surface the group higher — right after Working with resources — instead
of near the end of the datumctl nav.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@scotwells scotwells changed the title docs(datumctl): add Local API proxy guide docs(datumctl): add Local API proxy guide and refine CLI nav Jul 17, 2026
@scotwells
scotwells requested a review from felixwidjaja July 17, 2026 01:17
@scotwells
scotwells marked this pull request as ready for review July 17, 2026 01:17
@scotwells
scotwells enabled auto-merge July 17, 2026 01:17
@scotwells
scotwells merged commit 49d3f9b into main Jul 17, 2026
4 checks passed
@scotwells
scotwells deleted the docs/datumctl-api-proxy branch July 17, 2026 14:49
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.

2 participants