Skip to main content
POST
/
auth
/
register
Register User
curl --request POST \
  --url https://api.example.com/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "language": "<string>"
}
'
{
  "timestamp": "2026-03-09T10:30:00.000+00:00",
  "status": 400,
  "error": "Bad Request",
  "message": "Validation failed",
  "errors": [
    {
      "field": "email",
      "message": "must be a well-formed email address"
    }
  ]
}
Creates a new user account with email and password. Optionally specify the user’s preferred language for the application interface.

Request Body

email
string
required
User’s email address. Must be a valid email format and not exceed 254 characters.
password
string
required
User’s password. Must be at least 6 characters long.
language
string
Preferred language for the user interface. Allowed values: pt-BR, en-US, es.

Response

message
string
Success message confirming user creation.
userId
integer
The unique identifier of the newly created user.

Example Request

curl -X POST https://api.dailytracker.com/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "securepassword123",
    "language": "en-US"
  }'

Example Response

{
  "message": "Usuário criado com sucesso!",
  "userId": 123
}

Error Responses

{
  "timestamp": "2026-03-09T10:30:00.000+00:00",
  "status": 400,
  "error": "Bad Request",
  "message": "Validation failed",
  "errors": [
    {
      "field": "email",
      "message": "must be a well-formed email address"
    }
  ]
}

Build docs developers (and LLMs) love