---
title: "Create bootstrap admin"
method: POST
path: "/bootstrap/admin"
tags: ["Auth"]
---

# Create bootstrap admin

`POST /bootstrap/admin`

Create the first admin user using the bootstrap secret. Only available when bootstrap is enabled.

## Request body

- PkgServerBootstrapAdminRequest
  - `bootstrap_secret` string
  - `password` string
  - `username` string

## Response `201`

Created

- PkgServerBootstrapAdminResponse
  - `access_token` string
  - `user` PkgServerUserSummary
    - `id` integer
    - `role` string
    - `username` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too Many Requests

---

[API](https://skmtc.dev/pullbase/apis/untitled-api.md) · [All operations](https://skmtc.dev/pullbase/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pullbase/untitled-api/revisions/edf8355bf78c/schema)
