DocumentationLogChimp Documentation

Site setup

Setup the site by creating the owner account.

POST
/auth/setup

Header Parameters

Content-Type?string
Default"application/json"
origin?string
Default"https://example.com"
email?string
Formatemail
password?string
Formatpassword
siteTitle?string

This will be shown across the website on public pages and dashboard.

name?string

Response Body

curl -X POST "https://api.<your-domain>.com/api/v1/auth/setup" \  -H "Content-Type: application/json" \  -H "origin: https://example.com" \  -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"
}