v52

latestOpenAPI 3.0.4GPL-3.0raw.githubusercontent.com2026-08-03509370876.8 KB
Account

Register the first user (admin) on the server. Will not do anything if an admin is already confirmed

post/api/Account/register

Request body

usernamestring required
emailstring nullable
passwordstring required

Response

OK

idinteger
oidcIdstring nullable
usernamestring nullable
emailstring nullable
rolesstring[] nullable
tokenstring nullable
refreshTokenstring nullable
apiKeystring nullable
kavitaVersionstring nullable
identityProvider0 | 1

Members:

  • 0 — Kavita
  • 1 — OpenID Connect (OpenIdConnect)
createdstring date-time
createdUtcstring date-time
coverImagestring nullable
primaryColorstring nullable
secondaryColorstring nullable