Site setup
Setup the site by creating the owner account.
Site setup request body
emailstring
Format
emailpasswordstring
Format
passwordsiteTitle?string
This will be shown across the website on public pages and dashboard.
name?string
Response Body
curl -X POST "http://localhost:8000/api/v1/auth/setup" \ -H "Content-Type: application/json" \ -d '{ "email": "mike@example.com", "password": "password" }'{
"user": {
"authToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxZjEzN2QyMy04NDYzLTQ5NjEtYjY2NS1hNWQ4ZjE2NzVlNzciLCJlbWFpbCI6ImFkbWluQG1lLm1lIiwidHlwZSI6ImVtYWlsVmVyaWZpY2F0aW9uIiwiaWF0IjoxNzU3MzQ2NzE3LCJleHAiOjE3NTc1MTk1MTd9.2lmZpMdltMSk3PSyGOFR5dUuy4RMjxAzDgaFaNUmeNo\n",
"userId": "1f137d23-8463-4961-b665-a5d8f1675e77",
"name": "Mike",
"username": "mike",
"email": "mike@example.com",
"avatar": "https://www.gravatar.com/avatar/fc51027a642571734eaaefd103b2f00c"
}
}{
"message": "Enter valid email",
"code": "EMAIL_INVALID"
}{
"message": "Setup has already been completed.",
"code": "SETUP_COMPLETED"
}{
"message": "Something went wrong!",
"code": "SERVER_ERROR"
}{
"message": "Mail configuration missing",
"code": "MAIL_CONFIG_MISSING"
}