Get User
Retrieve a single user by their ID from Last Mile Intelligence.
Operation
Section titled “Operation”getUser
Resource
Section titled “Resource”user
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| User ID | string | Yes | - | The ID of the user to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "user_12345", "email": "john.smith@example.com", "firstName": "John", "lastName": "Smith", "role": "dispatcher", "organizationId": "org_main", "isActive": true, "lastLogin": "2024-06-21T08:30:00Z"}{ "success": false, "error": "User not found", "userId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- User Not Found: User with specified ID does not exist
- Permission Denied: API token lacks permission for this operation