Get current authenticated user info
- Authentication
This method requires authentication.
Summary
Get current user info
Description
This method returns the currently authenticated user's info.
Request Parameters
No parameters are required for this method.
Response
The response data contains a User object with the following properties:
- _id: string
A string that represents the user's unique identifier.
- email: string
A string that represents the user's email address.
- login: string
A string that represents the user's login.
- role: string
A string that represents the user's role.
- partner_role: string
A string that represents the partner's role.
- partner: object
A reference to the Partner schema.
- store_ids: [string]
An array of strings with store ids.
- first_name: string
A string that represents the user's first name.
- last_name: string
A string that represents the user's last name.
- created_at: string
A string that represents the date when the user was created.
- updated_at: string
A string that represents the date when the user was updated.
Good response Example
Bad Response Examples
HTTP code | Response example |
|---|---|
| see 401 Unauthorized |