Users
Create first admin (one-time setup)
Changed onFirst-run setup: create the first admin user and auto-login.
Unauthenticated by design — there is no admin to authenticate as yet. The operation self-closes once any user exists (returns 410 setup_already_complete thereafter), so it is safe to expose only during first boot.
post/users:create-admin
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /users:create-admin
- Auth: none required
Request body
Example request
{
"email": "admin@example.com",
"first_name": "Ada",
"last_name": "Lovelace",
"password": "example-password"
}Response
Successful Response
Example response
{
"access_token": "example-access-token",
"expires_in": 3600,
"must_change_password": false,
"token_type": "bearer"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking