Skip to main content
POST
/
api
/
auth
/
setup-admin
Setup Admin
curl --request POST \
  --url https://api.example.com/api/auth/setup-admin \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "user": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.xagent.run/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

User registration request model

username
string
required
password
string
required

Response

Successful Response

User registration response model

success
boolean
required
message
string
required
user
User · object