Bootstrap Admin

One-time endpoint to create the first admin user.

  • Refuses to run if any admin already exists.
  • Requires the JWT_SECRET to be passed as bootstrap_token.
  • Creates the user if they do not exist, otherwise just promotes the existing one.
post/api/auth/bootstrap-admin

Request

  • Base URL: https://api.kojiru.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.kojiru.com/api/auth/bootstrap-admin
  • Auth: none declared

Request body

object required

Response

Successful Response

access_tokenstring required
token_typestring

Changes

No recorded changes to this operation across all 1 revision of this API.