Udon is under active development. Documentation not final.
udonudon
Health

Create the first admin

Create the first administrator account. Only works before any user exists. Public; sets the session cookie on success.

POST
/api/setup

Header Parameters

X-Udon-Client?string

Any value. Returns the session token in the body as well as in the cookie, for a native client that has no cookie jar.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/setup" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "password": "string"  }'
{  "id": "string",  "username": "string",  "role": "viewer",  "disabled": true,  "twoFactor": true}

Ask AI

Answers from Udon's documentation.

Ask how to install Udon, run containers, or share folders.