Skip to content

Get Current User

Retrieve information about the currently authenticated user in Last Mile Intelligence.

getCurrentUser

user

This operation has no parameters. It returns information about the user associated with the current API token.

{
"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"
}
  • 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