Skip to main content
POST
/
users
/
register
curl -X POST https://api.falconalert.com/users/register \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "email": "john.doe@example.com",
    "name": "John Doe",
    "password": "securePassword123",
    "role_id": "1"
  }'
{
  "user": {
    "id": 2,
    "name": "John Doe",
    "email": "john.doe@example.com",
    "username": "cool_john.527",
    "salt": "go4fzup9s4m",
    "created_at": "2025-09-25T14:59:41.000Z",
    "updated_at": "2025-09-25T14:59:41.000Z",
    "image_path": "profile-pictures/default.jpg",
    "role_id": 1
  },
  "settings": [
    {
      "id": 7,
      "user_id": 2,
      "is_reactions_enabled": 1,
      "is_review_enabled": 1,
      "is_reports_enabled": 1
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/4rt21/backend-proyecto/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

This endpoint requires a valid JWT Bearer token.
Authorization
string
required
Bearer token for authenticationFormat: Bearer <your_access_token>

Request Body

email
string
required
User’s email addressExample: name@domain.com
name
string
required
User’s full nameExample: John Doe
password
string
required
User’s password (minimum 8 characters)Example: password123
role_id
string
default:"1"
User’s role ID
  • 1 - Regular user (default)
  • 2 - Admin user
Example: 1

Response

user
object
User information
id
number
Unique user identifier
name
string
User’s full name
email
string
User’s email address
username
string
Auto-generated username
salt
string
Password salt for security
created_at
string
Account creation timestamp (ISO 8601)
updated_at
string
Last update timestamp (ISO 8601)
image_path
string
Path to user’s profile image
role_id
number
User’s role identifier
settings
array
User settings configuration
id
number
Settings record ID
user_id
number
Associated user ID
is_reactions_enabled
number
Whether reactions are enabled (0 or 1)
is_review_enabled
number
Whether reviews are enabled (0 or 1)
is_reports_enabled
number
Whether reports are enabled (0 or 1)
curl -X POST https://api.falconalert.com/users/register \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
  -H "Content-Type: application/json" \
  -d '{
    "email": "john.doe@example.com",
    "name": "John Doe",
    "password": "securePassword123",
    "role_id": "1"
  }'
{
  "user": {
    "id": 2,
    "name": "John Doe",
    "email": "john.doe@example.com",
    "username": "cool_john.527",
    "salt": "go4fzup9s4m",
    "created_at": "2025-09-25T14:59:41.000Z",
    "updated_at": "2025-09-25T14:59:41.000Z",
    "image_path": "profile-pictures/default.jpg",
    "role_id": 1
  },
  "settings": [
    {
      "id": 7,
      "user_id": 2,
      "is_reactions_enabled": 1,
      "is_review_enabled": 1,
      "is_reports_enabled": 1
    }
  ]
}

Error Responses

Status CodeDescription
400Bad Request - Missing required fields or validation error
401Unauthorized - Invalid or missing JWT token