curl -X GET https://api.llmgenerator.com/api/v1/subscriptions/current \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.llmgenerator.com/api/v1/subscriptions/current', {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const data = await response.json();
import requests
response = requests.get(
'https://api.llmgenerator.com/api/v1/subscriptions/current',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
)
data = response.json()
{
"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"
]
}
}
{
"hasSubscription": false,
"subscription": null,
"planDetails": null
}
{
"hasSubscription": true,
"subscription": {
"plan": "professional",
"status": "active",
"billingCycle": "monthly",
"currentPeriodStart": "2024-01-15T00:00:00Z",
"currentPeriodEnd": "2024-02-15T00:00:00Z",
"cancelAtPeriodEnd": true
},
"planDetails": {
"id": "professional",
"name": "Professional",
"monthlyCredits": 3000,
"price": 12.99,
"features": [...]
}
}
Abonnements
Aktuelles Abonnement abrufen
Status und Details des aktuellen Abonnements des authentifizierten Nutzers.
GET
/
subscriptions
/
current
curl -X GET https://api.llmgenerator.com/api/v1/subscriptions/current \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.llmgenerator.com/api/v1/subscriptions/current', {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const data = await response.json();
import requests
response = requests.get(
'https://api.llmgenerator.com/api/v1/subscriptions/current',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
)
data = response.json()
{
"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"
]
}
}
{
"hasSubscription": false,
"subscription": null,
"planDetails": null
}
{
"hasSubscription": true,
"subscription": {
"plan": "professional",
"status": "active",
"billingCycle": "monthly",
"currentPeriodStart": "2024-01-15T00:00:00Z",
"currentPeriodEnd": "2024-02-15T00:00:00Z",
"cancelAtPeriodEnd": true
},
"planDetails": {
"id": "professional",
"name": "Professional",
"monthlyCredits": 3000,
"price": 12.99,
"features": [...]
}
}
Ü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
string
erforderlich
JWT-Access-Token. Format:
Bearer YOUR_ACCESS_TOKENcurl -X GET https://api.llmgenerator.com/api/v1/subscriptions/current \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.llmgenerator.com/api/v1/subscriptions/current', {
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
}
});
const data = await response.json();
import requests
response = requests.get(
'https://api.llmgenerator.com/api/v1/subscriptions/current',
headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
)
data = response.json()
{
"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"
]
}
}
{
"hasSubscription": false,
"subscription": null,
"planDetails": null
}
{
"hasSubscription": true,
"subscription": {
"plan": "professional",
"status": "active",
"billingCycle": "monthly",
"currentPeriodStart": "2024-01-15T00:00:00Z",
"currentPeriodEnd": "2024-02-15T00:00:00Z",
"cancelAtPeriodEnd": true
},
"planDetails": {
"id": "professional",
"name": "Professional",
"monthlyCredits": 3000,
"price": 12.99,
"features": [...]
}
}
Antwortfelder
boolean
Ob ein aktives Abonnement besteht.
object
Abonnementdetails (null ohne Abonnement).
Anzeigen Eigenschaften
Anzeigen Eigenschaften
string
Tarifkennung (starter, professional, business, agency).
string
Aktueller Status:
active, canceled, past_due oder trialing.string
Abrechnungsintervall:
monthly oder yearly.string
Beginn der aktuellen Abrechnungsperiode (ISO 8601).
string
Ende der aktuellen Abrechnungsperiode (ISO 8601).
boolean
Bei true endet das Abonnement zum Zeitpunkt
currentPeriodEnd.object
Vollständige Tarifinformationen (null ohne Abonnement).
Abonnement-Status
| Status | Beschreibung |
|---|---|
active | Abonnement ist aktiv und in Ordnung |
trialing | Nutzer befindet sich in der Testphase |
past_due | Zahlung fehlgeschlagen, Suspendierung möglich |
canceled | Abonnement wurde vollständig beendet |
Fehlerantworten
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 HeaderAuthorization:
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"
const response = await fetch('https://api.llmgenerator.com/api/v1/subscriptions/current/api', {
headers: {
'Authorization': 'Bearer llmgen_your_api_key_here'
}
});
const data = await response.json();
import requests
response = requests.get(
'https://api.llmgenerator.com/api/v1/subscriptions/current/api',
headers={'Authorization': 'Bearer llmgen_your_api_key_here'}
)
data = response.json()
War diese Seite hilfreich?
⌘I