---
title: "Bootstrap Admin"
method: POST
path: "/api/auth/bootstrap-admin"
---

# Bootstrap Admin

`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

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.

## Request body

- object

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string
  - `user` UserResponse, required
    - `id` string, required
    - `email` string, required
    - `name` string, required
    - `role` string, required
    - `wallet_address` string, nullable
    - `kutro_balance` number
    - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kojiru/apis/kojiru-api.md) · [All operations](https://skmtc.dev/kojiru/apis/kojiru-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kojiru/apis/kojiru-api/revisions/7974409f57cd?raw)
