Ir al contenido

Obtener perfil del usuario actual

GET
/users/me
curl --request GET \
--url https://api.dev.lade.com.mx/users/me \
--header 'Authorization: Bearer <token>'

Retorna el perfil del usuario autenticado

Perfil del usuario

Media typeapplication/json
object
user

Perfil de usuario como lo devuelve GET /users/me

object
id
string format: uuid
email
string format: email
name

Nombre(s)

string
middleName

Segundo nombre

string
nullable
fatherLastName

Apellido paterno

string
motherLastName

Apellido materno

string
phone
string
nullable
preferredName

Nombre preferido

string
nullable
position

Puesto/cargo

string
nullable
photoUrl
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
Examplegenerated
{
"user": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"email": "hello@example.com",
"name": "example",
"middleName": "example",
"fatherLastName": "example",
"motherLastName": "example",
"phone": "example",
"preferredName": "example",
"position": "example",
"photoUrl": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z"
}
}

No autenticado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Unauthorized",
"message": "Invalid or expired token"
}

Recurso no encontrado

Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{
"error": "Not found",
"message": "Resource not found"
}