dambel

دمبل

shevron
ورود | ثبت نام

API Docs / auth / me



GET /api/v1/auth/me

Returns information about the currently authenticated user.


Request Parameters

This endpoint does not accept any parameters.


Request Example

GET /api/v1/auth/me
Authorization: Bearer {token}

Response

200 OK

Returns the user resource and a list of permissions.

Example

{
  "data": { /* user resource */ },
  "permissions": ["permission 1", "permission 2"]
}

For a full schema, see User Resource.


Error Responses

StatusDescriptionReference
401UnauthorizedAuthentication error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube