Zum Hauptinhalt springen

Documentation Index

Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt

Use this file to discover all available pages before exploring further.

POST /api-keys//regenerate

Dieser Endpunkt erzeugt einen neuen Schlüsselwert bei gleichbleibenden Metadaten (Name, Beschreibung, Berechtigungen). Der alte Schlüssel wird sofort ungültig.
Der neue API-Schlüsselwert wird nur einmal angezeigt. Der alte Schlüssel funktioniert ab sofort nicht mehr.
Sie können nicht den API-Schlüssel neu ausstellen, mit dem die aktuelle Anfrage authentifiziert wird.

Pfadparameter

keyId
string
erforderlich
Kennung des neu auszustellenden API-Schlüssels.

Antwort

success
boolean
Ob die Neuausstellung erfolgreich war.
message
string
Statusmeldung.
apiKey
object
Details des neu ausgestellten API-Schlüssels.
warning
string
Hinweis, dass der alte Schlüssel nun ungültig ist.
curl -X POST https://api.llmgenerator.com/api/v1/api-keys/llm_1706123456_abc123def456/regenerate \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "success": true,
  "message": "API key regenerated successfully",
  "apiKey": {
    "id": "llm_1706123456_abc123def456",
    "name": "Production Key",
    "key": "llm_1706456789_newvalue567xyz",
    "regeneratedAt": "2026-01-27T10:00:00.000Z"
  },
  "warning": "This is the only time the new API key will be shown. Please save it securely. The old key is now invalid."
}