GET/user/{username}

Get a user by username

Retrieves a user account by username. Supply the account name in the username path parameter to look up its user details. Use user1 as the username for testing.

1 parameter
usernamestringrequired
The name of the user to retrieve; use `user1` for testing.

4 status codes
200Returns the user object, including its identifier and account details.
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.
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 the supplied username.