Skip to content

Información de usuario actual

api/v1/users

Este servicio regresa información del usuario con el Bearer token asociado

URL

bash
    GET /api/v1/users

Headers

Authorization: Bearer {token}

Accept: application/json

URL Params

txt
    None

Data Params

txt
    None

Respuestas Posibles

Success

Code: 200 Response Aceptada

Content:

json
{
  "id": 1,
  "name": "Miguel Angel Muñoz Pozos",
  "email": "mmunozpozos@gmail.com",
  "email_verified_at": "2023-08-02T21:49:21.000000Z",
  "two_factor_confirmed_at": null,
  "current_team_id": null,
  "profile_photo_path": null,
  "created_at": "2023-08-02T21:49:21.000000Z",
  "updated_at": "2023-08-02T21:49:21.000000Z",
  "profile_photo_url": "https://ui-avatars.com/api/?name=M+A+M+P&color=7F9CF5&background=EBF4FF"
}

Unauthorized

Code: 401 Unauthorized

Content:

json
{
  "message": "Unauthenticated."
}
Ejemplo con curl
bash
curl --location --request GET 'https://bridge.paladins.mx/api/v1/users' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer zbSSVOcamRzUmgx6OD8FS3N3XvB3vhhViqk3iuK6'

Información de usuario actual

api/v1/users