WWikis

API Keys

Create personal access tokens for programmatic API access and MCP integrations.

API keys (personal access tokens) let you authenticate against the Wikis API without a session cookie — essential for MCP integrations, CI/CD pipelines, and any programmatic use.

Settings page showing the API Keys tabSettings page showing the API Keys tab

Click the user avatar in the top-right corner → SettingsAPI Keys tab.

Creating a key

  1. Click + Generate New Key
  2. Optionally give the key a descriptive name (e.g. Claude Code local, CI pipeline)
  3. Click Generate
  4. Copy the full key immediately — it is displayed only once

The full key value is shown only at creation time. If you lose it, revoke the key and generate a new one. Wikis stores only a hashed version of the key.

Key format

All keys are prefixed with wikis_ for easy identification in config files and logs:

wikis_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Key table columns

ColumnDescription
NameThe label you gave the key (editable)
KeyMasked prefix (wikis_•••)
CreatedCreation date
ExpiresExpiry date — far-future by default (no expiry)
Last UsedWhen this key last made an authenticated request

Using a key

Pass the key as a Bearer token in the Authorization header:

curl https://your-wikis-instance.com/api/v1/wikis \
  -H "Authorization: Bearer wikis_YOUR_KEY_HERE"

Or use it in an MCP config (see MCP Integration).

Revoking a key

Click the red trash (🗑) icon on any key row. Revocation is immediate — requests using that key will return 401 Unauthorized.

Security best practices

Create one key per integration (e.g. one for Claude Code, one for your CI pipeline). This way you can revoke a compromised key without affecting other tools.

Name keys clearly so you know where each one is used: Claude Code - MacBook, GitHub Actions, Cursor - Work laptop.