Obtener perfil del usuario actual
GET
/users/me
const url = 'https://api.dev.lade.com.mx/users/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.dev.lade.com.mx/users/me \ --header 'Authorization: Bearer <token>'Retorna el perfil del usuario autenticado
Authorizations
Sección titulada «Authorizations»Responses
Sección titulada «Responses»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
fatherLastName
Apellido paterno
string
motherLastName
Apellido materno
string
phone
string
preferredName
Nombre preferido
string
position
Puesto/cargo
string
photoUrl
string
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"}