Zum Hauptinhalt springen
GET
/
subscriptions
/
current
curl -X GET https://api.llmgenerator.com/api/v1/subscriptions/current \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "hasSubscription": true,
  "subscription": {
    "plan": "professional",
    "status": "active",
    "billingCycle": "monthly",
    "currentPeriodStart": "2024-01-15T00:00:00Z",
    "currentPeriodEnd": "2024-02-15T00:00:00Z",
    "cancelAtPeriodEnd": false
  },
  "planDetails": {
    "id": "professional",
    "name": "Professional",
    "monthlyCredits": 3000,
    "price": 12.99,
    "features": [
      "3,000 credits/month",
      "Priority support",
      "Advanced analytics"
    ]
  }
}

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.

Überblick

Liefert Informationen zum aktuellen Abonnement inklusive Tarif, Abrechnungszyklus und Verlängerungsdaten. Erfordert Sitzungsauthentifizierung (JWT-Access-Token).
Für Drittanbieter-Integrationen: Verwenden Sie GET /subscriptions/current/api mit API-Schlüssel-Authentifizierung.

Authentifizierung

Authorization
string
erforderlich
JWT-Access-Token. Format: Bearer YOUR_ACCESS_TOKEN
curl -X GET https://api.llmgenerator.com/api/v1/subscriptions/current \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "hasSubscription": true,
  "subscription": {
    "plan": "professional",
    "status": "active",
    "billingCycle": "monthly",
    "currentPeriodStart": "2024-01-15T00:00:00Z",
    "currentPeriodEnd": "2024-02-15T00:00:00Z",
    "cancelAtPeriodEnd": false
  },
  "planDetails": {
    "id": "professional",
    "name": "Professional",
    "monthlyCredits": 3000,
    "price": 12.99,
    "features": [
      "3,000 credits/month",
      "Priority support",
      "Advanced analytics"
    ]
  }
}

Antwortfelder

hasSubscription
boolean
Ob ein aktives Abonnement besteht.
subscription
object
Abonnementdetails (null ohne Abonnement).
planDetails
object
Vollständige Tarifinformationen (null ohne Abonnement).

Abonnement-Status

StatusBeschreibung
activeAbonnement ist aktiv und in Ordnung
trialingNutzer befindet sich in der Testphase
past_dueZahlung fehlgeschlagen, Suspendierung möglich
canceledAbonnement wurde vollständig beendet

Fehlerantworten

401
error
Nicht autorisiert – Ungültiges oder fehlendes Token.

GET /subscriptions/current/api

Liefert das aktuelle Abonnement 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

Antwort

Wie bei /subscriptions/current oben.
curl -X GET https://api.llmgenerator.com/api/v1/subscriptions/current/api \
  -H "Authorization: Bearer llmgen_your_api_key_here"