GET
/user/{username}Get a user by username
Retrieves a user account by username. Use the username path parameter to identify the user whose details you want to retrieve.
usernamestringrequired
The username of the user to retrieve. Use `user1` for testing.
200Returns the user object, including its identifier, username, name, email, password, phone, and status.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
400Returned when the supplied username is invalid.
404Returned when no user is found for the supplied username.
defaultUnexpected error
Error handling
A 400 is returned when the supplied username is invalid. A 404 is returned when no user is found for the supplied username.