GET
/user/{username}Get a user by username
Retrieves a user account by username. Supply the username path parameter to identify the account; the response includes the user's profile fields.
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 for the supplied username.
defaultReturned when an unexpected error occurs.
Error handling
A 400 is returned when the username path parameter is invalid. A 404 is returned when no user is found for that username.