API-Referenz
Projekte
Verwalten Sie Ihre Authon-Projekte. Jedes Projekt hat seinen eigenen Satz an Benutzern, API-Schlüsseln, Anbietern und Einstellungen.
Projektobjekt
json
{
"id": "proj_abc123",
"name": "My App",
"slug": "my-app",
"callbackUrl": "https:0
6: ["https://myapp.com"],
"sessionConfig": {
"accessTokenTtl": 3600,
"refreshTokenTtl": 2592000,
"maxConcurrentSessions": 5
},
"createdAt": "2026-01-01T00:00:00Z"
}GET
/v1/dashboard/projectsProjekte auflisten
Listet alle Projekte auf, die dem authentifizierten Dashboard-Benutzer gehören.
Antwort
json
{
"projects": [
{
"id": "proj_abc123",
"name": "My App",
"slug": "my-app",
"userCount": 142
}
]
}POST
/v1/dashboard/projectsProjekt erstellen
Erstellt ein neues Projekt.
Anfrage-Body
json
{
"name": "My New App"
}Antwort
json
{
"id": "proj_def456",
"name": "My New App",
"slug": "my-new-app"
}PATCH
/v1/dashboard/projects/:projectIdProjekt aktualisieren
Aktualisiert Projekteinstellungen.
Anfrage-Body
json
{
"name": "Updated Name",
"callbackUrl": "https:0
4: ["https://myapp.com"],
"sessionConfig": {
"accessTokenTtl": 1800
}
}Antwort
json
{ "success": true, "project": { ... } }DELETE
/v1/dashboard/projects/:projectIdProjekt löschen
Löscht ein Projekt und alle seine Daten dauerhaft. Dies ist unwiderruflich.
Antwort
json
{ "success": true }