Hold My Docs

Personal Access Tokens

On this page

Personal access tokens (PATs) let scripts, agents and MCP clients authenticate as you without your password or a browser session. Manage them at /_/settings/access-tokens.

Create a token

Token creation form with expiry, scopes and namespace restrictions

  1. Open /_/settings/access-tokens.
  2. Name the token after its client, for example claude-code.
  3. Choose an expiry: 1 day, 7 days, 30 days (default), 1 year or never.
  4. Select at least one scope: read, write, preferences or admin. The form offers the scopes you hold, plus preferences.
  5. Leave all namespace boxes unchecked for every namespace, or check the namespaces to limit the token to.
  6. Click Create token.

The token value appears once, above the form. Copy it now: HMD stores only its SHA-256 digest.

Scopes

Scope Allows
read Viewing pages and search.
write Anything that writes: saving, renaming, tagging, uploading.
preferences Changing your own appearance, git author and access tokens. Without it a token cannot touch your account. A token it creates cannot have more scopes or namespaces than its own.
admin Administrative access to the system and namespace sections of /_/settings; implies the other scopes. OAuth browser sections still need a browser session.
  • A token's scopes never exceed its owner's; every user may grant preferences. Reducing a user's scopes limits their existing tokens on the next request.
  • An admin token ignores namespace restrictions and is labelled Administrator in the token list.
  • Namespace restrictions hide other namespaces completely, including from search, tags and health reports.

Use a token

Send it as a Bearer credential to the API or MCP endpoint. Tokens start with hmd_ followed by 64 hexadecimal characters.

curl -H "Authorization: Bearer hmd_..." https://wiki.example.com/_/api/health

Revoke a token

Click revoke next to the token in the same section. Revocation applies immediately. Revoke any token that may be exposed or whose client is retired.

A fictional read and write token limited to one namespace, with its Revoke action; no token value is shown

Limits

  • Each user can have at most 64 tokens, and names must be unique per user.
  • Tokens cannot log in to the web UI, and revoking one does not end your browser session.

See Settings And Administration, Authentication And Access and MCP Integration.

Search documentation

Search titles and page text. No data leaves your browser.