Sign up
Create a new user account.
Header Parameters
Content-Type?string
Default
"application/json"
origin?string
Default
"https://example.com"
Login to account using email and password.
email?string
Format
email
password?string
Format
password
Response Body
curl -X POST "https://api.<your-domain>.com/api/v1/auth/signup" \ -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"
}