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

# Create bootstrap admin

`POST /bootstrap/admin`

## Request

- The document declares no server URL.
- Auth: none declared

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/pull-base-api.md) - [All operations](https://skmtc.dev/pullbase/apis/pull-base-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pullbase/apis/pull-base-api/revisions/edf8355bf78c?raw)
