Skip to content

docs: key lifetime and key params, 2FA session lifetime, once-only codes, cascading key deletion - #987

Draft
jsbcannell wants to merge 2 commits into
mainfrom
key-lifetime-params-tfa-lifetime
Draft

jsbcannell wants to merge 2 commits into
mainfrom
key-lifetime-params-tfa-lifetime

Conversation

@jsbcannell

Copy link
Copy Markdown

Docs for the backend changes in HOST-4463, HOST-4464, HOST-4466 and HOST-4467 and the matching CLI/SDK flags (vast-ai/vast-cli branch key-lifetime-params-tfa-lifetime). Draft until those are deployed.

Pages

  • API reference: create_api_key.yaml gains lifetime_sec, a real description and example for key_params, expires_at in the response, and the two new 400 errors; delete_api_key.yaml says what else a deletion ends. openapi.yaml is regenerated with build.py.
  • 2FA endpoints: lifetime_sec on login, renewing a live session, a TOTP code is accepted once (tfa_code_used).
  • CLI reference: create api-key (--lifetime_sec, --key_params as JSON, real examples), delete api-key, tfa login (--lifetime-sec).
  • SDK reference: create_api_key(lifetime_sec=...).
  • Permissions guides (CLI and SDK): three new sections — give a key an expiry, pin a key with $name parameters, require a recent second factor with tfa_age.
  • CLI 2FA guide: session lifetime and once-only codes.

Checks

  • python3 api-reference/openapi/build.py run; openapi.yaml committed with the YAML edits.
  • vast-cli's scripts/verify_cli_sdk_docs.py --check-params against this branch reports no drift for these commands.
  • Not run: mint openapi-check and a mint dev preview (Mintlify CLI is not installed where I worked).

🤖 Generated with Claude Code

…des, cascading key deletion

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Status Preview Updated
vastai-80aa3a82 🟢 Ready View Preview Nov 19, 2026, 7:12 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
staging — deead8b4 Deployed Nov 19, 2026 by mintlify[bot]
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