Tasks

Create an API token

An API token authenticates calls to the knowmind APIs — from the command line, from custom connectors or from your own applications. Tokens carry scopes (read, write, admin) and are shown in clear text only once.

Audience
Power users and developers on Business API or Enterprise. The Private, Pro and Business plans do not expose personal API tokens — on those plans you use the browser UI and the OAuth path.

Prerequisites

  • knowmind account on Business API or Enterprise
  • Clear purpose (e.g. workstation, CI pipeline, MCP connector)
  • A secure buffer for the token (password manager, vault, encrypted CI variable)

Steps

  1. 1

    Open the token area

    In the dashboard click API Tokens (in the header navigation under "Integrations").

    Outcome: You see the list of existing tokens with name, scope, last use and a revoke button.

  2. 2

    Create the token

    Click "New token". In the form:

    FieldRecommendation
    NameDescriptive, e.g. "Anna's workstation" or "GitHub Actions build"
    Scopesread for recall; additionally write for store, upload, link; admin for plan-relevant actions
    ExpiryOptional — when set, the token is auto-invalidated

    Click Create.

  3. 3

    Copy the token immediately

    The token appears in the form kmt_… with a copy button. Copy and store it securely now — once the dialog closes only the prefix and a hash remain.

    text
    kmt_aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789-AbCdEfGhIjK

    Outcome: The token is in your password manager or CI vault. In the dashboard it appears in the list with its prefix.

  4. 4

    Put the token to work

    Examples:

    bash
    # Command line
    knowmind login --token kmt_…
    
    # Environment variable (CI, containers)
    export KNOWMIND_TOKEN="kmt_…"
    
    # In an HTTP request
    curl -H "Authorization: Bearer kmt_…" https://knowmind.de/api/health

Verify the result

  • The dashboard API Tokens list shows the new entry with its prefix and creation date.
  • The audit log records "API token created".
  • A test call (knowmind health or a curl /api/health) returns a success message.

Troubleshooting

Error messageCauseResolution
"API Tokens" menu item not visiblePlan below Business API (Private, Pro, Business do not expose personal tokens).Move to Business API or Enterprise, or use the OAuth path (Claude.ai, ChatGPT integrations).
Token dialog shows only "•••••" instead of a valueThe dialog was closed once — the clear text is gone.Revoke the token and create a new one. Copy the clear text immediately next time.
Token accepted on /api/health but rejected with 403 on /api/v1/memory/entriesScope write is missing.Edit the token to add the write scope, or create a new token with all required scopes.
"Last used" stays empty despite use"Last used" updates with a slight delay (up to one minute).Wait briefly and reload. If consistently empty, check the audit log — every successful call is recorded there.

Related