POST /v1/keys/trial

Self-Service-Trial-Key minten (7 Tage, read-only)

beta seit v0.1.0 keys auth: none

POST /v1/keys/trial — Self-Service-Trial-Key

Mintet ohne Registrierung einen befristeten Trial-API-Key (tier trial). Der Request-Body ist optional und kennt zwei freiwillige Felder:

FeldTypBedeutung
sourceSlug [a-z0-9_-], max. 64Kampagnen-/Kanal-Zuordnung (z.B. "dachgold", "landing"). Keine PII.
emailE-Mail-AdresseKontaktadresse zur Key-Zuordnung. Optional, ungeprüft, kein Mailversand.

Der Key wird genau einmal im Klartext zurückgegeben (Cache-Control: no-store) und ist danach nicht wiederherstellbar — gespeichert wird nur SHA-256-Hash + Prefix.

# PII-frei (DACHGOLD-Muster)
curl -X POST https://api.lodapi.de/v1/keys/trial \
  -H "Content-Type: application/json" \
  -d '{"source": "dachgold"}'

# mit Lead-Zuordnung (lodapi.de/key-Muster)
curl -X POST https://api.lodapi.de/v1/keys/trial \
  -H "Content-Type: application/json" \
  -d '{"source": "landing", "email": "konsti@scenerii.com"}'

Response (200):

{
  "key": "lod_td8j5b86m6s32ujqbdmf8wwah5sv99xd",
  "tier": "trial",
  "expires_at": "2026-07-14T10:12:01Z",
  "limits": { "requests_per_minute": 60, "requests_per_day": 5000 },
  "scopes": ["read"],
  "docs_url": "https://lodapi.de/docs"
}

Stolperdrähte

Limit-Stand (2026-08-19): Code-Default 3 Mints/IP/24 h; prod läuft auf 10 (LODAPI_TRIAL_MINTS_PER_IP_PER_DAY=10 in code/prod/.env, Decision 2026-08-17-06). Frontend nennt bewusst keine Zahl.

Verwandt

Bereit?

Der erste Call geht sofort.

LoD2-Gebäude für alle 16 Bundesländer, kostenlos und ohne Konto. Pro auf Anfrage 30 Tage testen.