Register new user

POST /auth/register

Allow a user to register himself to the service.

application/json

Body Required

  • email string(email) Required

    User email address

  • password string(password) Required

    User password

  • password_2 string(password) Required

    Password confirmation

  • first_name string Required

    User first name

  • last_name string Required

    User last name

Responses

  • 201

    Registration successful

  • 400

    Invalid password or email

POST /auth/register
curl \
 --request POST 'http://api.example.com/auth/register' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"email":"admin@example.com","password":"string","password_2":"string","first_name":"string","last_name":"string"}'
Request examples
{
  "email": "admin@example.com",
  "password": "string",
  "password_2": "string",
  "first_name": "string",
  "last_name": "string"
}