Site setup
Setup the site by creating the owner account.
email?string
Format
email
password?string
Format
password
siteTitle?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 '{}'
{
"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": "Mail configuration missing",
"code": "MAIL_CONFIG_MISSING"
}
{
"message": "Something went wrong!",
"code": "SERVER_ERROR"
}