curl -X GET http://localhost:3000/auth/profile \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"profile": {
"profile": {
"id": "1",
"email": "arturo@gmail.com",
"name": "Arturo Utrillaa",
"role_id": 1
}
}
}
Retrieve the authenticated user’s profile from the JWT token payload
curl -X GET http://localhost:3000/auth/profile \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"profile": {
"profile": {
"id": "1",
"email": "arturo@gmail.com",
"name": "Arturo Utrillaa",
"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.
Bearer <your_access_token>curl -X GET http://localhost:3000/auth/profile \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"profile": {
"profile": {
"id": "1",
"email": "arturo@gmail.com",
"name": "Arturo Utrillaa",
"role_id": 1
}
}
}
| Endpoint | Source | Fields Returned | Use Case |
|---|---|---|---|
GET /auth/profile | JWT token payload | id, email, name, role_id | Quick profile info from token |
GET /users | Database query | All user fields including password, salt, image_path, timestamps | Full profile with additional details |
GET /users instead.