Skip to main content
GET
/
admin
/
user
/
{id}
Get User Details
curl --request GET \
  --url https://api.example.com/admin/user/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "name": "<string>",
  "username": "<string>",
  "image_path": "<string>"
}
'
{
  "id": 1,
  "name": "Arturo Utrilla",
  "email": "arturo@gmail.com",
  "username": "Arturo_utrilla",
  "password": "e28dce46d564d38b9b58f6c85ff4bb75ba3df1202991f5b6e1d5e5d585c1b8e7",
  "salt": "9tuubdqpqei",
  "created_at": "2025-09-25T12:14:44.000Z",
  "updated_at": "2025-10-24T01:45:55.000Z",
  "image_path": "profile-pictures/d84c32b6211caf458c18f49db1992bebbf5dbfccc581e47aad0b77eee3ea637a.jpg",
  "role_id": 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.

Retrieves detailed information about a specific user by their ID. This endpoint also allows updating user information.

Get User by ID

Authentication

Requires admin authentication via Bearer token.

Path Parameters

id
string
required
The unique identifier of the user
curl -X GET https://api.falconalert.com/admin/user/1 \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN"

Response

id
number
Unique identifier for the user
name
string
Full name of the user
email
string
User’s email address
username
string
User’s unique username
password
string
Hashed password
salt
string
Password salt for hashing
created_at
string
ISO 8601 timestamp of user creation
updated_at
string
ISO 8601 timestamp of last update
image_path
string
Path to user’s profile picture
role_id
number
User’s role identifier (1 = admin, 2 = user)
{
  "id": 1,
  "name": "Arturo Utrilla",
  "email": "arturo@gmail.com",
  "username": "Arturo_utrilla",
  "password": "e28dce46d564d38b9b58f6c85ff4bb75ba3df1202991f5b6e1d5e5d585c1b8e7",
  "salt": "9tuubdqpqei",
  "created_at": "2025-09-25T12:14:44.000Z",
  "updated_at": "2025-10-24T01:45:55.000Z",
  "image_path": "profile-pictures/d84c32b6211caf458c18f49db1992bebbf5dbfccc581e47aad0b77eee3ea637a.jpg",
  "role_id": 1
}

Update User

Modifies specific fields of a user by their ID.

Path Parameters

id
string
required
The unique identifier of the user to update

Body Parameters

email
string
New email address for the user
name
string
New name for the user
username
string
New username for the user
image_path
string
New profile picture path
curl -X PUT https://api.falconalert.com/admin/user/1 \
  -H "Authorization: Bearer YOUR_ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "John Doe",
    "email": "john.doe@example.com"
  }'

Response

id
string
User’s unique identifier
email
string
Updated email address
name
string
Updated name
username
string
User’s username
image_path
string
Path to profile picture
role_id
number
User’s role identifier
{
  "id": "1",
  "email": "john.doe@example.com",
  "name": "John Doe",
  "username": "johndoe",
  "image_path": "/path/to/image.jpg",
  "role_id": 1
}