Site setup

Setup the site by creating the owner account.

POST
/auth/setup

Setup the site by creating the owner account.

Request Body

Site setup request body

application/json
  1. body
email*string
Formatemail
password*string
Formatpassword
siteTitle?string

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

name?string

Response Body

OK

application/json
  1. response
user?
Example Request
curl -X POST 'http://localhost:8000/api/v1/auth/setup' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com",  "password": "pa$$word"}'
Example Response
{  "user": {    "authToken": "string",    "userId": "string",    "name": "string",    "username": "string",    "email": "user@example.com",    "avatar": "string"  }}