GET
/user/{username}Get a user by username
Retrieves a user account by username. Use this operation to fetch the user's account details when you know their username.
usernamestringrequired
The name of the user to retrieve; use `user1` for testing.
200Returns the user object, including its identifier, username, name, email, password, phone number, 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 with the supplied username.
defaultUnexpected error
Error handling
A 400 is returned if the username path parameter is invalid. A 404 is returned when no user exists with the supplied username.