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.

GET /credits/history

Dieser Endpunkt gibt eine Liste der Credit-Transaktionen des authentifizierten Nutzers zurück (Käufe, Verbrauch, Erstattungen). Erfordert Sitzungsauthentifizierung (JWT-Access-Token).
Für Drittanbieter-Integrationen: Verwenden Sie stattdessen GET /credits/history/api mit API-Schlüssel-Authentifizierung.

Abfrageparameter

limit
number
Standard:"20"
Anzahl zurückzugebender Transaktionen (max. 100).
offset
number
Standard:"0"
Anzahl zu überspringender Transaktionen für die Paginierung.
type
string
Filter nach Typ: purchase, usage oder refund.

Antwort

transactions
array
Array von Transaktionsobjekten.
total
number
Gesamtanzahl der Transaktionen.
hasMore
boolean
Ob weitere Transaktionen abrufbar sind.
curl -X GET "https://api.llmgenerator.com/api/v1/credits/history?limit=10" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "transactions": [
    {
      "id": "txn_abc123",
      "type": "purchase",
      "amount": 500,
      "description": "Purchased Professional Pack",
      "siteId": null,
      "createdAt": "2026-01-15T10:00:00.000Z"
    },
    {
      "id": "txn_def456",
      "type": "usage",
      "amount": -50,
      "description": "llms.txt generation for example.com (enhanced)",
      "siteId": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": "2026-01-20T14:30:00.000Z"
    },
    {
      "id": "txn_ghi789",
      "type": "usage",
      "amount": -25,
      "description": "llms.txt generation for another-site.com (simple)",
      "siteId": "660e8400-e29b-41d4-a716-446655440001",
      "createdAt": "2026-01-22T09:15:00.000Z"
    }
  ],
  "total": 47,
  "hasMore": true
}

GET /credits/history/api

Liefert den Credit-Transaktionsverlauf mit API-Schlüssel-Authentifizierung. Geeignet für Drittanbieter-Integrationen.

Authentifizierung

API-Schlüssel erforderlich. Übergeben Sie ihn im Header Authorization:
Authorization: Bearer llmgen_your_api_key_here

Abfrageparameter

Wie bei /credits/history oben.

Antwort

Wie bei /credits/history oben.
curl -X GET "https://api.llmgenerator.com/api/v1/credits/history/api?limit=10" \
  -H "Authorization: Bearer llmgen_your_api_key_here"