---
title: "Neuen Token ausstellen"
method: POST
path: "/api/tokens"
tags: ["Tokens"]
---

# Neuen Token ausstellen

`POST /api/tokens`

## Request

- Base URL: `https://knowmind.de`
- URL: `https://knowmind.de/api/tokens`
- Auth: API key in cookie `authjs.session-token`

Der Klartext-Token wird **einmalig** zurückgeliefert und nicht erneut anzeigbar. Bewahren Sie ihn sicher auf.

## Request body

- object
  - `name` string, required
  - `scopes` string[], required

## Response `200`

Token erzeugt (Klartext-Wert nur jetzt sichtbar)

- object
  - `id` string, uuid
  - `token` string

---

[API](https://skmtc.dev/knowmind/apis/knowmind-api.md) · [All operations](https://skmtc.dev/knowmind/apis/knowmind-api/llms.txt) · [OpenAPI document](https://skmtc.dev/knowmind/apis/knowmind-api/revisions/c369431c0e59?raw)
