Get Current User
Retrieve information about the currently authenticated user in Last Mile Intelligence.
Operation
Section titled “Operation”getCurrentUser
Resource
Section titled “Resource”user
Parameters
Section titled “Parameters”This operation has no parameters. It returns information about the user associated with the current API token.
Response
Section titled “Response”Success
Section titled “Success”{ "id": "user_12345", "email": "john.smith@example.com", "firstName": "John", "lastName": "Smith", "role": "admin", "organizationId": "org_main", "permissions": [ "orders:read", "orders:write", "users:read", "reports:read" ], "lastLogin": "2024-06-21T08:30:00Z"}{ "success": false, "error": "Invalid or expired token"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Invalid Token: API token is invalid or expired
- User Deactivated: Associated user account has been deactivated